What is difference between Overrides and symbolic parameters



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

What is difference between Overrides and symbolic parameters

Postby Vamsi Krishna Nalla » Mon Oct 18, 2010 9:34 pm

Can anyone explain?
Vamsi Krishna Nalla
 
Posts: 1
Joined: Mon Oct 18, 2010 8:08 pm
Has thanked: 0 time
Been thanked: 0 time

Re: What is difference between Overrides and symbolic parameters

Postby MrSpock » Mon Oct 18, 2010 9:48 pm

Is your question related to JCL or to using JCL procedures?

JCL Procedure Modifications are documented here if that's what you're looking for.
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: What is difference between Overrides and symbolic parameters

Postby Bill Dennis » Tue Oct 19, 2010 12:25 am

Both methods have their advantages. Some JCL values and parameters can be modified either as symbolics or overrides. A few can only be changed using one of the two methods.

An example is PGM= on an execute statement. You can make program name a symbolic but it cannot be overridden in a procedure.
//MY        PROC PROG=BAL1    default value
//STEP1     EXEC PGM=&PROG    <== acceptable
//   PEND
//RUN    EXEC  MY,PROG=THIS1     symbolic
.
//MY        PROC
//STEP1     EXEC PGM=BAL1
//    PEND   
//RUN    EXEC  MY,PGM.STEP1=THIS1  <= unacceptable
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: What is difference between Overrides and symbolic parameters

Postby Ferrari2010 » Wed Oct 20, 2010 12:02 am

Hi,

Overrides
1. Used to replace existing file with another file
Ex: You are using file infile1 as input in your job and want to use another file infile2 instead of infile1, you can override the infile1 with infile2 in the jcl to pick the infile2 instead of infile1.
Please check the syntax for file override.
2. you can use to dummy the infile.
Ex: if you don't want to process the input file, but still want to run the job successfully, you can override the input file with DUMMY.

Symbolic parameters
1. This is very powerful practice when you update the big jcl's. If in one jcl you are using many files and all the files share the same qualifier, using symbolic parameters you need to give only at once that particular qualifier. if you want to change the qualifier, you need to change only at one place.

There are some other differences and benfits also.
Both playes very important role in JCL.

Thanks,
Ferrari2010
 
Posts: 6
Joined: Fri Oct 08, 2010 8:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: What is difference between Overrides and symbolic parameters

Postby Manikavasan » Mon Oct 25, 2010 12:50 pm

Symbolic & Override parameters:
----------------------------------------

Please find the example below.hope it will be clear.

JCL for executing proc:
----------------------------
//MC24447  JOB (124E),'MANIK' ,CLASS=A,MSGCLASS = 0,
//                      MSGLEVEL=(1,1),NOTIFY=&SYSUID
//PROCLIB  JCLLIB ORDER=(MMAT.TEST.PROCLIB)
//               INLCUDE MEMBER = JOBLIBJ
//PROC1     EXEC TESTPROC
//               LIBPFX=MMAP          -----> SUBSTITUTION PARAMETERS
//               DSNPFX=MMAP
//               PROD=PROD
//               SOUT=*

(OR)

//MC24447  JOB (124E),'MANIK' ,CLASS=A,MSGCLASS = 0,
//                      MSGLEVEL=(1,1),NOTIFY=&SYSUID
//PROCLIB  JCLLIB ORDER=(MMAT.TEST.PROCLIB)
//               INLCUDE MEMBER = JOBLIBJ
//PROC1     EXEC TESTPROC
//TESTPROC.INFILE DD DSN=MMAT.TEST.FILE1,DISP=SHR --->OVERRIDE PARAMETERS
//


PROC:
--------
Proc given below is catalog procedure.
LIBPFX= library prefix
DSNPFX = Dataset Prefix
//PROC1     TESTPROC               
//          LIBPFX=MMAP          -----> SYMBOLIC PARAMETERS
//          DSNPFX=MMAP
//          PROD=PROD
//          SOUT=*
//STEP1     EXEC     PGM=TESTPGM
//INFILE     DD        DSN=&DSNPFX..&PROD..INPUTFILE,DISP=SHR
//OUTFILE  DD        DSN=&DSNPFX..&PROD..OUTFILE,     
//                         DISP=(,CATLG,CATLG),                             
//                         SPACE=(CYL,(1,1),RLSE)
//SYSIN      DD        DUMMY
//SYSOUT   DD        SYSOUT=&SOUT
//SYSPRINT DD        SYSOUT=&SOUT
//

Entries "Code'd" and corrected but not aligned completely.
Manikavasan
 
Posts: 3
Joined: Mon Oct 25, 2010 12:27 pm
Has thanked: 0 time
Been thanked: 0 time

Re: What is difference between Overrides and symbolic parameters

Postby NicC » Mon Oct 25, 2010 5:39 pm

Manakavisan,

First, read the forum rules - you will see that they say you should use the code tags when posting code - this keeps the code aligned properly making it easier to read.
Second, you have JCL errors in your posted code - you are missing commas, have spaces either side of an = character and your override is wrong: it should be
//STEP1.INFILE DD ......
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: What is difference between Overrides and symbolic parameters

Postby Manikavasan » Tue Oct 26, 2010 11:03 am

ok will follow it
Manikavasan
 
Posts: 3
Joined: Mon Oct 25, 2010 12:27 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post