Kevin
I tried ADDRESS LINK SORT, and kept the control statement in a parameter file. The SORT abends with ICE007A and ICE010A. The same parameter file works fine for another SORT (executed thru jcl). My SYSIN control file contains:
OPTION COPY
OUTFIL NODETAIL,TRAILER1=(COUNT=(EDIT=(TTTTT)))
What do you mean by parameter file? What is the exact format of your call to SORT? It looks to me like SORT isn't picking up your SYSIN for whatever reason. Could you post a the pertinent REXX code here?
Kevin
the code is:
"ALLOC DA('LSMXB54.BPPJ815D.OUTFILE') FI(SORTIN) SHR"
"ALLOC DA('LSMXB54.BPPJ815D.OUTFILE1') FI(SORTOUT) SHR"
"ALLOC DA('LSMXB54.HEADR.PARMS(SORTP)') FI(SYSIN) SHR"
ADDRESS LINK SORT
I am not sure I follow you here. There should be no problem using ALLOC's when using REXX in batch job. I also do not understand why tracing would make any difference to the ALLOC process or do you simply mean so that he can trap any unsuccessful allocates and report them accordingly?
I have had lots of 'fun' doing this! Try the code below, it works for me, I took out some of the error handly to get an easy cut/paste. Also, it can be sensitive to the RACF/ACF2 authority of who is invoking the REXX and whether the SORT program in on the APF listing. Try looking in your syslog at the time the script fails for odd messages.
"ALLOC SYSPRINT SYSOUT CLASS(X)"
if RC ¬= 0 then do
signal Exit_Here
End
"ALLOC F(sysin) DA('"parmlib"') reuse"
if RC ¬= 0 then do
signal Exit_Here
End
"ALLOC F(sortin) DA('"dsn2"') reuse"
if RC ¬= 0 then do
signal Exit_Here
End
"ALLOC F(sortout) DA('"dsn2"') reuse"
if RC ¬= 0 then do
signal Exit_Here
End
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.