Charles,

Try specifying the length as the 1st parm.

ATTACH EP=CPGM,ECB=STECB,PARAM=(PPARM)

PPARM    DC    H'17',C'PARM1,PARM2,PARM3'

Your results should be:

2                               /* argc  */
CPGM                         /* argv0 */
PARM1,PARM2,PARM3    /* argv1 */

hth,
Dave Waldman


On Sat, 26 Dec 2009 16:14:39 -0500, Charles Mills <charl...@mcn.org> 
wrote:

>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?

----------------------------------------------------------------------
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