Home > How To > How To Set The Return Code In Rexx

How To Set The Return Code In Rexx

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 ?" current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Maybe you need to provide more detail in your question like what type of Rexx it is (Classic or OO) and what environment you are using. CommandsNext

Using Return Codes from CommandsWith each command it processes, Windows and Unix/Linux command shells produce a number called a return code.

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 The problem is, in SDSF, I have a message telling me that the program terminated with return code 13, but JCL always have a code 0000 which don't help me much. I hope this helps. How can I pass the return code from REXX to JCL?

Open Object Rexx™: Programming GuidePrevChapter 7. 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 ABC Code : Return without parenthesis 12. branching on return code 9.

Why is the first book of the Silo series called Wool? IKJEFT01 will always return 0. > Klaus > ++EOM++ -- Jean-Pierre Boucher DBA Team 7-3246 Mon, 14 Jan 2002 03:00:00 GMT Chris Lewi#4 / 4 return code to JCL Jean-Pierre, up vote 1 down vote favorite how to assign a value to RC special variable in REXX? If something goes wrong, the return code issued is a nonzero number.

What's the purpose of the same page tool? Procession for the dead How can we get our son to stop sleeping in our bed? I want to use this code as condition in my JCL. Line Returns in Code 11.

Am I paranoid, or are corporate firewalls censoring entire countries? A bit, a nibble or bite? NAME- TOTAL TCB CPU TIM13.32.59 JOB52174 $HASP395 RX$LMDIR ENDED and there are some error in SYSTPRT OUTPUTISPD117 The initially invoked CLIST ended with a return code = 16 good123 Posts: RE: Setting return code variable of JCL ringd (Programmer) 2 Jan 03 05:22 I do this...zispfrc = exit_code"VPUT (ZISPFRC)"EXIT...

Join your peers on the Internet's largest technical computer professional community.It's easy to join and it's free. Each are called in a different step in the same JCL. 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. i add two statement, zispfrc = 16 address ispexec " vput (zispfrc)"the jcl final rc set to 16,job works fine.

In each REXX program, I return a code to know how the program terminated (i.e: 13 = error). In order to pass a return code back to IKJEFT01 thru ISPF you must set a special variable called ZISPFRC to your return code in the shared profile pool. 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! Although exit REXX but,return code is zero,not 16.i think it is ispf service return code.How to set rc to 16 at final job end?Can any one give me a sugguestion ?thanks

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 Passing variables between JCL and Rex / Rexx and JCL 7. The job " || Job_err || " not in " || SrcLib Call WTO_MSG Err_msg exit 16 End JOB LOG13.32.54 JOB52174 ---- MONDAY, 25 APR 2011 ---- 13.32.54 JOB52174 IRR010I USERID and the batch job step ends with whatever number exit_code has been assigned.Cheers,Dave.

Code: Exit RC Use the following code for programs with ISPF environment. Symbolic manipulation of expression with undefined function Help with a holiday cryptic crossword What is plausible biology of ocean-dwelling, tool-using, intelligent creatures? 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

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

Here is how I call REXX in my JCL: //SYSTSIN DD * ISPSTART CMD(RMSREOR) Note that I included ISP libraries: ISPPLIB ISPMLIB ISPSLIB ISPTLIB Any other idea? Can we set the LASTCC/MAXCC variables from rexx ??I am running my rexx through batch job using utility IKJEFT01. by venkateceusa » Tue Jan 27, 2009 1:15 pm 3 Replies 534 Views Last post by dick scherrer Wed Jan 28, 2009 4:30 am how can i return more than one Any suggestion?

but still getting cond code in JCL = to 0000. 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:" Close Box Join Tek-Tips Today! Click Here to join Tek-Tips and talk with other members!

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 Registration on or use of this site constitutes acceptance of our Privacy Policy. I want to use this code as > condition in my JCL. > The problem is, in SDSF, I have a message telling me that the program > terminated with return Join them; it only takes a minute: Sign up RC special variable in REXX?

Chris Lewis GTE Data Services Quote:> Hi, > I have 3 REXX program to execute. You might have to press the Ctrl+Break key combination to stop processing. Code Exit statement with RC for programs without ISPF environment.

© 2017 jscience.net