Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SET COMMANDS IN JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SET COMMANDS IN JCL
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    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Tue May 09, 2006 12:09 pm    Post subject: Re: SET COMMANDS IN JCL
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    Post subject: Re: SET COMMANDS IN JCL
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    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 Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Invoking CA 7 commands through REXX kenshin CLIST & REXX 10 Fri Aug 12, 2016 9:33 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts Issuing IMS-Commands from a program w... SWP COBOL Programming 1 Fri Jun 03, 2016 4:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us