I have a vender package with a C module that I need to Recreate because they 
did not leave a copy of it around.  I need to do this because I have modified 
another Module that it is bound with it in a program. I would do a UPDPGM but 
they specified ALWUPD(*NO).

I have not modified the C program.    When I try to compile it I get 2  
"CZM0198 #if, #else, #elif, #ifdef, #ifndef block must be ended with #endif."

In one of the includes there is the following lines of code to define a file.

#pragma mapinc("messages","CKALTMSG(*ALL)","both key","d _P",,"")
#include "messages"

Then in the Source that is generated from this it defienes all of the fields in 
the file, and then it defines the Keys and on both of the Keys it leaves out 
the #endif

typedef _Packed struct {

#ifndef __cplusplus
    decimal( 5, 0) AMID;
  _Decimal( 5, 0) AMID;
   _DecimalT< 5, 0> AMID;

#ifndef __cplusplus
    decimal( 3, 0) AMSEQN;
   _DecimalT< 3, 0> AMSEQN;
} ALTMSGFM_key_t;

I know very little  C, so hopefully I have explaned this so you can understand.

Any help would be greatly appreciated.

Chris Beck

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].