View previous topic :: View next topic |
Author |
Message |
vanight Beginner
Joined: 15 Jul 2003 Posts: 4 Topics: 3
|
Posted: Tue Jul 15, 2003 6:09 pm Post subject: Help with self study JCL questions - Any help appreciated! |
|
|
Hello. I am new to this forum and new to JCL. If anyone can help me with these self study questions I found, that would be great! Also, any links to free tutors or CBTs for COBOl/JCL/VSAM ect.. would be helpful. I dont have money to spend on a bunch of books so trying to find free resources.
Thanks for any help!! Here are the questions:
1. You have a flat (sequential) file that needs to be used to load a VSAM file that has an Alternate index. With JCL how would you do this?
2. In a job you have 10 steps. You want to process steps 1-6 and steps 9 and 10, based on the return code from step 6 How would you achieve this? |
|
Back to top |
|
 |
warp5 Intermediate

Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Thu Jul 17, 2003 1:11 am Post subject: |
|
|
To 1:
You could use IDCAMS Repro to load the dataset, then define and build the alternate index. You should always load the dataset first and then build the alternate index - the fastest way. |
|
Back to top |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Thu Jul 17, 2003 2:21 am Post subject: |
|
|
To 2: Code: |
//TESTCON IF ((STEP6.RC >= 8 AND STEP6.RC <= 12) OR
// (STEP6.RC=4)) THEN
//STEP7 ...
.
.
.
//STEP8 ...
.
.
.
// ELSE
//STEP9 ...
.
.
.
//STEP10 ...
.
.
.
// ENDIF |
|
|
Back to top |
|
 |
|
|