JCL Return Code (RC) 4. Procession for the dead How can we get our son to stop sleeping in our bed? P.S.: I tryed in REXX: 1- return my_return_code 2- exit my_return_code I also tried with vput, but I don't know how to retrieve that value bask in All rights reserved.Unauthorized reproduction or linking forbidden without expressed written permission.
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, i add two statement, zispfrc = 16 address ispexec " vput (zispfrc)"the jcl final rc set to 16,job works fine. Each are called in a different > step in the same JCL. Join your peers on the Internet's largest technical computer professional community.It's easy to join and it's free.
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... Close Box Join Tek-Tips Today! The piece of code, that you had given for the ISPF environment, what is the significance and where can it be used ? Are you aComputer / IT professional?Join Tek-Tips Forums!
RE: Setting return code variable of JCL ringd (Programmer) 2 Jan 03 05:22 I do this...zispfrc = exit_code"VPUT (ZISPFRC)"EXIT... 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 Click Here to join Tek-Tips and talk with other members! Code Exit statement with RC for programs without ISPF environment.
You mentioned that you are invoking three programs in a single step. Code: zispfrc = rcode address ispexec "vput (zispfrc) shared" Back to top rajvasanBeginnerJoined: 10 return -code return doesn't play nice with set 6. You might have to press the Ctrl+Break key combination to stop processing.
All programs will be executed regardless of the return code. Without some provision to stop the program, in this case a trap, Rexx continues running. current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. 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 -
If something goes wrong, the return code issued is a nonzero number. 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 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? 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.
What's the purpose of the same page tool? ABC Code : Return without parenthesis 12. 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 A bit, a nibble or bite?
By joining you are opting in to receive e-mail. 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 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: Below is an example of how to do this within your REXX program: /* REXX */ address ISPEXEC return_code = 13 /* or whatever
Thank you. Need a better layout, so that blank space can be utilized Make an interweaving quine Best way to change site IP address - from the end user perspective? CommandsNext
So you can set it to whatever you want at least on a mainframe running Zos. Need JCL Return Code Help 5. Close Reply To This Thread Posting in the Tek-Tips forums is a member-only feature. Already a member?
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 Each are called in a different step in the same JCL. 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. How to get the max return code in jcl ? 2.
Any suggestion? 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 How to politely decline a postdoc job offer after signing the offer letter? branching on return code 9.
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. Register now while it's still free! Klaus ++EOM++ Mon, 14 Jan 2002 03:00:00 GMT Jean-Pierre Bouche#3 / 4 return code to JCL I tried with IKJEFT1A... In each REXX program, I return a code to know how > the program terminated (i.e: 13 = error).
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 asked 6 years ago viewed 1552 times active 4 years ago Related 0How do I display a table to an ISPF panel with Rexx then retrieve back updated user input?1Anyone know Using REXX by Balamurugan3 » Mon May 24, 2010 10:35 am 3 Replies 2092 Views Last post by expat Fri Jul 16, 2010 11:59 am return code of JCL by syamcs 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,
Passing a parameter Rexx to JCL and return a parameter to JCL 3. 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 Quote: > Hi, > instead of using IKJEFT01 you should use IKJEFT1A to start your > batch TSO. Join Us! *Tek-Tips's functionality depends on members receiving e-mail.
up vote 1 down vote favorite how to assign a value to RC special variable in REXX? Let me know if I can be of further assistance. 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:" need help with jcl coding 8.
If multiple programs are invoked then IKJEFT01 will use the return code from the last program executed. 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..."