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
 

 

What is 'MAIN' Parameter of Jcl

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

New User


Joined: 19 Jan 2006
Posts: 19

PostPosted: Thu Jul 13, 2006 11:30 am    Post subject: What is 'MAIN' Parameter of Jcl
Reply with quote

Can anybody please tell me what does main Parameter do?
//*MAIN CLASS=Z1U1

How is the above statement interpreted by the compiler?
Back to top
View user's profile Send private message

sivaram.ch

New User


Joined: 28 Jun 2005
Posts: 11

PostPosted: Thu Jul 13, 2006 11:48 am    Post subject:
Reply with quote

The jcl statement u written is comment(/*)


Thanks
Back to top
View user's profile Send private message
Madhu Kashyap

New User


Joined: 19 Jan 2006
Posts: 19

PostPosted: Thu Jul 13, 2006 11:52 am    Post subject:
Reply with quote

Its not a comment. And if its a comment then why is it written in most of the production jobs and what does it signify?

Thanks
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Thu Jul 13, 2006 11:57 am    Post subject:
Reply with quote

Hi,

I believe it's a comment only whether it is written on production job or test ones.
But jCl basic rule did not change.
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Thu Jul 13, 2006 12:05 pm    Post subject:
Reply with quote

Madhu Kashyap,

Has it been run through any command scheduler?
Back to top
View user's profile Send private message
Madhu Kashyap

New User


Joined: 19 Jan 2006
Posts: 19

PostPosted: Thu Jul 13, 2006 12:09 pm    Post subject:
Reply with quote

Hi Radhakrishnan,

Iam not sure about that. I just know that its used in production jobs and is not a comment , as far as my knowledge is concerned.

Regards,
Madhu
Back to top
View user's profile Send private message
Madhu Kashyap

New User


Joined: 19 Jan 2006
Posts: 19

PostPosted: Thu Jul 13, 2006 12:21 pm    Post subject:
Reply with quote

This is how this is used after jobcard in the Jcls-

//*MAIN CLASS=WLMM,ORG=URPOOL
//*ROUTE TO=AD265-SZ


Regards,
Madhu
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Thu Jul 13, 2006 12:40 pm    Post subject:
Reply with quote

Quote:
I just know that its used in production jobs and is not a comment

for example,
//*LOGONID loginidname in JCL is not comment
When you submit the job with this statement,it wont list in the sysout.

Quote:
//*ROUTE TO=AD265-SZ

/*ROUTE TO=AD265-SZ (single slash and *) is the correct one.

//*Main - may be it points to a class parameter in job cards.(am not sure)
Back to top
View user's profile Send private message
Madhu Kashyap

New User


Joined: 19 Jan 2006
Posts: 19

PostPosted: Thu Jul 13, 2006 12:43 pm    Post subject:
Reply with quote

Thanks for your valuable information.

Regards,
Madhu
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Thu Jul 13, 2006 1:16 pm    Post subject:
Reply with quote

Madhu,

One more info...

//*keywords is a JES2 command basically.Normally JCL checks for JES2 command first.If its not a JES2 command then it takes it as a comment.

Hope this helps.
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: Thu Jul 13, 2006 1:27 pm    Post subject: Re: What is 'MAIN' Parameter of Jcl
Reply with quote

Please review the contents of the z/OS V1R7.0 MVS JCL Reference manual.
Back to top
View user's profile Send private message
donevin

New User


Joined: 07 Jun 2005
Posts: 70
Location: South Africa

PostPosted: Thu Jul 13, 2006 1:40 pm    Post subject:
Reply with quote

From the JCL reference manual 2 things :
(1). //*MAIN defines selected processing parameters for a job, but bear in mind it is a JES3 control statement similar to the /*JOBPARM control statement from JES2. So it is used to specify processing parameters for a job.

(2). The CLASS parameter overrides a JOB statement CLASS parameter.

Hope this helps.
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 DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm


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