Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
No new posts Control M - Predecessor/successor of ... SRIDEVI TANTRY Compuware & Other Tools 6 Sun May 06, 2018 10:57 am
No new posts Need better approach to create a sort... Vamshi Veludandi DFSORT/ICETOOL 8 Thu Mar 08, 2018 5:59 pm
No new posts SORT CARD ram_vizag DFSORT/ICETOOL 13 Thu Mar 01, 2018 4:55 am
No new posts can we hardcode a value in db2 load c... ram_vizag DB2 2 Wed Feb 28, 2018 11:04 pm
No new posts How to control Panel Attributes throu... rsshanmugam CLIST & REXX 3 Mon Feb 26, 2018 9:51 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us