JCL interview question on Job card.

All sort of Mainframes Interview Questions.
Post Reply
Rakesh
New Member
Posts: 3
Joined: Mon Oct 06, 2014 8:46 am

JCL interview question on Job card.

Post by Rakesh »

Hello,

Can we write a line before a Job card in any JCL?

I searched the answer for it but could not find an answer. I think we can have a line before the job card or can we?
Chandan Yadav
Website Team
Website Team
Posts: 70
Joined: Wed Jul 31, 2013 10:19 pm

Re: JCL interview question on Job card.

Post by Chandan Yadav »

yes we can have a line before Job card. I have seen JCL's where GLobal variables for COntrol-M processing mentioned before Job card
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: JCL interview question on Job card.

Post by nicc »

No - not lines of JCL anyway - unless it is a complete job. Why didn't you try it before posting?
Regards
Nic
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: JCL interview question on Job card.

Post by William Collins »

A PDS member that you happen to submit can contain "stuff" in front of a JOB card, if you happen to have an EXIT for submit, or a replacement for it. Else submit would generate a JOB card for you (asking you part of the jobname).

If not using submit, then anything that is expected by what you are using is OK. However, when the JOB enters the input queue, since the JOB card indicates the first card in a JOB, obviously there cannot be anything before it.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: JCL interview question on Job card.

Post by Robert Sample »

JES2 and JES3 both allow commands before the JOB statement and JES2 allows /*PRIORITY and JES3 allows //**PAUSE before the JOB statement as well.

Note, as pointed out elsewhere, that you can, technically, put anything you want before a JOB statement in a PDS member or sequential data set. HOWEVER, the JOB statement is treated by the system as the first statement in the job and anything (except for commands, /*PRIORITY, //**PAUSE) before the JOB statement or between jobs (such as DD, EXEC, PROC, or whatever statements) will be ignored by the system.
Rakesh
New Member
Posts: 3
Joined: Mon Oct 06, 2014 8:46 am

Re: JCL interview question on Job card.

Post by Rakesh »

Robert Sample wrote:JES2 and JES3 both allow commands before the JOB statement and JES2 allows /*PRIORITY and JES3 allows //**PAUSE before the JOB statement as well.

Note, as pointed out elsewhere, that you can, technically, put anything you want before a JOB statement in a PDS member or sequential data set. HOWEVER, the JOB statement is treated by the system as the first statement in the job and anything (except for commands, /*PRIORITY, //**PAUSE) before the JOB statement or between jobs (such as DD, EXEC, PROC, or whatever statements) will be ignored by the system.
Ok, but I have seen something like **some comments** also before the JOB card. But I think it was added by the scheduler and not by a programmer manually... that is allowed that means?
Rakesh
New Member
Posts: 3
Joined: Mon Oct 06, 2014 8:46 am

Re: JCL interview question on Job card.

Post by Rakesh »

William Collins wrote:A PDS member that you happen to submit can contain "stuff" in front of a JOB card, if you happen to have an EXIT for submit, or a replacement for it. Else submit would generate a JOB card for you (asking you part of the jobname).
Your post is complicated for me to understand. What does
if you happen to have an EXIT for submit
mean?
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: JCL interview question on Job card.

Post by William Collins »

User exit

I haven't look at the quality of the article, but it should give you some idea.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Interview Questions.”