learnmf
Active User
Joined: 14 Mar 2005 Posts: 123
|
|
|
|
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? |
|
ikumar
New User
Joined: 02 Aug 2005 Posts: 81
|
|
|
|
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. |
|