well i finally figured out why my old copy of the Michaels code did not
work and the new stuff he sent did.
in one case the macros in the assembler code obtasm.s properly continued
in column 16 and in the other improperly in column 17.
But there were no assembly errors. Should not the CEENTRY macro have
flagged an error if could not recognize the parms beginning with a
blank? It must have just ignored the parms so the generated code got an
0c4 abend.
good code:
OBTAIN CEEENTRY PPA=MAINPPA, ADRESSE AUF PROGRAM PROLOG AREA X
AUTO=WORKSIZE, GROESSE DER DSECT (-> SAVEAREA!) X
NAB=NO, NAB NICHT ZWINGEND VORHANDEN X
MAIN=NO, KEIN HAUPTPROGRAMM X
EXPORT=NO, ENTRYPOINT NICHT EXPORTIEREN X
BASE=R11 BASISREGISTER
bad code:
OBTAIN CEEENTRY PPA=MAINPPA, ADDR OF PROGRAM PROLOG AREA X
AUTO=WORKSIZE, SIZE OF DSECT (-> SAVEAREA!)
XX
NAB=NO, NAB NOT USED
XX
MAIN=NO, NO MAINPROG
XX
EXPORT=NO, DONT EXPORT ENTRYPOINT
XX
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Barkow, Eileen
Sent: Monday, May 18, 2009 3:50 PM
To: [email protected]
Subject: Re: C/C++ Calling OBTAIN / IGC0002G
Micheal, this new stuff you sent works!!
i have to compare them with the old files i was using.
thanks again
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Michael Knigge
Sent: Monday, May 18, 2009 3:11 PM
To: [email protected]
Subject: Re: C/C++ Calling OBTAIN / IGC0002G
Eileen,
I don't know what is happening at your site, but on our system
everything runs fine.
I was able to compile and link the source and successfully do an OBTAIN
for SYS1.PARMLIB on volume Z9RES1.
I'll attach once again my source and also the SYSOUT of the "c++" so you
can compare your and my settings....
Good luck!
Bye,
Michael
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] 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 [email protected] 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 [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html