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

setting RC to zero


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pravien

New User


Joined: 22 Feb 2005
Posts: 11
Location: chennai

PostPosted: Mon Aug 01, 2005 9:02 pm
Reply with quote

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
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Mon Aug 01, 2005 11:10 pm
Reply with quote

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
View user's profile Send private message
mainframesguru

New User


Joined: 24 Jun 2005
Posts: 36
Location: Hyderabad

PostPosted: Tue Aug 02, 2005 11:13 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts Change Default Scroll Setting TSO/ISPF 1
No new posts Setting CA7 user variable from data s... CA Products 7
No new posts DSNTEP2 - setting exception DB2 2
No new posts Setting up a name counter in the coup... CICS 2
Search our Forums:

Back to Top