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 JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm


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