MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JCL Procedure + Invoking Rexx

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
juan00982
Beginner


Joined: 29 Jun 2004
Posts: 36
Topics: 13
Location: PR

PostPosted: Wed Oct 19, 2005 8:09 am    Post subject: JCL Procedure + Invoking Rexx Reply with quote

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
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Oct 19, 2005 8:15 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Oct 19, 2005 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Oct 19, 2005 8:22 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
juan00982
Beginner


Joined: 29 Jun 2004
Posts: 36
Topics: 13
Location: PR

PostPosted: Wed Oct 19, 2005 8:25 am    Post subject: Reply with quote

Hi all:

My REXX program uses Allocate,EXECIO to access a dataset and make corresponding modifications.
Back to top
View user's profile Send private message Send e-mail
juan00982
Beginner


Joined: 29 Jun 2004
Posts: 36
Topics: 13
Location: PR

PostPosted: Wed Oct 19, 2005 8:27 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
juan00982
Beginner


Joined: 29 Jun 2004
Posts: 36
Topics: 13
Location: PR

PostPosted: Wed Oct 19, 2005 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group