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

Interview question


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts panel creation question TSO/ISPF 12
No new posts Sort w/OUTREC Question DFSORT/ICETOOL 2
Search our Forums:

Back to Top