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

overriding symbolic parameter in a proc bya JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Feb 22, 2008 4:50 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Feb 22, 2008 5:30 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Feb 22, 2008 5:35 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top