jellis4523
MIS
I am running a batchtso that's not working. The PARSE is not returning anything and I have to cancel job to end. Anything will be appreciated. The end result should be:
CHANGE.SUBSYS SSID(#910973 ) STARTRCV
CHANGE.SUBSYS SSID(#910973 ) ENDRECOV
CHANGE.SUBSYS SSID(#981424 ) STARTRCV
CHANGE.SUBSYS SSID(#981424 ) ENDRECOV
ctllib:
PROFILE PREFIX(#999336)
ISPSTART BDISPMAX(999999) CMD(%OLICDJEA)
CMD(%OLICDJEA):
PROC 0
COPY LSTSBSYS.SYSPRINT LSTSBSYS.SYSUT2
ISPEXEC EDIT DATASET(LSTSBSYS.SYSUT2) MACRO(OLICDJAE)
MACRO(OLICDJAE):
/* REXX */
TRACE I
ADDRESS ISREDIT
"EX ALL"
"F ALL 'LOG START=00.000 00:00:00.0'"
FINDRC = RC
IF FINDRC = 0 THEN ,
DO
SAY ' NO ORPHANED JOBS '
ZISPFRC = 20
ADDRESS ISPEXEC "VPUT ZISPFRC SHARED"
"SAVE "
"END"
EXIT 20
END
ELSE,
"(NUMSSIDS) = FIND_COUNTS"
"DEL X ALL"
LINECNT = 0
/* DO NUMSSIDS */
"F FIRST 'SSID='"
"(LINDATA) = LINE .ZCSR"
PARSE VAR LINDATA 'SSID=' SSID LOG START=00.000 00:00:00.0' TRASH
/* PARSE VAR LINDATA PART1 8 SSID PART2 15 PART3 . */
/* PARSE VAR LINDATA PART1 9 SSID . */
LINECNT = LINECNT + 1
NEWLINE.LINECNT = "CHANGE.SUBSYS SSID=("SSID") STARTRCV"
LINECNT = LINECNT + 1
NEWLINE.LINECNT = "CHANGE.SUBSYS SSID=("SSID") ENDRECOV"
"DEL NX .ZCSR .ZCSR"
/* END */
NEWLINE.0 = LINECNT
DO I = 1 TO NEWLINE.0
SSIDLINE = NEWLINE.I
"LINE_AFTER &I = DATALINE '&SSIDLINE'"
/* END */
ZISPFRC = 0
ADDRESS ISPEXEC "VPUT ZISPFRC SHARED"
"SAVE"
"END"
RETURN
LSTSBSYS.SYSUT2:
SSYS
SSID=#910973 LOG START=00.000 00:00:00.0
SSTYPE=BATCH ABNORMAL TERM=OFF RECOVERY STARTED=NO BACKUP=NO
TRACKED=NO TRACKER TERM=OFF SHARING COVERED DBS=NO
IRLMID=I0LM. IRLM STATUS=NORMAL GSGNAME=**NULL**
AUTHORIZED DATA BASES/AREAS=3 VERSION=6.1
ENCODED
-DBD- -AREA- -LEVEL- -ACCESS INTENT- -STATE-
FACPIA02 **NULL** 1 READ-GO 1
FACPDA02 **NULL** 1 READ-GO 1
FACPDA01 **NULL** 1 READ-GO 1
SSYS
SSID=#981424 LOG START=00.000 00:00:00.0
SSTYPE=BATCH ABNORMAL TERM=OFF RECOVERY STARTED=NO BACKUP=NO
TRACKED=NO TRACKER TERM=OFF SHARING COVERED DBS=NO
IRLMID=I0LM. IRLM STATUS=NORMAL GSGNAME=**NULL**
AUTHORIZED DATA BASES/AREAS=2 VERSION=6.1
ENCODED
-DBD- -AREA- -LEVEL- -ACCESS INTENT- -STATE-
PIDPIA04 **NULL** 2 READ-GO 1
PIDPDA04 **NULL** 2 READ-GO 1
SSYS,
SSID=#981591I LOG START=04.289 15:55:41.8
SSTYPE=BATCH ABNORMAL TERM=ON RECOVERY STARTED=NO BACKUP=NO
TRACKED=NO TRACKER TERM=OFF SHARING COVERED DBS=NO
IRLMID=**NULL** IRLM STATUS=NORMAL GSGNAME=**NULL**
AUTHORIZED DATA BASES/AREAS=0 VERSION=6.1
SSYS
SSID=#981591J LOG START=04.290 09:54:28.3
SSTYPE=BATCH ABNORMAL TERM=ON RECOVERY STARTED=NO BACKUP=NO
TRACKED=NO TRACKER TERM=OFF SHARING COVERED DBS=NO
IRLMID=**NULL** IRLM STATUS=NORMAL GSGNAME=**NULL**
CHANGE.SUBSYS SSID(#910973 ) STARTRCV
CHANGE.SUBSYS SSID(#910973 ) ENDRECOV
CHANGE.SUBSYS SSID(#981424 ) STARTRCV
CHANGE.SUBSYS SSID(#981424 ) ENDRECOV
ctllib:
PROFILE PREFIX(#999336)
ISPSTART BDISPMAX(999999) CMD(%OLICDJEA)
CMD(%OLICDJEA):
PROC 0
COPY LSTSBSYS.SYSPRINT LSTSBSYS.SYSUT2
ISPEXEC EDIT DATASET(LSTSBSYS.SYSUT2) MACRO(OLICDJAE)
MACRO(OLICDJAE):
/* REXX */
TRACE I
ADDRESS ISREDIT
"EX ALL"
"F ALL 'LOG START=00.000 00:00:00.0'"
FINDRC = RC
IF FINDRC = 0 THEN ,
DO
SAY ' NO ORPHANED JOBS '
ZISPFRC = 20
ADDRESS ISPEXEC "VPUT ZISPFRC SHARED"
"SAVE "
"END"
EXIT 20
END
ELSE,
"(NUMSSIDS) = FIND_COUNTS"
"DEL X ALL"
LINECNT = 0
/* DO NUMSSIDS */
"F FIRST 'SSID='"
"(LINDATA) = LINE .ZCSR"
PARSE VAR LINDATA 'SSID=' SSID LOG START=00.000 00:00:00.0' TRASH
/* PARSE VAR LINDATA PART1 8 SSID PART2 15 PART3 . */
/* PARSE VAR LINDATA PART1 9 SSID . */
LINECNT = LINECNT + 1
NEWLINE.LINECNT = "CHANGE.SUBSYS SSID=("SSID") STARTRCV"
LINECNT = LINECNT + 1
NEWLINE.LINECNT = "CHANGE.SUBSYS SSID=("SSID") ENDRECOV"
"DEL NX .ZCSR .ZCSR"
/* END */
NEWLINE.0 = LINECNT
DO I = 1 TO NEWLINE.0
SSIDLINE = NEWLINE.I
"LINE_AFTER &I = DATALINE '&SSIDLINE'"
/* END */
ZISPFRC = 0
ADDRESS ISPEXEC "VPUT ZISPFRC SHARED"
"SAVE"
"END"
RETURN
LSTSBSYS.SYSUT2:
SSYS
SSID=#910973 LOG START=00.000 00:00:00.0
SSTYPE=BATCH ABNORMAL TERM=OFF RECOVERY STARTED=NO BACKUP=NO
TRACKED=NO TRACKER TERM=OFF SHARING COVERED DBS=NO
IRLMID=I0LM. IRLM STATUS=NORMAL GSGNAME=**NULL**
AUTHORIZED DATA BASES/AREAS=3 VERSION=6.1
ENCODED
-DBD- -AREA- -LEVEL- -ACCESS INTENT- -STATE-
FACPIA02 **NULL** 1 READ-GO 1
FACPDA02 **NULL** 1 READ-GO 1
FACPDA01 **NULL** 1 READ-GO 1
SSYS
SSID=#981424 LOG START=00.000 00:00:00.0
SSTYPE=BATCH ABNORMAL TERM=OFF RECOVERY STARTED=NO BACKUP=NO
TRACKED=NO TRACKER TERM=OFF SHARING COVERED DBS=NO
IRLMID=I0LM. IRLM STATUS=NORMAL GSGNAME=**NULL**
AUTHORIZED DATA BASES/AREAS=2 VERSION=6.1
ENCODED
-DBD- -AREA- -LEVEL- -ACCESS INTENT- -STATE-
PIDPIA04 **NULL** 2 READ-GO 1
PIDPDA04 **NULL** 2 READ-GO 1
SSYS,
SSID=#981591I LOG START=04.289 15:55:41.8
SSTYPE=BATCH ABNORMAL TERM=ON RECOVERY STARTED=NO BACKUP=NO
TRACKED=NO TRACKER TERM=OFF SHARING COVERED DBS=NO
IRLMID=**NULL** IRLM STATUS=NORMAL GSGNAME=**NULL**
AUTHORIZED DATA BASES/AREAS=0 VERSION=6.1
SSYS
SSID=#981591J LOG START=04.290 09:54:28.3
SSTYPE=BATCH ABNORMAL TERM=ON RECOVERY STARTED=NO BACKUP=NO
TRACKED=NO TRACKER TERM=OFF SHARING COVERED DBS=NO
IRLMID=**NULL** IRLM STATUS=NORMAL GSGNAME=**NULL**