I have an Assembler started task communicating with a windows MFC program 

There is code that is similar to both thus I have decided to use c/c++ for this 
common code I normally use TEST to debug the Assembler from TSO but the C/C++ 
would be difficult thinking when I get to the ceetest is will invoke debug tool 
just not sure how debug tool handles DWARF format files or if I have to do any 
conversions 

Thanks 

> On Jul 8, 2019, at 8:34 AM, Lizette Koehler <[email protected]> wrote:
> 
> So I think this is should work.  I have not coded in C for a while.  Are you 
> using DEBUG process or do you want to eliminate DEBUG Process?
> 
> First you will need a compile/lked proc that will handle C code. There are .h 
>  libs you will need to have available for the process.
> 
> Then if your code looks like this
> 
> Following is an example of CEETEST called by C/C++.
> /*Module/File Name: EDCTEST   */
> 
> #include <string.h>
> #include <stdio.h>
> #include <leawi.h>
> #include <stdlib.h>
> #include <ceeedcct.h>
> 
> int main (void) {
> 
>   int x,y,z;
>   _VSTRING commands;
>   _FEEDBACK fc;
> 
>   strcpy(commands.string,
>            "AT LINE 30 { LIST(x); LIST(y); GO; }");
>   commands.length = strlen(commands.string);
> 
>   CEETEST(&commands,&fc);
> 
>   if ( _FBCHECK ( fc , CEE000 ) != 0 ) {
>      printf("CEETEST failed with message number %d\n",
>              fc.tok_msgno);
>      exit(2999);
>   }
>   x = y = 12;
>  /* .
>     .
>     . */
>   /* debug tool displays the values of x and y */
>   /* at statement 30 */
>  /* .
>     .
>     . */
> }
> 
> Then the normal LE libraries and the .h libraries should pull it all together.
> 
> The LE manuals are decent on how to do this
> 
> Have you scanned SYS1.PROCLIB (or equivalent in your shop) for the C language 
> compile PROCs should begin with EDC as shipped by IBM?
> 
> That may help you with this process
> 
> Lizette
> 
> 
>> -----Original Message-----
>> From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
>> Joseph Reichman
>> Sent: Monday, July 08, 2019 5:26 AM
>> To: [email protected]
>> Subject: Re: include library for @@CEETEST
>> 
>> I’m using XL C\C++. I’m thinking the #pragma map will give me the name
>> CEETEST name of the load module in CEE.SCEERUN wonder if I have to do a
>> pragma linkage  I think the call to ceetest is dynamic
>> 
>> 
>> 
>> 
>> 
>>> On Jul 8, 2019, at 8:23 AM, Lizette Koehler <[email protected]>
>> wrote:
>>> 
>>> What language and what error message are you getting?
>>> 
>>> What level of z/OS are you at?
>>> 
>>> Lizette
>>> 
>>> 
>>>> -----Original Message-----
>>>> From: IBM Mainframe Discussion List <[email protected]> On
>>>> Behalf Of Joseph Reichman
>>>> Sent: Sunday, July 07, 2019 5:35 PM
>>>> To: [email protected]
>>>> Subject: include library for @@CEETEST
>>>> 
>>>> Hi
>>>> 
>>>> 
>>>> 
>>>> Would anyone know the include library for @@CEETEST
>>>> 
>>>> 
>>>> 
>>>> I coded __ceeteest() and I guess the compiler mangled (for lack of a
>>>> better
>>>> term) I see CEETEST in CEE.SCEERUN alternativiliy
>>>> 
>>>> 
>>>> 
>>>> is there some pragma option to get ride of @@ I looked in Chapter 18.
>>>> z/OS XL C/C++ pragmas and didn't see any
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Thanks
>>>> 
>>>> 
>>>> 
> 
> ----------------------------------------------------------------------
> 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