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
 

 

setting RC to zero

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: setting RC to zero
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    Post subject:
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    Post subject: Re: setting RC to zero
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts XFACILIT class setting for Fault Anal... egrove IBM Tools 2 Thu Aug 11, 2016 8:02 pm
No new posts CALL MACRO EXECUTE FORM - Setting the... sudarshan.srivathsav PL/I & Assembler 7 Tue Feb 09, 2016 10:32 pm
No new posts Setting up a new trigger krisprems DB2 4 Thu Dec 24, 2015 10:33 pm
No new posts character setting configuration into ... sakthikumarT DB2 5 Thu Nov 05, 2015 11:37 am


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