IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Control Card Value control in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nikyojin

New User


Joined: 05 Oct 2005
Posts: 94

PostPosted: Mon Aug 06, 2007 3:50 pm
Reply with quote

Hi,
Code:
//invc0022 dd dsn=dev1.parmlib(invc0022)


This is the control card being used in the Proc. Is it possible to control the value of control card ie invc0022 in the above eg thru JCL. I know we can override the line completely but is there any other way out.
Known solution :-
Code:
//stepname.invc0022 dd dsn=dev1.parmlib(invc0023)
.
Please suggest me an alternative if it is possible.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 06, 2007 9:07 pm
Reply with quote

Hello,

Your question is not clear.

If you want to dynamically point to a different member name ar run time, you could define your PROCedure to use a symbolic parameter. In your PROC, the DD would be coded as
Code:
//invc0022 dd dsn=dev1.parmlib(&mem)
if the entirename might vary or
Code:
//invc0022 dd dsn=dev1.parmlib(invc&num)
if the "invc" was constant and only the number might vary.

On your execute statement, you would specify either replacement value.
Code:
//procstep  EXEC yourproc,MEM=INVC0023
      or
//procstep  EXEC yourproc,NUM=0023

depending on how you defined your DD statement.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Aug 06, 2007 9:08 pm
Reply with quote

nikyojin wrote:
Hi,
Code:
//invc0022 dd dsn=dev1.parmlib(invc0022)


This is the control card being used in the Proc. Is it possible to control the value of control card ie invc0022 in the above eg thru JCL. I know we can override the line completely but is there any other way out.
Known solution :-
Code:
//stepname.invc0022 dd dsn=dev1.parmlib(invc0023)
.
Please suggest me an alternative if it is possible.


You could use
Code:
//stepname.invc022 dd *
control card
/*
Back to top
View user's profile Send private message
nikyojin

New User


Joined: 05 Oct 2005
Posts: 94

PostPosted: Thu Aug 09, 2007 2:59 pm
Reply with quote

Thanks Dick and Craq for your valuable inputs
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 09, 2007 8:00 pm
Reply with quote

You're welcome - good luck icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Need suggestion on a sort card DFSORT/ICETOOL 10
No new posts Want to mask Middle 8 Digits of Debit... COBOL Programming 3
Search our Forums:

Back to Top