View previous topic :: View next topic
|
Author |
Message |
dp33770
New User
Joined: 04 Jul 2007 Posts: 91 Location: Hyderabad
|
|
|
|
I have few questions in JCL.
I will be thankful is someone clarify the below questions in details for better understanding.
1. When Typrun = SCAN , where the syntax error messages can be seen. Does it goes to job pool .
2. //STEP7 EXEC PGM=PGM3, COND=((16,GE),(90,LE,STEP1),ONLY)
So the conditions for this step to execute is
a.Only if preceding step abnormally terminated ( Is it ONLY for
prceding step i.e STEP6 or for all preceding steps above STEP7)
b.The RC for all previous steps are >= 17
c.The RC of step1 is 89 or less.
Que . will the step bypass if any of the given condition is TRUE
Que. Is only step7 will be bypassed or the entire steps below STEP7
will be bypassed
Que. What if COND parameter will be coded in JOB STEP. Does it
override STEP COND
3.Is there a way in which we can bypass the execution of first Step in a
JOB.
4. As the limit of PARM parameter is 100 charecters . IS there any other way to pass more than 100 Charecters
5. I am aware of JOBLIB but what is meant by JCLLIB,JOBCAT,STEPCAT ?
6. IF DSN = &&temp in STEP5 how this tempory dataset can be referred in 3 steps below (e.g STEP8)
7. IF the new generations of a GDG have been created as below
STEP1 = GDG(+1)
STEP2 = GDG(+2)
STEP3 = GDG(+3)
how To refer the GDG created in step1 in step4 ( I am guessing it to be refered as GDG(+1). Am I correct ?) |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
dp33770 wrote: |
7. IF the new generations of a GDG have been created as below
STEP1 = GDG(+1)
STEP2 = GDG(+2)
STEP3 = GDG(+3)
how To refer the GDG created in step1 in step4 ( I am guessing it to be refered as GDG(+1). Am I correct ?) |
Yes, you are correct. Can you explain why? |
|
Back to top |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
|
|
When a job is submitted, the JCL preprocessor scans the JCL and effectively replaces any GDG(+0), GDG(+1), etc. with the full name, including the actual G0000V00 part.
It does this once, before the job runs. Therefore, obviously, the GDG(+1) references must be the same for all steps in the job.
And it only does this scan and replace on the JCL lines. So if the name is on a JCL DD statement, it will be replaced. But if the name is in a data card following a DD * card, it is NOT processed by the JCL preprocessor (it's data, not JCL) and no replacement is done. |
|
Back to top |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
|
|
It will check for syntax errors and the job is sent to output queue.
click here for more info. |
|
Back to top |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
|
|
Sorry... I missed to quote the question no.
Quote: |
1. When Typrun = SCAN , where the syntax error messages can be seen. Does it goes to job pool .
|
|
|
Back to top |
|
|
dp33770
New User
Joined: 04 Jul 2007 Posts: 91 Location: Hyderabad
|
|
|
|
Can anyone answer to remaining Que ? |
|
Back to top |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
|
|
Quote: |
3.Is there a way in which we can bypass the execution of first Step in a
JOB.
|
I don't think there's a way except for restart from 2nd step. |
|
Back to top |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Deep,
Quote: |
5. I am aware of JOBLIB but what is meant by JCLLIB,JOBCAT,STEPCAT ?
|
Refer to the JCL manual.
From the manual
JOBCAT:
Quote: |
13.2 JOBCAT DD Statement
Purpose
Use the JOBCAT DD statement to define a private VSAM or integrated catalog facility user catalog for the duration of a job. The system searches the private catalog for data sets before it searches the master catalog or a private catalog associated with the first qualifier of a data set's name.
Do not use the JOBCAT DD statement in a job that references an SMS-managed data set. SMS only accesses SMS-managed data sets that are cataloged in a system catalog.
The system does not support the JOBCAT DD statement (or STEPCAT DD statement) for catalogs that have a unit control block (UCB) above the 16MB line.
You cannot specify CVOLs as JOBCAT. Access to a CVOL is possible only with a special CVOL pointer in the master catalog.
|
STEPCAT
Quote: |
13.4 STEPCAT DD Statement
Purpose
Use the STEPCAT DD statement to define a private VSAM or integrated catalog facility user catalog for the duration of a job step. The system searches the private catalog for data sets before it searches the master catalog or a private catalog associated with the first qualifier of a data set's name.
Do not use the STEPCAT DD statement in a job step that references an SMS-managed data set. SMS only accesses SMS-managed data sets that are cataloged in a system catalog.
The system does not support the STEPCAT DD statement (or JOBCAT DD statement) for catalogs that have a unit control block (UCB) above the 16MB line. |
JCLLIB
Quote: |
Use the JCLLIB statement to:
Identify the names of the private libraries that the system uses for the job. The system searches the libraries for:
Procedures named on any EXEC statements
Groups of JCL statements (called INCLUDE groups) named on any INCLUDE statements.
Identify the names of the system procedure libraries and installation-defined procedure libraries that the system uses for the job.
Identify the order in which the libraries are to be searched. The system searches the libraries in the order in which you specify them on the JCLLIB statement, prior to searching any unspecified default system procedure libraries. |
|
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Deep,
Quote: |
IF DSN = &&temp in STEP5 how this tempory dataset can be referred in 3 steps below (e.g STEP8)
|
Use &&temp again in step8 to refer to the already created temp dataset in step5. |
|
Back to top |
|
|
dp33770
New User
Joined: 04 Jul 2007 Posts: 91 Location: Hyderabad
|
|
|
|
Thnx Aaru....
If someone can answer 2 and 4 I will be thankful |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
Quote: |
4. As the limit of PARM parameter is 100 charecters . IS there any other way to pass more than 100 Charecters
|
Read the information from a file.
Gerry |
|
Back to top |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
|
|
Quote: |
4. As the limit of PARM parameter is 100 charecters . IS there any other way to pass more than 100 Charecters |
Use
|
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
Back to top |
|
|
dp33770
New User
Joined: 04 Jul 2007 Posts: 91 Location: Hyderabad
|
|
|
|
Thanks a Lot to all.. |
|
Back to top |
|
|
JayC
New User
Joined: 27 Sep 2008 Posts: 70
|
|
|
|
Aaru wrote: |
Deep,
Use &&temp again in step8 to refer to the already created temp dataset in step5. |
Hi,
I think you need to use the following DISPOSITION parameters too when you create that &&TEMP file too....DISP=(NEW,PASS)
This would mean that the temporary file created is used below in the subsequent steps.
Correct me if I am wrong... |
|
Back to top |
|
|
|