View previous topic :: View next topic
|
Author |
Message |
pravien
New User
Joined: 22 Feb 2005 Posts: 11 Location: chennai
|
|
|
|
Hi forum,
Here are some questions .expecting your answers
1.how to set the return code of a particular step to zero.
2.IF we set the LASTCC,Whether MAXCC automatically sets or what will be the result in this case? |
|
Back to top |
|
|
vijayamadhuri
Active User
Joined: 06 Apr 2005 Posts: 180
|
|
|
|
Hi
The return code will be zero if the particular step has been executed successfully.U cannot set a return code to zero.
The LASTCC and MAXCC are used to test the results using the IF-THEN-ELSE CONDITION.LASTCC contains the con condition code from the recently executed comand.MAXCC contains the highest condition code from the previously executed commands from the same job step basically use the IF-THEN-ELSE condition.we have to specify return code for both LASTCC and MAXCC.
like if LASTCC=0
THEN
SET MAXCC=16
like LASTCC=0
THEN
DELETE SOME DATASET.... |
|
Back to top |
|
|
mainframesguru
New User
Joined: 24 Jun 2005 Posts: 36 Location: Hyderabad
|
|
|
|
Hi Friends,
The Return Code can be set, if you are executing COBOL program.
i.e Move some-value to Return-Code.
There is a keyword in cobol, where it stores Return code.
For example, if the step executing this Cobol Program actually returns ,say Maxcc = 04,
now it will be reset to Maxcc=some-value, after we include the above stated code in the cobol program.
If you have any more doubts, do revert back.
Thanks And Regards
Vamshi
ICC-ISH.
****** Work Hard, Take Risk********** |
|
Back to top |
|
|
|