|
Hi Scott Klement, I have used it using 'C' function like open(), write(), read() but I do not think it supports all kind of 'C' function. For example is it possible to use getchar(), getc() function. Even though you may not need to really use these kind of function, but I was just curious to try one. Compiler does not recognise the function. What I mean is that whether all 'C' functions are executable in RPGLE or not. Thanks V.Sreenivasan x6904 "Scott Klement" <infosys@klements.com> on 08/17/99 05:59:12 PM Please respond to RPG400-L@midrange.com To: RPG400-L@midrange.com cc: (bcc: Venkat Sreenivasan/IT/MIA/RCL) Subject: Re: Using IFS files Hi Rob, Rob Berendt <rob@dekko.com> wrote: > > Does anyone have a service program that will open, read and close an > IFS > file? I've used other API's but those Unix API's are documented > totally > differently. > I don't use a service program for this, usually, instead I just use a /COPY member that includes the various prototypes that I'd need for accessing IFS functions. Then, I just use the IFS functions in my program directly. I'll agree with you that the Unix-type API's manual is completely useless if you don't know C. However, since I know C as well as RPG, I find it quite useful :) Are you interested in a non-service program example? Scott Klement Information Systems Manager Klement's Sausage Co, Inc. +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.