TSO is archaic and was, IMO, not "well designed". Well, it possibly was back in MVT days. But it has not advanced with the times along with the rest of z/OS.
And it depends on why you want to use TSO in a batch program. I would guess it is just so that you don't have to re-invent the wheel. Depending on what you want to do, you could possible use BPXWUNIX to invoke a UNIX REXX program which did an ADDRESS TSO to run the APF authorized TSO command. This will work. I do it myself at times. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets® 9151 Boulevard 26 . N. Richland Hills . TX 76010 (817) 255-3225 phone . john.mck...@healthmarkets.com . 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® is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company®, Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM > -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Scott Ford > Sent: Thursday, February 16, 2012 3:34 PM > To: IBM-MAIN@bama.ua.edu > Subject: Re: Authorized functions > > Tony, > > I dont want to knock IBM but for us developers this is UGLY ... > Maybe the problem is they never intended for it to be called > that way ... > > FWIW,, > > Regards, > > Scott J Ford > Software Engineer ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN