If the C program is designed to be called from JCL then it will expect R1 -> 
PLIST -> (LEN,CHARS), where LEN is a halfword containing the length of CHARS. 
The compiled prolog will convert that to a C parameter list. Whic C compiler 
are you using, with what options?


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

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Fabio Massimo Ottaviani [[email protected]]
Sent: Monday, November 21, 2022 4:22 AM
To: [email protected]
Subject: Assembler program attaching a C program

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

Reply via email to