in my shop we use clists still. I'm building a Rexx that will push a cancel command to the internal reader from within the Rexx code. It is a conversion of a clist version. I can't get the Rexx to work. I dabble in rexx just a little... any help would be great.
Here is the clist version:
PROC 1 JOBNUM
ALLOC F(INTRDR) SYSOUT(A) WRITER(INTRDR)
OPENFILE INTRDR OUTPUT
SET &INTRDR = &STR(/*$CJ)&JOBNUM
WRITE &INTRDR
PUTFILE INTRDR
CLOSFILE INTRDR
FREE F(INTRDR)
WRITE &MAXCC
Here is my Rexx (this is one of many versions that don't work.
any help would be great.
/* REXX */
DROP MEMNAME.
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"
TRACE IA
JOBNUM = "69552" /* TEST JOB JES NUMBER KEEPS CHANGING */
"ALLOC F(INTRDR) SYSOUT(A) WRITER(INTRDR)"
CANCOM.1 = SUBSTR("/*$CJ"JOBNUM,1,10)
"EXECIO 0 DISKW INTRDR (OPEN"
"EXECIO 1 DISKW INTRDR (STEM CANCOM."
"EXECIO 0 DISKW INTRDR (FINIS"
Thanks
James
Here is the clist version:
PROC 1 JOBNUM
ALLOC F(INTRDR) SYSOUT(A) WRITER(INTRDR)
OPENFILE INTRDR OUTPUT
SET &INTRDR = &STR(/*$CJ)&JOBNUM
WRITE &INTRDR
PUTFILE INTRDR
CLOSFILE INTRDR
FREE F(INTRDR)
WRITE &MAXCC
Here is my Rexx (this is one of many versions that don't work.
any help would be great.
/* REXX */
DROP MEMNAME.
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"
TRACE IA
JOBNUM = "69552" /* TEST JOB JES NUMBER KEEPS CHANGING */
"ALLOC F(INTRDR) SYSOUT(A) WRITER(INTRDR)"
CANCOM.1 = SUBSTR("/*$CJ"JOBNUM,1,10)
"EXECIO 0 DISKW INTRDR (OPEN"
"EXECIO 1 DISKW INTRDR (STEM CANCOM."
"EXECIO 0 DISKW INTRDR (FINIS"
Thanks
James