Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What will be other DISP parameters if first parm is SHR

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: What will be other DISP parameters if first parm is SHR
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: 1452
Location: Chicago, IL

PostPosted: Tue May 02, 2006 3:18 pm    Post subject: Re: What will be other DISP parameters if first parm is SHR
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    Post subject: regarding step4
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    Post subject: IF-THEN struct in JCL
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: 1452
Location: Chicago, IL

PostPosted: Tue May 02, 2006 7:52 pm    Post subject: Re: What will be other DISP parameters if first parm is SHR
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Multiple parameters Csongor All Other Mainframe Topics 16 Thu Jun 09, 2016 7:54 pm
No new posts SYSUT2 - CONFLICTING DCB PARAMETERS raulravi7 JCL & VSAM 6 Thu May 19, 2016 9:43 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us