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
 

 

overriding symbolic parameter in a proc bya JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
pravena

New User


Joined: 31 Jan 2007
Posts: 9
Location: chennai

PostPosted: Fri Feb 22, 2008 4:26 pm    Post subject: overriding symbolic parameter in a proc bya JCL
Reply with quote

Hi,
how to override a symbolic parameter in a proc by a jcl.
eg :
//step1 exec jobname='zzzzz'
// file1='abc.yyyy.uuu'
//step2 exec pgm=add
//sysut1 dd dsn=&file1
.....
in a jcl how to overide the proc files or abc.yyyy.uuu
Pls let me know...
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 22, 2008 4:50 pm    Post subject:
Reply with quote

What have you tried to do, and what errors did you receive ?
Back to top
View user's profile Send private message
pravena

New User


Joined: 31 Jan 2007
Posts: 9
Location: chennai

PostPosted: Fri Feb 22, 2008 5:14 pm    Post subject:
Reply with quote

Hello Expat
In the JCL i tried with SET file1='qqq.ggg.kkk' but after keeping JEM
its not replaced.
also i'm not sure of this syntax....
procstep.stepname...... icon_question.gif
but nothing worked....
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 22, 2008 5:30 pm    Post subject:
Reply with quote

If you use a SET, then the values originally coded within the PROC are after the SET so will be honoured. i.e. This will override the SET.

Take a look at coding something on the actual EXEC card
Back to top
View user's profile Send private message
nbalajibe
Warnings : 1

New User


Joined: 28 Nov 2006
Posts: 75
Location: India

PostPosted: Fri Feb 22, 2008 5:31 pm    Post subject:
Reply with quote

Quote:
procstep.stepname......


This should have been procstep.ddname,

Code:
//step1.file1 dd dsn=qqq.ggg.kkk
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 22, 2008 5:35 pm    Post subject:
Reply with quote

nbalajibe

If you look carefully, the override was required for STEP2.SYSUT1

In effect if coded for the correct step this would work, but is certainly not the easiest way of doing it.
Back to top
View user's profile Send private message
nbalajibe
Warnings : 1

New User


Joined: 28 Nov 2006
Posts: 75
Location: India

PostPosted: Fri Feb 22, 2008 5:42 pm    Post subject:
Reply with quote

expat,

Thanks for correcting me. As you said coding on the exec card would be the best option.
Back to top
View user's profile Send private message
pravena

New User


Joined: 31 Jan 2007
Posts: 9
Location: chennai

PostPosted: Fri Feb 22, 2008 6:16 pm    Post subject:
Reply with quote

expat & nbalajibe,
after the exec card i gave
//STEP1.file1 DD DSN=qqq.ggg.kkk,DISP=SHR ,
it got overridden.....
thanks all for ur sugestions... icon_biggrin.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 Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am


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