Interesting! I'm still using it on V5R1 and the compiler (ILE C/400) is not
issuing any warning messages about it being deprecated. Do you know what
utility is used to to generate the file structures?


----- Original Message -----
From: "Simon Coulter" <>
To: <>
Sent: Sunday, January 20, 2002 11:34 PM
Subject: Re: Accessing externally described file in a C program

> Hello patrick
> You wrote:
> >1) you can have the C compiler put automatically create a structure for
> >the database file like this:
> >  #pragma mapinc("sesn", "alsrvr(*all)", "both key", "d")
> >  #include "sesn"
> Be warned that #pragma mapinc has been deprecated/removed in newer
> versions of the compiler (IIRC from 510 onwards).  IBM have provided a
> command/program to create a #include file based on the external file
> definition but that's just an ugly work-around.
> That's part of the downside to PASE.  AIX compilers can be ported easily
> so we get a 'more compatible' C compiler but we lose support for AS/400
> specific stuff.
> Regards,
> Simon Coulter.
> --------------------------------------------------------------------
>    FlyByNight Software         AS/400 Technical Specialists
>    Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
>    Fax:   +61 3 9419 0175   mailto:   \ /
>                                                              X
>                  ASCII Ribbon campaign against HTML E-Mail  / \
> --------------------------------------------------------------------
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
> To post a message email:
> To subscribe, unsubscribe, or change list options,
> visit:
> or email:
> Before posting, please take a moment to review the archives
> at

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 by 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.