View previous topic :: View next topic
|
Author |
Message |
vijaytgi
New User
Joined: 23 Apr 2006 Posts: 3
|
|
|
|
Hi all,
what is use of SET Commands in jcl?
i knew littlt bit.
it is used 2 set the condition code like
if Maxcc=0
then set maxcc=16
This we can give in the instream data.
Is it used any where else in JCL .
plz let me know?
Thanks
Vijay |
|
Back to top |
|
|
suzeet
New User
Joined: 16 May 2005 Posts: 54
|
|
|
|
As far as my Knoledge goes, The SET statement is used to assign values to symbolic parameters that appear within a job's JCL or within JCL procedures called by the job.
Ex: In the below example we can set the program name and pass it
// SET PGM=PGMA
.
.
.
//SYSIN DD DSN=@MANO.COBOL.SOURCE(&PGM),DISP=SHR
//SYSOBJ DD DSN=@MANO.PRODOBJ,DISP=SHR
//SYSLIN DD DSN=@MANO.PRODOBJ(&PGM),DISP=SHR |
|
Back to top |
|
|
vijaytgi
New User
Joined: 23 Apr 2006 Posts: 3
|
|
|
|
suzeet wrote: |
As far as my Knoledge goes, The SET statement is used to assign values to symbolic parameters that appear within a job's JCL or within JCL procedures called by the job.
Ex: In the below example we can set the program name and pass it
// SET PGM=PGMA
.
.
.
//SYSIN DD DSN=@MANO.COBOL.SOURCE(&PGM),DISP=SHR
//SYSOBJ DD DSN=@MANO.PRODOBJ,DISP=SHR
//SYSLIN DD DSN=@MANO.PRODOBJ(&PGM),DISP=SHR |
Hi suzeet,
Thank u very much.still i hav doubt plz clarrify that too.
but the same program can i code like this also check it out
//jobcard
//proc1 proc
//step1 exec pgm=&p
//steplib dd dsn=xxx.xxx.load,disp=shr
//ssprint dd sysput=*
// pend
//step2 exec proc1,p=pgma
//sysin dd dummy
//
so,here i am not using set command
am i right?
plz let me know with explanation
thank and regards
Vijay |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
suzeet's description of the JCL SET parameter is exactly right.
To answer your second question, yes, you can code like you have shown. |
|
Back to top |
|
|
vijaytgi
New User
Joined: 23 Apr 2006 Posts: 3
|
|
|
|
superk wrote: |
suzeet's description of the JCL SET parameter is exactly right.
To answer your second question, yes, you can code like you have shown. |
hi
Thank u
thanks
Vijay |
|
Back to top |
|
|
|