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
 
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: 8620
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: 8620
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: 8620
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 DUMMY When do I need add a DCB parameter Martylin JCL & VSAM 3 Fri Dec 08, 2017 7:20 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm

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