View previous topic :: View next topic
|
Author |
Message |
atulrukmangad
New User
Joined: 10 Apr 2006 Posts: 13
|
|
|
|
1) There is Job with 4 steps. Step 3 has COND parameters for Step 2 and Step 4 has COND parameters for Step 3.
If Step 2 returns an RC such that Step 3 does not execute what will happen to Step 4.
2) What will be other DISP parameters if the first parameter is SHR
3) In NATURAL what will be the result of following statement and why.
READ(10) EMPLOY-VIEW WITH EMPLOY-ID = '3'
ACCEPT IF EMPLOY-ID = '3'
REJECT IF EMPLOY-ID = '3'
WRITE EMPLOY-ID
END-READ
4) How will you skip a step in a JCL without using COND parameters. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
1) There is Job with 4 steps. Step 3 has COND parameters for Step 2 and Step 4 has COND parameters for Step 3.
If Step 2 returns an RC such that Step 3 does not execute what will happen to Step 4. |
STEP4 wouldn't be executed.
Quote: |
2) What will be other DISP parameters if the first parameter is SHR |
Should be KEEP, KEEP... Until you specify soemthing exclusively...
Quote: |
4) How will you skip a step in a JCL without using COND parameters. |
Using IF-THEN structure.
Regards,
Priyesh. |
|
Back to top |
|
|
jayanta_nit
New User
Joined: 13 Apr 2006 Posts: 22 Location: hyderabad
|
|
|
|
acoording to ur first question i.e There is Job with 4 steps. Step 3 has COND parameters for Step 2 and Step 4 has COND parameters for Step 3.
If Step 2 returns an RC such that Step 3 does not execute what will happen to Step 4.
ans:
.........step 4 will also not be executed and RC of the step2 remains same.
if i'm wrong pls correct me.
regards
jayanta kr. mondal
Hyderabad |
|
Back to top |
|
|
jayanta_nit
New User
Joined: 13 Apr 2006 Posts: 22 Location: hyderabad
|
|
|
|
hi priyesh,
can we use IF-THEN structure in JCL.if yes pls give me the code.
regards
jayanta kr. mondal
Hyderabad |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
jayanta ,
Yes, you can use IF-THEN structure in JCL. check this related post discussed earlier for the same...
Also check out the manuals for complete info...
Regards,
Priyesh. |
|
Back to top |
|
|
|