I have some example HLASM code in "alpha" status available on the CBTTape.org web site. Look for File 864 here: http://www.cbttape.org/updates.htm
I don't say that it's the best. But hopefully the code in "SKELETON.s" will make fair sense. The file downloads like most on the CBT - you end up with a XMIT of a PDS, which you must then RECEIVE to create the actual PDS. But the actual code is in a pax archive, which is a member of the PDS. There is JCL to unwind the pax member in the PDS into a z/OS UNIX subdirectory. There is a makefile which you can use to do the actual assemblies. I do all my z/OS UNIX assemblies from a z/OS UNIX shell prompt. Oh, my HLASM code is LE enabled. It is not an absolute necessity for UNIX programs to be LE, but I sometimes use a C subroutine library call or two, and that requires LE. So I make all my UNIX code LE enabled. Also, I debug by forcing an S0C1 abend, and that causes the LE run time to create a CEEDUMP for me in the UNIX subdirectory in which I am testing. So I do have some reasons for liking LE. I know that many here despise LE. I'm rather neutral on it. -- 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 Scott Bennett > Sent: Friday, March 23, 2012 2:00 AM > To: [email protected] > Subject: How to extract arguments passed from Unix command line? > > 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! > >
