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
 

 

Interview question

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Sat Oct 01, 2005 6:49 pm    Post subject: Interview question
Reply with quote

q1.In Below JCl

Code:
step10  exec .....     
step20  exec ....
step30  exec.... cond=even
step40  exec...


What will be the return code if step20 abends and gine return code 8?
Is step40 will exec or not?

Q2. A JCL contains a PROC which has a Step exec pgm=A statement
Now i want to pass parameter?
What are the diff methods to pass parameter?

Q3.prog A call Prog B ,Prog B call Prog C?
Now if i set return code in prog c =16, in prog B return code=8 and in A it is 5.

What will be the final one.

Q4 Can we delete a record of ESDS via File-Aid

Q5. Freespace(0,0) means?

Q6.What will be the error if Prog a calls Prog B and we give stop run in prog B?
Back to top
View user's profile Send private message

ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Tue Oct 04, 2005 12:13 pm    Post subject: Re: Interview question
Reply with quote

1) Step40 will not execute.

2) use PARM=('...'), in ur step

3) It depends on where you set the return-code within the programs...
Suppose if you set return-code in Program A afetr the calls to program B & C, then it gives you the return-code you have set in Program A, that is RC=16.

If you have set the rc in program A before calling B, and program B resets the return code to 8 and comes back to Program A, then the return-code will be 8.

It depends on the location of the code exist....

4) You cannot delete a record from ESDS...thru file-aid also.

5) If there are few inserts, or most inserts at End-of-file, then it is better to code FREESPACE(0 0) when you are defining the cluster freespace. In this case, this is best to code for performance purpose.

6) Program B will end the task and gives control back to the system instead of returning back to Program A.

Please let me know if I am wrong anywhere....

Cheers,
Kumar.
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 Fault Analyzer - listings question. egrove IBM Tools 4 Thu Aug 11, 2016 5:31 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts SQL Order By related question Joseph K Thomas DB2 8 Fri Mar 18, 2016 12:53 pm
No new posts DFSort Question krrp DFSORT/ICETOOL 9 Mon Mar 07, 2016 7:11 pm
No new posts Where can i find Interview questions ... Elixir Mainframe Interview Questions 4 Sat Feb 20, 2016 12:38 am


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