Home > Return Code > Return Code Rexx

Return Code Rexx

In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms When a Rexx program is running, this return code is automatically assigned to a special built-in Rexx variable named RC.

If the command was processed without problems, the return code is Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. What would be your next deduction in this game of Minesweeper? Source

some instructions here..EXIT [your RETURN-CODE]cukai Red Flag This Post Please let us know here why this post is inappropriate. Open-rexx?0How to parse variable in REXX/Regina0Dealing with PULL in REXX0Rexx, Parse a file for a single line0Can't figure out data type of character in REXX0How to copy stem value to simple If any error in rexx it sets the RC variable to non-zero value but the step in the JCL still runs fine with return code equals to zero. RE: Setting return code variable of JCL kregen (Programmer) 10 Jan 03 12:51 Hello,please use IKJEFT1A or IKJEFT1B and not IKJEFT01 to execute your REXX-Script.then you can set the RETURN-CODE for

Close Box Join Tek-Tips Today! How did Adebisi make his hat hanging on his head? Open Object Rexx™: Programming GuidePrevChapter 7.

  1. Back to top Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 YearOldest FirstNewest First MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT -
  2. Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free!
  3. Unix System Services For the SYSCALL environment (callable services): -3 usually means that syscalls('ON') has not been issued or did not succeed -20 indicates that the command was not recognized -2n
  4. The number depends on the command itself and the error encountered.

    This example shows how to display a return code:

    /* GETRC.CMD report */ "TYPE nosuch.fil" say "the return code
  5. rexx share|improve this question asked Nov 30 '10 at 12:16 Partha 62 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote /* REXX */ "LISTDS ?"

All i want is set the condition code of step calling rexx in JCL to non-aero value in case of any rexx failure.Can someone help in this regard ??Anks RE: Setting Resources Join | Advertise Copyright © 1998-2017 ENGINEERING.com, Inc. By joining you are opting in to receive e-mail. How to tell my parents I want to marry my girlfriend Can this number be written in (3^x) - 1 format?

Already a member? When a Rexx program is running, this return code is automatically assigned to a special built-in Rexx variable named RC.

If the command was processed without problems, the return code is Graphlex 4x5 Lens Hood and Filters - How Do They Mount? Registration on or use of this site constitutes acceptance of our Privacy Policy.

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed The special value -3 indicates that the specified command was not found. Bruteforcing a keypad lock Why do CDs and DVDs fill up from the centre outwards? up vote 1 down vote favorite how to assign a value to RC special variable in REXX?

Join UsClose MVSFORUMS.comA Community of and for MVS Professionals FAQ Search Quick Manuals Register Profile Log in to check your private messages Log in How to set return code in Rexx http://stackoverflow.com/questions/4313630/rc-special-variable-in-rexx share|improve this answer answered Nov 30 '10 at 15:59 Deuian 700512 add a comment| up vote 0 down vote If you want to set the return value of your method you You might have to press the Ctrl+Break key combination to stop processing. When jumping a car battery, why is it better to connect the red/positive cable first?

Bash remembers wrong path to an executable that was moved/deleted What time does "by the time" mean? this contact form For More Information Visit the REXX page here for more sources of REXX info. MVSFORUMS.com Forum Index -> TSO and ISPF View previous topic :: View next topic Author Message PremkumarModeratorJoined: 28 Nov 2002Posts: 77Topics: 7Location: Chennai, India Posted: Mon Dec 02, 2002 11:07 How can I stop Alexa from ordering things if it hears a voice on TV?

Do we know exactly where Kirk will be born? Without some provision to stop the program, in this case a trap, Rexx continues running. Not the answer you're looking for? have a peek here asked 6 years ago viewed 1562 times active 4 years ago Get the weekly newsletter!

All rights reserved.Unauthorized reproduction or linking forbidden without expressed written permission. Close Reply To This Thread Posting in the Tek-Tips forums is a member-only feature. Send form result back to twig Why does the U-2 use a chase car when landing?

RE: Setting return code variable of JCL ringd (Programmer) 2 Jan 03 05:22 I do this...zispfrc = exit_code"VPUT (ZISPFRC)"EXIT...

Preserving Vertices Are the guns on a fighter jet fixed or can they be aimed? Is it bad practice to use GET method as login username/password for administrators? Browse other questions tagged rexx or ask your own question. Join your peers on the Internet's largest technical computer professional community.It's easy to join and it's free.

How to interpret this decision tree? ​P​i​ =​= ​3​.​2​ more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us In the next example, an error message is displayed when the TYPE command returns a nonzero value in RC:

/* Simple if/then error handler */ say "Type a file name:" A WITH RC = 4" RETURN 4 /* REXX - PROGRAM B */ SAY "CALLING PROGRAM A..." CALL PROG_A RC = RESULT SAY "RC = "RC " RETURN FROM PROGRAM A..." Check This Out You might have to press the Ctrl+Break key combination to stop processing.

If something goes wrong, the return code issued is a nonzero number. Rexx includes the following instructions for trapping and controlling system errors:

CALL ON ERROR

CALL ON FAILURE

SIGNAL ON ERROR

SIGNAL ON FAILURE

and the batch job step ends with whatever number exit_code has been assigned.Cheers,Dave. Why leave magical runes exposed? Register now while it's still free! Join Us! *Tek-Tips's functionality depends on members receiving e-mail.

The number depends on the command itself and the error encountered.

This example shows how to display a return code:

/* GETRC.CMD report */ "TYPE nosuch.fil" say "the return code In the next example, an error message is displayed when the TYPE command returns a nonzero value in RC:

/* Simple if/then error handler */ say "Type a file name:" The piece of code, that you had given for the ISPF environment, what is the significance and where can it be used ? Thanks, Rajvasan Back to top PremkumarModeratorJoined: 28 Nov 2002Posts: 77Topics: 7Location: Chennai, India Posted: Fri Jan 03, 2003 5:27 am Post subject: Rajvasan, When you are executing ISPF dialogs in batch,

Rexx includes the following instructions for trapping and controlling system errors:

CALL ON ERROR

CALL ON FAILURE

SIGNAL ON ERROR

SIGNAL ON FAILURE

Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by HomeForumsProgrammersLanguagesREXX Forum Setting return code variable of JCL thread277-420043 Forum Login with LinkedIN Or Log In Locally Email Password Remember Me Forgot Password?Register ENGINEERING.com Eng-Tips Forums Tek-Tips Forums Search Posts Find A Forum Thread Number Find An Expert Resources Jobs Code: zispfrc = rcode address ispexec "vput (zispfrc) shared" Back to top rajvasanBeginnerJoined: 10 Code: Exit RC Use the following code for programs with ISPF environment.

For REXX services provided by IBM or other software vendors, refer to the product documentation for more information on how to interpret these return codes.