On 4/27/2013 8:27 PM, Graham Hobbs wrote:
Hello, Am a 'not a sysprog' doing stuff at Dallas IIC under z/OS.
Another prob (for me anyway). Have a JCL stream, first step is
supposed to run a REXX pgm but it won't. Googling didn't help. Can
anybody tell me what I've missed.
JCL I sub is: //ATEST JOB (CONRAD-B),'IBMUSE2', //
CLASS=A,MSGCLASS=0,MSGLEVEL=(1,1) //JOBLIB DD
DSN=VENDOR.LINKLIB.SECOND,DISP=SHR //*------------------------------
//STEPNAME EXEC PGM=IKJEFT01 //SYSEXEC DD
DSN=VENDOR.SYSEXEC,DISP=SHR //SYSTSPRT DD SYSOUT=* //SYSTSIN DD
DSN=VENDOR.SYSEXEC(JOB2),DISP=SHR .. followed by other stuff.
REXX is: /* rexx */ say 'Job1 started' say 'Job1 ended' exit
The JCL you are using is suitable only for executing commands, not
individual REXX statements (which is why your /* REXX */ was ignored).
The simplest way is to run an IEBGENER to copy your REXX code to a PDS
(temporary or other), using a member name under which you'll invoke that
code. Concatenate that PDS as part of your SYSEXEC DD; make sure that
you use matching DCB parameters for all SYSEXEC files.
It is also possible to invoke REXX directly (interpreter or compiler,
depending on what your installation is licensed for), but then you won't
have the TSO, ISP or ISR environments.
Gerhard Postpischil
Bradford, Vermont
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN