On Mon, 25 Jul 2011 16:13:29 -0500, Paul Gilmartin <[email protected]> wrote:
>The question remains, what's wrong with the standard [OS/360] linkage used by, >e.g., EXEC PGM=? Different environments have different requirements, gil. TSO commands require a different and specific set of parameters to make the data they need available. The same applies to CICS transaction programs, IMS transaction programs, UNIX commands, REXX functions, etc. The basic idea between all these is the same: R1 points to a list of addresses and each of the addresses points to a piece of data, but still the number of addresses and the data they point to is different in each case. SELECT PGM and SELECT CMD provide different parameters for exactly that reason, and a program written to expect one set of parameters will not work when presented with a different set. We've also had a number of discussions here, I think, with people trying to write a program that would work in any environment and would somehow recognize or figure out which set of parameters it had been passed and treat them appropriately. I prefer the approach of documenting which environment a program can run in, and if it needs to work in a different environment giving it a new entry point that will understand the different parameters that environment uses. And then documenting what program name the users should invoke for each environment. -- Walt Farrell IBM STSM, z/OS Security Design ---------------------------------------------------------------------- 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

