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 

Passing Symbolic Parameters to an EXEC in batch

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


Joined: 28 Aug 2020
Posts: 9
Topics: 4

PostPosted: Tue Sep 01, 2020 11:59 am    Post subject: Passing Symbolic Parameters to an EXEC in batch Reply with quote

I have the following JCL:
Code:

000006 //        SET LPAR=ARES           * This is for ARES data sets                 
000007 //        SET BDATE=D200828       * Current date for backups                   
000008 //*                                                                           
000009 //BKUP     PROC LPAR=LPAR,BDATE=BDATE                                         
000010 //*                                                                           
000011 //PSTEP12  EXEC PGM=IKJEFT01,DYNAMNBR=99,REGION=0M,                           
000012 //         PARM='%RKBKUP &LPAR'                                                 
- - -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -   31 Line(s) not Displayed
000044 //SYSTSPRT DD SYSOUT=*                                                         
000045 //SYSTSIN  DD DUMMY                                                           
000046 //SYSOUT   DD SYSOUT=*                                                         
000047 //*                                                                           
- - -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 7 Line(s) not Displayed
000055 //         PEND                                                               
000056 //*                                                                           
000057 //JSTEP01 EXEC BKUP LPAR=&LPAR,BDATE=&BDATE                                                                 

I want to be able to use EXEC RKBKUP for multiple jobs, passing the symbolic parameter 'LPAR' to the exec. The parameter is first set in a SET statement in line 6, passed to the instream procedure in step JSTEP01 on line 57 and then passed to the EXEC in PROC step PSTEP12 as an argument to the EXEC on line 12.

In my REXX exec I have the statement 'PULL ARG' but the parameter is not being passed I think because it is included in the PARM statement which is enclosed in quotes. I can also execute the EXEC in the SYSTSIN statement but I think I'd run into the same issue where the parameter is not replaced.

Is this possible to do?

Jim
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Sep 01, 2020 1:11 pm    Post subject: Reply with quote

jim.dillon@sentry.com,

Take a look at this

http://www.mvsforums.com/helpboards/viewtopic.php?p=53706&#53706

You also may want to take a look at this topic (determines the LPAR within the rexx exec itself)

http://www.mvsforums.com/helpboards/viewtopic.php?p=23673
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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