In a recent note, "Shmuel Metz (Seymour J.)" said:

> Date:         Tue, 20 Sep 2005 21:56:27 -0300
> 
> In <[log in to unmask]>, on 09/19/2005
>    at 10:52 PM, Paul Gilmartin <[log in to unmask]> said:
> 
> >What's a good and very reliable way to write a step which sets its
> >return code to a particular non-zero value?
> 
>  SET666   CSECT ,
>           LA    R15,666
>           BR    R14
>           END
> 
The number of similar suggestions I received show me I
failed to be sufficiently clear.  By "a step", I meant
_one_ step.  The above requires at least two: assemble
and load-and-go.  The following, however, works:

         START
         DC H'0'
         MNOTE 222,'whatever'
         END

(HLASM imposes a limit of 255 on return code.  Very
stingy to save 3 bytes somewhere.)

-- gil
-- 
StorageTek
INFORMATION made POWERFUL

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to