Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Operations in REXX

Status
Not open for further replies.

leo6

Programmer
Mar 2, 2005
22
US
Hi ,

The piece of code that I am executing is :

parse upper arg inpf
i=1
say i
say "dsname passed from jcl is:"
say inpf
"Alloc Fi(IO) Da('"inpf"') Shr Reu"
"Execio * DiskRU IO (Stem IO.)"
Do i = 1 to IO.0
IO.i = overlay(' ', IO.i, 1)
End
"Execio * DiskW IO (Stem IO. Finis)"
"Free Fi(IO)"
say IO.0 "lines were replaced with spaces"
exit

/****.....end.........*****/

The error for the above code execution is :

READY
CHREXX4 TP.ECRM.GDGDATE1
1
dsname passed from jcl is:
TP.ECRM.GDGDATE1
Record cannot be updated. No record from file IO has been read for update.
EXECIO error while trying to GET or PUT a record.
FILE IO NOT FREED, DATA SET IS OPEN
5 lines were replaced with spaces
READY
END

......

could you help me in this , please??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top