I removed all the stuff and got the same abend at the same offset, which
appears to be in the c module.
i have to get the load map, or maybe compile in batch but the jcl
generated with -v gives so many parms that it is hard to copy over for
batch run.
i just copied the hfs module into a pdse and executed it, which i think
is okay to do.
thanks for looking at this Michael.
int main()
{
call_obtain("XCICS.EILEEN.PDSE", "CICH92");
/*char dsname[44], volume[6]; */
/* memset(&dsname,' ',44); */
/* memcpy(&dsname, "XCICS.EILEEN.PDSE", 17); */
/* memset(&volume,' ', 6); */
/* memcpy(&volume, "CICH92", 6); */
/* call_obtain(dsname,volume); */
}
IEA995I SYMPTOM DUMP OUTPUT 311
SYSTEM COMPLETION CODE=0C4 REASON CODE=00000004
TIME=11.57.15 SEQ=03253 CPU=0000 ASID=0031
PSW AT TIME OF ERROR 078D0400 98A0011C ILC 6 INTC 04
ACTIVE LOAD MODULE ADDRESS=18A00000 OFFSET=0000011C
NAME=CTOASM
DATA AT PSW 18A00116 - D203B0A4 D0804110 B09858F0
GR 0: 000003B8 1: 00AC1C48
2: 00017368 3: 000107F0
4: 80017380 5: 80000000
6: 00000001 7: 98F8AA3A
8: 00000030 9: 80000000
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Michael Knigge
Sent: Friday, May 15, 2009 11:46 AM
To: [email protected]
Subject: Re: C/C++ Calling OBTAIN / IGC0002G
Hi,
> but when i look at c, c++ on the mainframe I know next to nothing - c#
> is completely different. That is why i got interested in this topic.
Well, C# ist more like Java as C or C++....
> although some do work and others abend. and the abends happen when
> running both batch and under OMVS. i have not yet looked up what the
> segmentation violation abend means.
segmentation violation is a S0C4.
> int main()
> {
> char dsname[44], volume[6];
> memset(&dsname,' ',44);
> ,Command ===>,
> memcpy(&dsname, "XCICS.EILEEN.PDSE", 17);
> memset(&volume,' ', 6);
> memcpy(&volume, "CICH92", 6);
> memset(&work,' ',140);
> call_obtain(dsname,volume,work);
Try
call_obtain("XCICS.EILEEN.PDSE", "CICH92");
and remove the stuff above...
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