• Subject: Re: Sockets programming in RPG-ILE
  • From: Buck Calabro/commsoft<mcalabro@xxxxxxxxxxxx>
  • Date: Tue, 9 Feb 1999 17:58:27 -0500

On 02/09/99 04:08:54 PM Jon.Paris wrote:

> >> I could send it to you if you wish, but you don't actually need it.
>I've
>been doing all the work in RPG IV (not ILE).
>
>Hate to tell you this Buck, but if you're using sockets, you're using RPG
>IV in the ILE mode.  If you weren't, the compiler would not accept
>statements like:
>
> D socket          PR                  Extproc('socket') Like(rc)
>
>Try specifying the Default AG parameter as *YES (the default) and you'll
>see what I mean - I also note that the program is compiled to run in AG
>QILE another no-no if it is not an ILE program.

You are (of course!) right.  When I said "not ILE" I was thinking of 
binding to external modules.  The original question was about not having a 
C compiler to create the service program that the RPG example binds to. My 
intent was to show a fairly plain Jane (apologies to Jane!) code example 
that showed how to convert the C structures to RPG IV.  I should have been 
more precise. 

As long as you're on this thread :-) may I ask about error handling in the 
mixed environment (AG QILE vs AG *DFTACTGRP)  I am calling this QILE pgm 
from an OPM CL program.  I'm not going to get any nasty surprises, am I?  I 
remember jumping in to ILE in the first release, and it was pretty ugly to 
mix named and default AG pgms, but it may have been my inexperience 
(imagine THAT!)

Buck Calabro
CommSoft, Albany, NY
mailto:mcalabro@commsoft.net
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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-2024 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].

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