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

What is 'MAIN' Parameter of Jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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: 1208
Location: Bangalore,India

PostPosted: Thu Jul 13, 2006 11:57 am
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: 435
Location: chennai, India

PostPosted: Thu Jul 13, 2006 12:05 pm
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
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
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: 435
Location: chennai, India

PostPosted: Thu Jul 13, 2006 12:40 pm
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
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: 435
Location: chennai, India

PostPosted: Thu Jul 13, 2006 1:16 pm
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

Global Moderator


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

PostPosted: Thu Jul 13, 2006 1:27 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top