Output Listing from IRXJCL
465 *-* "FREE FI(RPTFILE)"
+++ RC(-3) +++
466 *-* "ALLOC FI(RPTFILE) DA('"||RPTINPUT||"') NEW CATALOG",
+++ RC(-3) +++
IRX0555E The input or output file RPTFILE is not allocated. It cannot be opened
IRX0670E EXECIO error while trying to GET or PUT a record.
*** RPTFILE HAS BEEN WRITTEN ***
*** SORTING CMN110 REPORT FILE ***
780 *-* "FREE FI(SYSOUT SORTIN SORTOUT SYSIN SORTWK01)"
+++ RC(-3) +++
781 *-* "ALLOC FI(SYSOUT) DA(*)"
+++ RC(-3) +++
782 *-* "ALLOC FI(SORTIN) DA('"||RPTINPUT||"') SHR REUSE"
+++ RC(-3) +++
783 *-* "ALLOC FI(SORTOUT) DA('"||RPTSRTD||"') NEW CATALOG",
+++ RC(-3) +++
785 *-* "ALLOC FI(SYSIN) DA('"||SRTCNTL||"("||SRTMEMB||")') SHR REUSE"
+++ RC(-3) +++
786 *-* "ALLOCATE FI(SORTWK01) NEW DELETE SPACE(15,10) CYLINDERS "
+++ RC(-3) +++
IRX0251E User abend code 0158, reason code 00000020.
IRX0255E Abend in host command ICEMAN or address environment routine LINKMVS.
787 *-* ADDRESS LINKMVS ICEMAN
+++ RC(158) +++
*** DONE SORTING CMN110 REPORT FILE ***
473 *-* "FREE FI(REPORT)"
+++ RC(-3) +++
474 *-* "ALLOC FI(REPORT) DA(*)"
+++ RC(-3) +++
*** PROCESSING SORTED REPORT FILE ***
149 *-* "ALLOC FI(SRTDFILE) DA('"||RPTSRTD||"') SHR REUSE"
+++ RC(-3) +++
IRX0555E The input or output file SRTDFILE is not allocated. It cannot be opened
IRX0670E EXECIO error while trying to GET or PUT a record.
*** REPORT FILE HAS BEEN PRINTED ***
163 *-* "FREE FI(SRTDFILE)"
+++ RC(-3) +++
164 *-* "FREE FI(REPORT)"
+++ RC(-3) +++
*** CLEANING UP FILES THAT WERE ALLOCATED ***
811 *-* "FREE FI(SYSPRINT DD1 DD2)"
+++ RC(-3) +++
812 *-* "ALLOC FI(SYSPRINT) DA(*)"
+++ RC(-3) +++
813 *-* "ALLOC FI(DD1) DA('"||RPTINPUT||"') MOD DELETE",
+++ RC(-3) +++
815 *-* "ALLOC FI(DD2) DA('"||RPTSRTD||"') MOD DELETE",
+++ RC(-3) +++
*** FILES HAVE BEEN DELETED ***
+++ RC(-3) +++
466 *-* "ALLOC FI(RPTFILE) DA('"||RPTINPUT||"') NEW CATALOG",
+++ RC(-3) +++
IRX0555E The input or output file RPTFILE is not allocated. It cannot be opened
IRX0670E EXECIO error while trying to GET or PUT a record.
*** RPTFILE HAS BEEN WRITTEN ***
*** SORTING CMN110 REPORT FILE ***
780 *-* "FREE FI(SYSOUT SORTIN SORTOUT SYSIN SORTWK01)"
+++ RC(-3) +++
781 *-* "ALLOC FI(SYSOUT) DA(*)"
+++ RC(-3) +++
782 *-* "ALLOC FI(SORTIN) DA('"||RPTINPUT||"') SHR REUSE"
+++ RC(-3) +++
783 *-* "ALLOC FI(SORTOUT) DA('"||RPTSRTD||"') NEW CATALOG",
+++ RC(-3) +++
785 *-* "ALLOC FI(SYSIN) DA('"||SRTCNTL||"("||SRTMEMB||")') SHR REUSE"
+++ RC(-3) +++
786 *-* "ALLOCATE FI(SORTWK01) NEW DELETE SPACE(15,10) CYLINDERS "
+++ RC(-3) +++
IRX0251E User abend code 0158, reason code 00000020.
IRX0255E Abend in host command ICEMAN or address environment routine LINKMVS.
787 *-* ADDRESS LINKMVS ICEMAN
+++ RC(158) +++
*** DONE SORTING CMN110 REPORT FILE ***
473 *-* "FREE FI(REPORT)"
+++ RC(-3) +++
474 *-* "ALLOC FI(REPORT) DA(*)"
+++ RC(-3) +++
*** PROCESSING SORTED REPORT FILE ***
149 *-* "ALLOC FI(SRTDFILE) DA('"||RPTSRTD||"') SHR REUSE"
+++ RC(-3) +++
IRX0555E The input or output file SRTDFILE is not allocated. It cannot be opened
IRX0670E EXECIO error while trying to GET or PUT a record.
*** REPORT FILE HAS BEEN PRINTED ***
163 *-* "FREE FI(SRTDFILE)"
+++ RC(-3) +++
164 *-* "FREE FI(REPORT)"
+++ RC(-3) +++
*** CLEANING UP FILES THAT WERE ALLOCATED ***
811 *-* "FREE FI(SYSPRINT DD1 DD2)"
+++ RC(-3) +++
812 *-* "ALLOC FI(SYSPRINT) DA(*)"
+++ RC(-3) +++
813 *-* "ALLOC FI(DD1) DA('"||RPTINPUT||"') MOD DELETE",
+++ RC(-3) +++
815 *-* "ALLOC FI(DD2) DA('"||RPTSRTD||"') MOD DELETE",
+++ RC(-3) +++
*** FILES HAVE BEEN DELETED ***
Here's the output when I used IKJEFT1A
READY
%CMN110 3 * P N G03131 20080101 20081008
FILE RPTFILE NOT FREED, IS NOT ALLOCATED
*** RPTFILE HAS BEEN WRITTEN ***
*** SORTING CMN110 REPORT FILE ***
FILE SYSOUT NOT FREED, IS NOT ALLOCATED
FILE SORTIN NOT FREED, IS NOT ALLOCATED
FILE SORTOUT NOT FREED, IS NOT ALLOCATED
FILE SYSIN NOT FREED, IS NOT ALLOCATED
FILE SORTWK01 NOT FREED, IS NOT ALLOCATED
*** DONE SORTING CMN110 REPORT FILE ***
*** PROCESSING SORTED REPORT FILE ***
*** REPORT FILE HAS BEEN PRINTED ***
*** CLEANING UP FILES THAT WERE ALLOCATED ***
FILE DD1 NOT FREED, IS NOT ALLOCATED
FILE DD2 NOT FREED, IS NOT ALLOCATED
*** FILES HAVE BEEN DELETED ***
READY
END
%CMN110 3 * P N G03131 20080101 20081008
FILE RPTFILE NOT FREED, IS NOT ALLOCATED
*** RPTFILE HAS BEEN WRITTEN ***
*** SORTING CMN110 REPORT FILE ***
FILE SYSOUT NOT FREED, IS NOT ALLOCATED
FILE SORTIN NOT FREED, IS NOT ALLOCATED
FILE SORTOUT NOT FREED, IS NOT ALLOCATED
FILE SYSIN NOT FREED, IS NOT ALLOCATED
FILE SORTWK01 NOT FREED, IS NOT ALLOCATED
*** DONE SORTING CMN110 REPORT FILE ***
*** PROCESSING SORTED REPORT FILE ***
*** REPORT FILE HAS BEEN PRINTED ***
*** CLEANING UP FILES THAT WERE ALLOCATED ***
FILE DD1 NOT FREED, IS NOT ALLOCATED
FILE DD2 NOT FREED, IS NOT ALLOCATED
*** FILES HAVE BEEN DELETED ***
READY
END
As you can see it worked.
Below you'll find pieces of my code:
/* set File Variables - Change Here */
RPTINPUT = 'G03131.CHGMAN.CMN110.FILE'
RPTSRTD = 'G03131.CHGMAN.CMN110.SORTED'
SRTCNTL = 'G03131.CHGMAN.CTC'
SRTMEMB = 'SRT110F'
"ALLOC FI(SRTDFILE) DA('"||RPTSRTD||"') SHR REUSE"
"FREE FI(SYSOUT SORTIN SORTOUT SYSIN SORTWK01)"
"ALLOC FI(SYSOUT) DA(*)"
"ALLOC FI(SORTIN) DA('"||RPTINPUT||"') SHR REUSE"
"ALLOC FI(SORTOUT) DA('"||RPTSRTD||"') NEW CATALOG",
" REUSE SPACE(1 2) CYLINDERS RECFM(F B) LRECL(133)"
"ALLOC FI(SYSIN) DA('"||SRTCNTL||"("||SRTMEMB||")') SHR REUSE"
"ALLOCATE FI(SORTWK01) NEW DELETE SPACE(15,10) CYLINDERS "
ADDRESS LINKMVS ICEMAN
"FREE FI(SYSPRINT DD1 DD2)"
"ALLOC FI(SYSPRINT) DA(*)"
"ALLOC FI(DD1) DA('"||RPTINPUT||"') MOD DELETE",
" DELETE SPACE(0) TRACKS UNIT(SYSALLDA)"
"ALLOC FI(DD2) DA('"||RPTSRTD||"') MOD DELETE",
" DELETE SPACE(0) TRACKS UNIT(SYSALLDA)"
ADDRESS LINKMVS IEFBR14
RPTINPUT = 'G03131.CHGMAN.CMN110.FILE'
RPTSRTD = 'G03131.CHGMAN.CMN110.SORTED'
SRTCNTL = 'G03131.CHGMAN.CTC'
SRTMEMB = 'SRT110F'
"ALLOC FI(SRTDFILE) DA('"||RPTSRTD||"') SHR REUSE"
"FREE FI(SYSOUT SORTIN SORTOUT SYSIN SORTWK01)"
"ALLOC FI(SYSOUT) DA(*)"
"ALLOC FI(SORTIN) DA('"||RPTINPUT||"') SHR REUSE"
"ALLOC FI(SORTOUT) DA('"||RPTSRTD||"') NEW CATALOG",
" REUSE SPACE(1 2) CYLINDERS RECFM(F B) LRECL(133)"
"ALLOC FI(SYSIN) DA('"||SRTCNTL||"("||SRTMEMB||")') SHR REUSE"
"ALLOCATE FI(SORTWK01) NEW DELETE SPACE(15,10) CYLINDERS "
ADDRESS LINKMVS ICEMAN
"FREE FI(SYSPRINT DD1 DD2)"
"ALLOC FI(SYSPRINT) DA(*)"
"ALLOC FI(DD1) DA('"||RPTINPUT||"') MOD DELETE",
" DELETE SPACE(0) TRACKS UNIT(SYSALLDA)"
"ALLOC FI(DD2) DA('"||RPTSRTD||"') MOD DELETE",
" DELETE SPACE(0) TRACKS UNIT(SYSALLDA)"
ADDRESS LINKMVS IEFBR14
Any assistance would be greatly appreciated.