IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SET COMMANDS IN JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vijaytgi

New User


Joined: 23 Apr 2006
Posts: 3

PostPosted: Tue May 09, 2006 6:29 am
Reply with quote

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
View user's profile Send private message
suzeet

New User


Joined: 16 May 2005
Posts: 54

PostPosted: Tue May 09, 2006 10:50 am
Reply with quote

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
View user's profile Send private message
vijaytgi

New User


Joined: 23 Apr 2006
Posts: 3

PostPosted: Tue May 09, 2006 12:04 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue May 09, 2006 12:09 pm
Reply with quote

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
View user's profile Send private message
vijaytgi

New User


Joined: 23 Apr 2006
Posts: 3

PostPosted: Tue May 09, 2006 12:29 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Console Commands All Other Mainframe Topics 4
No new posts commands missing in JESMSGLG JCL & VSAM 3
No new posts ZOS Console commands through USS REXX? CLIST & REXX 5
No new posts How can I know what tso commands are ... TSO/ISPF 18
No new posts ISPF Panel commands DDLIST /LISTBOX TSO/ISPF 11
Search our Forums:

Back to Top