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 QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts The Last Two Question For You To Ask ... CaptBill Mainframe Interview Questions 0 Fri Apr 14, 2017 5:42 am
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm


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