Not the same at all on z/OS UNIX.

--
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone *
[email protected] * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM



> -----Original Message-----
> From: IBM Mainframe Assembler List
> [mailto:[email protected]] On Behalf Of Paul Raulerson
> Sent: Friday, March 23, 2012 7:22 AM
> To: [email protected]
> Subject: Re: How to extract arguments passed from Unix command line?
>
> I know under Linux, R2 would have the argument count, and R3
> would have the address of an array of the addresses of null
> terminated strings consisting of each argument. In the case
> below, R2 would equal three, and R3 would point to an array like this:
>
> [address +0]->myroutine[null]
> [address+4]->arg1[null]
> [address+8]->arg2[null]
> [address+12]->[null]
>
> Not sure if it works exactly the same under USS, but I think
> so. Test it to be sure!  Hope that helps a bit...
>
> Paul
>
> Sent from my iPad
>
> On Mar 23, 2012, at 1:59 AM, Scott Bennett
> <[email protected]> wrote:
>
> > I am trying to find documentation or examples that show how
> I can utilize
> > (I assume) register 1 to access the value of the arguments
> from a caller to
> > my assembler routine executed under USS.
> >
> > For example, if my routine was called from USS as:
> >
> > $ myroutine arg1 arg2
> >
> > How can I get the value arg1 and arg2?
> >
> > Thanks!
>
>

Reply via email to