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

Setting return codes in easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sheeladevapriyan

New User


Joined: 06 Sep 2007
Posts: 2
Location: Bangalore

PostPosted: Thu Sep 13, 2007 8:30 pm
Reply with quote

Hi,

I am writing a easytrieve program where i am setting the return codes to some values to 0,1,4 etc, but it is taking program completion code as 0 and returning only 0. Help me out with this.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu Sep 13, 2007 8:41 pm
Reply with quote

Hello,

How are you doing this?
Quote:
i am setting the return codes to some values to 0,1,4 etc,
If you post the actual code, we will be able to offer suggestions.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Sep 13, 2007 8:58 pm
Reply with quote

In the General Fields section of System-Defined Fields, RETURN-CODE (amoung others such as SYSDATE, SYSDATE-LONG, SYSTIME & PARM-REGISTER) is explained:
RETURN-CODE is a four-byte binary field whose contents are returned to the operating system in register 15 when CA-Easytrieve/Plus terminates. RETURN-CODE is initialized to zero, but you can set it to any value.
Back to top
View user's profile Send private message
sheeladevapriyan

New User


Joined: 06 Sep 2007
Posts: 2
Location: Bangalore

PostPosted: Fri Sep 14, 2007 10:33 am
Reply with quote

I want to run the same job on monday and tuesday with two different parms, i am writing a easy trieve program where i am getting the day, and if the day is monday, i am moving the return code to 0 and if on tuesday i am moving to 1. Based upon the return codes the steps in my job would execute.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri Sep 14, 2007 12:53 pm
Reply with quote

With RETURN-CODE, now you can set the return code as you wish.....
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts Using JOINKEYS - Exclude accounts whi... SYNCSORT 10
No new posts SFTP Return Codes TSO/ISPF 2
No new posts Setting RC using NULLOFL/NOTMTOFL for... SYNCSORT 6
No new posts purge jobs with return code 0 and ret... JCL & VSAM 6
Search our Forums:


Back to Top