Charles, The other option you have is to look at METAL C or system C. Or a third party compiler.
Regards, Sam On Sat, Dec 26, 2009 at 9:14 PM, Charles Mills <charl...@mcn.org> wrote: > Trying to figure out this subject. > > > > The C/C++ Language Reference on p. 207 says "Under z/OS batch . argv[0] > Returns the program name in uppercase argv[1 to n] Returns the arguments as > you enter them." Not the most useful documentation - I don't think "as you > enter them" is terribly clear as it pertains to z/OS batch. > > > > The C/C++ User's Guide on p. 70 says "When NOARGPARSE is in effect, > arguments on the invocation line are not parsed, argc has a value of 2, and > argv contains a pointer to the string." > > > > Question: Does anyone know if a NOARGPARSE C++ program called via LINK or > ATTACH would receive parm 2 - the second word pointed to by R1 - anywhere? > Is there a recommended way to do this? > > > > What I'd like to end up with is a C program that "did me no favors" - if > invoked from JCL EXEC, then argv[1] would point to the PARM= string if any > ("as is") and if called via LINK or ATTACH would get the vector pointed to > by the caller's R1 as argv[1, 2, 3 .]. > > > > Anyone know the answer to this? > > > > Thanks, > > > > Charles Mills > > > ---------------------------------------------------------------------- > 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 > ---------------------------------------------------------------------- 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