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
 
symbolic vs overiding

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

New User


Joined: 28 Nov 2005
Posts: 11

PostPosted: Tue Feb 07, 2006 7:21 pm    Post subject: symbolic vs overiding
Reply with quote

Hi friends,

can anyone explain the main diff b/n these two parameters, bcos i am confusing bcos both are doing the same work i.e to overide or replace parameters or datasets with new values, without changing the catalog or instream procedure.

which one to choose while creating a new catalog/instream proc.

pls friends clarify my doubts..

adv thanks to all

regards
kuimar.
Back to top
View user's profile Send private message

yuvaraj80

New User


Joined: 03 Oct 2005
Posts: 10

PostPosted: Tue Feb 07, 2006 11:27 pm    Post subject:
Reply with quote

Hi Kumar,

The difference between a symbolic and a override can be see like this.

Symbolic is used as a variable, which get substituted with a value assigned to it in the PROC (or in the JCL, if there is a JCL override).

For example -
//TESTPROC PROC CARD01='YUVARAJ.USER.CARDLIB'
//*
//STEP01 EXEC PGM=TESTPGM
//INP01 DD DSN=XXXXX.YYYYY.INP,DISP=SHR
//OUT01 DD DSN=XXXXX.YYYY.OUT,DISP=(NEW,CATLG,DELETE)
//INPCARD DD DSN=&CARD01(COPYCARD),DISP=SHR

In the above example, INPCARD will be substituted with a value of 'YUVARAJ.USER.CARDLIB(COPYCARD)'.

Symbolic comes to our help when there are multiple places where the same text need to be used. In our case the text is "YUVARAJ.USER.CARDLIB".

On the other hand, JCL override is used in a different context. When you want to override any parameter in a PROC, that can be done via a JCL override.

For example, I have a proc (TESTPROC) which is used by 5 jobs (JOB1 thru JOB5) for different sets of inputs. But I want a particular step (STEP03) not to execute for 1 job (JOB2) but for the other 4 jobs. You can achieve this by issuing a JCL override for the COND parameter for that step.

//JOB2 JOB TEST,'ACCOUNT INFO',CLASS=X
//JOBLIB DD DSN=XXXXX.YYYYY.LOADLIB,DISP=SHR
//PROCS JCLLIB ORDER=XXXXX.YYYYY.PROCLIB
//JOBSTEP EXEC TESTPROC,
// STEP03.COND=(0,LE)

The above example is just an illustration and it depends on factors like the return code of the previous step.

Similarly, you can have JCL override for any parameter. The parameter that is overridden may or many not be present in the PROC. If present, the value supplied in the JCL takes precedence over that present in the PROC.

Please tell me if this did not answer your question.
Back to top
View user's profile Send private message
mvnkprasad

New User


Joined: 01 Sep 2005
Posts: 6
Location: bangalore

PostPosted: Wed Feb 08, 2006 4:24 am    Post subject: Re: symbolic vs overiding
Reply with quote

hi

this is prasad

for symbolic you must and should provide the value for it where ever you are using.(here some dummy value)

where as for override already some value is present.so if we want to override the thing we can replace it according to our programme
Back to top
View user's profile Send private message
yuvaraj80

New User


Joined: 03 Oct 2005
Posts: 10

PostPosted: Wed Feb 08, 2006 4:28 am    Post subject:
Reply with quote

Hi,

Is this KP who worked in EBO, Tidel Park in Chennai?

Yuvaraj
Back to top
View user's profile Send private message
mvnkprasad

New User


Joined: 01 Sep 2005
Posts: 6
Location: bangalore

PostPosted: Wed Feb 08, 2006 4:34 am    Post subject: Re: symbolic vs overiding
Reply with quote

no boss
Back to top
View user's profile Send private message
yuvaraj80

New User


Joined: 03 Oct 2005
Posts: 10

PostPosted: Wed Feb 08, 2006 4:36 am    Post subject:
Reply with quote

Thanks for your clarification.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Wed Feb 08, 2006 7:18 pm    Post subject:
Reply with quote

I'm afraid not all questions have been answered. As for the symbolic it's well explained. As for overwrite without adjusting the instream proc I think this is meant: after the exec proc statement (or after the pend) one can add jcl for overwriting stuff within the proc. Example:
//step25.infile dd dsn=blablabla.....
This will replace the the original dd statement //infile dd .... in step25.

Just an addition icon_wink.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
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 Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 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 Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
This topic is locked: you cannot edit posts or make replies. Put quotes in Symbolic parameter whil... Yashashri All Other Mainframe Topics 7 Mon Feb 15, 2016 12:24 pm

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