IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What will be other DISP parameters if first parm is SHR


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
atulrukmangad

New User


Joined: 10 Apr 2006
Posts: 13

PostPosted: Mon May 01, 2006 12:02 pm
Reply with 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.

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue May 02, 2006 3:18 pm
Reply with quote

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
View user's profile Send private message
jayanta_nit

New User


Joined: 13 Apr 2006
Posts: 22
Location: hyderabad

PostPosted: Tue May 02, 2006 7:40 pm
Reply with quote

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
View user's profile Send private message
jayanta_nit

New User


Joined: 13 Apr 2006
Posts: 22
Location: hyderabad

PostPosted: Tue May 02, 2006 7:44 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue May 02, 2006 7:52 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
Search our Forums:

Back to Top