Article View: comp.lang.asm370
Article #1055Re: JCL Question about the RC system Variable
From: Warren Porter
Date: Fri, 31 Mar 2000 00:00
Date: Fri, 31 Mar 2000 00:00
32 lines
2274 bytes
2274 bytes
Thomas David Rivers wrote:
> Terry Heinze wrote:
>
> > You can't set the RC in JCL with a JCL statement, but you COULD exec a COBOL
> > pgm that set the value of RETURN-CODE for the step the pgm was executed in.
> > The value of the RC in your first step would remain that value for the
> > during of the job. In other words, replace // SET RC=4 by // EXEC
> > PGM=SETRC4 then test the result of the step executing SETRC4. Each step
> > returns it's own RC, so in ob containing 4 steps, there are 4 different RCs
> > you can test.
>
> Well - a COBOL program may be a little overboard; just write a quick
> ASM program that puts 4 in R15 and does a BALR 14,15. That will
> set the 4 as the RC.
>
> Something like:
>
> SET4RC CSECT
> L 15,=F'4'
> BALR 14,15 ???????????
> LTORG
> END SET4RC
I think you are at the wrong end of the program for that instruction. Try
LA 15,4
BR 14
after the registers have been restored. The BALR would load the address of the
next instruction in Reg 14 and branch to the address in Reg 15, but the system
wouldn't let you branch to low core.
--
Warren Porter - Remove digits
Technical Details
Message-ID:
<38E4BCB4.26640B6E@bellsouth12.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8c1rst$dnl$1@hardcopy.ny.jpmorgan.com> <8c28kc$2a5k$1@newssvr04-int.news.prodigy.com> <38E4B15C.B33B23C6@dignus.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d15b,42752b244b2e1d2d X-Google-Attributes: gid10d15b,public X-Google-Thread: f8131,42752b244b2e1d2d X-Google-Attributes: gidf8131,public X-Google-Thread: 101deb,42752b244b2e1d2d X-Google-Attributes: gid101deb,public X-Google-Thread: 11415f,42752b244b2e1d2d X-Google-Attributes: gid11415f,public From: Warren Porter <wb999port@bellsouth12.net> Subject: Re: JCL Question about the RC system Variable Date: 2000/03/31 Message-ID: <38E4BCB4.26640B6E@bellsouth12.net> X-Deja-AN: 604817706 Content-Transfer-Encoding: 7bit References: <8c1rst$dnl$1@hardcopy.ny.jpmorgan.com> <8c28kc$2a5k$1@newssvr04-int.news.prodigy.com> <38E4B15C.B33B23C6@dignus.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: news1.mia 954514620 216.78.3.141 (Fri, 31 Mar 2000 09:57:00 EST) MIME-Version: 1.0 NNTP-Posting-Date: Fri, 31 Mar 2000 09:57:00 EST Newsgroups: comp.lang.asm370,comp.lang.cobol,comp.lang.pl1,bit.listserv.tsorexx