JCL interview question on Job card.
JCL interview question on Job card.
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?
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?
-
- Website Team
- Posts: 70
- Joined: Wed Jul 31, 2013 10:19 pm
Re: JCL interview question on Job card.
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
Re: JCL interview question on Job card.
No - not lines of JCL anyway - unless it is a complete job. Why didn't you try it before posting?
Regards
Nic
Nic
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
Re: JCL interview question on Job card.
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.
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.
- Robert Sample
- Global Moderator
- Posts: 1895
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: JCL interview question on Job card.
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.
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.
Re: JCL interview question on Job card.
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?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.
Re: JCL interview question on Job card.
Your post is complicated for me to understand. What doesWilliam 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).
mean?if you happen to have an EXIT for submit
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
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