Home > Return Code > Return Code Rexx

Return Code Rexx

Cancel Red Flag SubmittedThank you for helping keep Tek-Tips Forums free from inappropriate posts.The Tek-Tips staff will check this out and take appropriate action. What do you call this alternating melodic pattern? Close Box Join Tek-Tips Today! 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 navigate here

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..." When jumping a car battery, why is it better to connect the red/positive cable first? 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! Without some provision to stop the program, in this case a trap, Rexx continues running.

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, How to tell my parents I want to marry my girlfriend Can this number be written in (3^x) - 1 format? 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 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

Why leave magical runes exposed? Join Us! *Tek-Tips's functionality depends on members receiving e-mail. You might have to press the Ctrl+Break key combination to stop processing. 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

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 If a system abend occurs, the value returned is the negative of the decimal value of the abend code. 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 ?" http://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ikja300/jclcode.htm CommandsNext
Using Return Codes from CommandsWith each command it processes, Windows and Unix/Linux command shells produce a number called a return code.

Code: zispfrc = rcode address ispexec "vput (zispfrc) shared" Back to top rajvasanBeginnerJoined: 10 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 Close Reply To This Thread Posting in the Tek-Tips forums is a member-only feature. 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

Send form result back to twig Why does the U-2 use a chase car when landing? http://stackoverflow.com/questions/4313630/rc-special-variable-in-rexx Do we know exactly where Kirk will be born? Hope this helps. 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.

For More Information Visit the REXX page here for more sources of REXX info. check over here Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. RE: Setting return code variable of JCL ringd (Programmer) 2 Jan 03 05:22 I do this...zispfrc = exit_code"VPUT (ZISPFRC)"EXIT... Close this window and log in.

By joining you are opting in to receive e-mail. Here's Why Members Love Tek-Tips Forums: Talk To Other Members Notification Of Responses To Questions Favorite Forums One Click Access Keyword Search Of All Posts, And More... 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:" his comment is here CommandsNext
Using Return Codes from CommandsWith each command it processes, Windows and Unix/Linux command shells produce a number called a return code.

So you can set it to whatever you want at least on a mainframe running Zos. Browse other questions tagged rexx or ask your own question. 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

For a user abend, RC is set to the decimal value of the abend code.

How can I stop Alexa from ordering things if it hears a voice on TV? Authentication Error for ABBY Ocr Sdk! Related 0How do I display a table to an ISPF panel with Rexx then retrieve back updated user input?1Anyone know of Milsted rexx for windows? How did Adebisi make his hat hanging on his head?

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 Code Exit statement with RC for programs without ISPF environment. Click Here to join Tek-Tips and talk with other members! weblink 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

Register now while it's still free! 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 Resources Join | Advertise Copyright © 1998-2017 ENGINEERING.com, Inc. Rexx includes the following instructions for trapping and controlling system errors:

CALL ON ERROR

CALL ON FAILURE

SIGNAL ON ERROR

SIGNAL ON FAILURE

Are you aComputer / IT professional?Join Tek-Tips Forums! Code: Exit RC Use the following code for programs with ISPF environment. 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 For example, an S0C1 abend would result in RC = -193.

up vote 1 down vote favorite how to assign a value to RC special variable in REXX? 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 Registration on or use of this site constitutes acceptance of our Privacy Policy.