Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Control Card Value control in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Control Card Value control in JCL
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

Site Director


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

PostPosted: Mon Aug 06, 2007 9:07 pm    Post subject:
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    Post subject: Re: Control Card Value control in JCL
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    Post subject: Re: Control Card Value control in JCL
Reply with quote

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

Site Director


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

PostPosted: Thu Aug 09, 2007 8:00 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Control-M manuals JPVRoff All Other Mainframe Topics 0 Fri May 20, 2016 11:15 am
No new posts Performing addition using JCL sort card Shaheen Shaik DFSORT/ICETOOL 14 Fri May 06, 2016 12:25 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us