do j=1 to inp_read.0
parse upper var inp_read.j dsn acc typ ex
if j//100 = 0 then say "Processing : "right(j,6,'0') dsn
if typ == 'GDG' then
do
parse var ex gdgct ltver exq
dsname = ltver
end
else dsname = dsn
x = Outtrap("listc.")
Address TSO
"LISTC ENTRY('"dsname"') ALL"
lcc=rc
x = Outtrap("OFF")
return code of this listcat command is used to be -262
the inp file is of length 2000 byte and contains around 40k records.I faced the same error while exectuig the command hrecall(through rexx) also.
Solution: Added the parameter Region=0M in the jobcard and the rexx code executed fine in batch mode.
I reckon the issue might be related to virtual space used during execution.I couldn't fine much detail in googling.I don't have much expertise in this and please correct me if i'm wrong.
Joined: 29 Oct 2010 Posts: 202 Location: Toronto, ON, Canada
Chaketh
If your Rexx is not using any ISPF service calls (ie. only TSO commands) then your jcl does not need to be so complicated. You can remove all of the DD names that being with ISP and then change the EXEC to: