On Sat, 26 Dec 2009 15:28:11 -0700, Steve Comstock wrote:
>
>Actually, the linkage you describe is only 'standard' for a
>subroutine. Standard linkage for a main program is to be
>passed a single parm, the address of a half-word prefixed string,
>pointed at by R1. A main program cannot accept multiple parms,
>in the sense of a list of addresses longer than one entry.
>
What's a "subroutine"?  What's a "main program"  The Utilities
RM describes how (most?) utilities can be ATTACHed with 3 parms:

o The parameter string

o a list of alternate DD names

o An initial page number for SYSPRINT.

Are utilities subroutines or main programs if they can accept
multiple parms?

I believe this is a restriction of the caller, not the called
"program" or "subroutine".  JCL (and perhaps some other languages)
can pass only one parm.  Assembler, Rexx, and many other languages
can pass multiple parms.  The OP is seeking a way that a C program
can access those parms.  He'd be home free if he could get the
content of GR1 as passed to CALL/LINK/ATTACH.

-- gil

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

Reply via email to