View previous topic :: View next topic |
Author |
Message |
juan00982 Beginner
Joined: 29 Jun 2004 Posts: 36 Topics: 13 Location: PR
|
Posted: Wed Oct 19, 2005 8:09 am Post subject: JCL Procedure + Invoking Rexx |
|
|
Hi
I have a compile procedure that contains sysin *. When you submit a procedure if it has sysin * it will cancel. Know I was able to resolve that changing the sysin * and placing the value on a dataset.
Know lets's move on to the good stuff. I need to change some of the values that I wrote on the dataset. I know how to do it in rexx, but the thing is that in order to invoke rexx from JCL I have to write the rexx program name and parameters in systsin * and I can't do that in a procedure.
Any ideas or workarounds will be greatly apreciated.
Let me know if further information is needed.
Thanks
Juan |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Oct 19, 2005 8:15 am Post subject: |
|
|
juan00982,
Can't you just override the sysin cards in the JCL? Let us say you have a proc named MYPROC and you want to change the syin cards in step0100, then you can do as shown below.
Code: |
//MYJOB EXEC MYPROC
//STEP0100.SYSIN DD *
SORT FIELDS=(1,3,CH,A)
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Oct 19, 2005 8:18 am Post subject: |
|
|
No, just the opposite. In order to invoke REXX in batch, you would code it as follows:
Code: |
//RUNREXX EXEC PGM=IRXJCL,PARM='execname parm1 parm2 ...'
//SYSEXEC DD DISP=SHR,DSN=MY.SYSEXEC.LIB
//SYSTSIN DD DUMMY
//SYSTSPRT DD SYSOUT=*
|
The only thing you would use SYSTSIN for is terminal input (i.e. PARSE PULL commands). |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Oct 19, 2005 8:22 am Post subject: |
|
|
The only caveat of using IRXJCL is that invoked REXX exec should not access any TSO services. If your REXX has to access TSO services then it should be run with the IKJEFT01 program.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
juan00982 Beginner
Joined: 29 Jun 2004 Posts: 36 Topics: 13 Location: PR
|
Posted: Wed Oct 19, 2005 8:25 am Post subject: |
|
|
Hi all:
My REXX program uses Allocate,EXECIO to access a dataset and make corresponding modifications. |
|
Back to top |
|
 |
juan00982 Beginner
Joined: 29 Jun 2004 Posts: 36 Topics: 13 Location: PR
|
Posted: Wed Oct 19, 2005 8:27 am Post subject: |
|
|
Right now I'm having trouble allocating the file, maybe it's like Kolusu says. Also please note that the rexx program, the value that I parse to the procedure is the same one I need to parse to rexx. |
|
Back to top |
|
 |
juan00982 Beginner
Joined: 29 Jun 2004 Posts: 36 Topics: 13 Location: PR
|
Posted: Wed Oct 19, 2005 9:07 am Post subject: |
|
|
Hi All.
I figured out how to make it work. Thanks to you all for your suggestion.
//EXEC01 EXEC PGM=IKJEFT1A,DYNAMNBR=50,PARM='COMPJCL &PROG'
//SYSPROC DD DISP=SHR,DSN=REXX.EXEC
//SYSTSPRT DD SYSOUT=*
//SYSTSOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTERM DD SYSOUT=*
//SYSIN DD SYSOUT=*
//*
//SYSTSIN DD DUMMY,DISP=SHR,DSN=DUMMY.FILE |
|
Back to top |
|
 |
|
|