The OP is using standard for; the addresses in PARAM are constants; he is not 
passing a parameter in R10 but rather is passing a PLIST containing only the 
address 10.

Two fixes are possible:

 1. Use separate execut and list forms and put parentheses around R10, i,e., 
PARM=((R10))

 2. Build his own PLIST, point R1 to it and omit PARAM

Either way he needs to know whether the C routine expects a JCL PARM.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Amr@Systemz [[email protected]]
Sent: Monday, November 21, 2022 11:13 PM
To: [email protected]
Subject: Re: Assembler program attaching a C program

 Char **argv expects an array of char pointers, are you trying to pass that ? 
Why did you choose R10 for passing parameters ? Is your program using xlc or 
metal ?

try sending it in R1.
     On Monday, November 21, 2022, 01:32:41 AM PST, Fabio Massimo Ottaviani 
<[email protected]> wrote:

 Hello

I wrote an assembler program attaching a C program with ATTACHX

ATTCH    ATTACHX EP=PROGC,PARAM=R10,
              ECB=AMYECB,
              DISP=NO

I set the address of the field, I want to pass as parameter, in R10
I checked that argv in the C program is empty

Is there something I have to do in the C program to get the content of the 
field?

Thanks
Fabio

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to