|
Sounds a bit time consuming. If you can read one character at a time, can you specify to pull in a block at a time. Kind of like, %subst(IFSFILE: 501: 500) David L. Mosley, Jr. Systems Analyst 2000 CentreGreen Way Suite 250 Cary, NC 27513 Jim Langston <jlangston@celsin To: "'rpg400-l@midrange.com'" <rpg400-l@midrange.com> c.com> cc: Sent by: Subject: RE: Search for SELECT / FROM parameters in a CGI source from rpg400-l-admin@mi RPG drange.com 04/02/02 04:04 PM Please respond to rpg400-l Easiest way, read a single character at a time into a buffer until you hit an End of line character. Then you have a line. Create this in a subroutine once and be done with it. Regards, Jim Langston -----Original Message----- From: dmosley@dancik.com [mailto:dmosley@dancik.com] Sent: Tuesday, April 02, 2002 12:32 PM To: rpg400-l@midrange.com Subject: RE: Search for SELECT / FROM parameters in a CGI source from RPG Jim, I wasn't aware that you can read IFS files one record at a time. What is the proper parm setting on the read() to do that, or is it another API? David L. Mosley, Jr. Systems Analyst 2000 CentreGreen Way Suite 250 Cary, NC 27513 Jim Langston <jlangston@celsin To: "'rpg400-l@midrange.com'" <rpg400-l@midrange.com> c.com> cc: Sent by: Subject: RE: Search for SELECT / FROM parameters in a CGI source from rpg400-l-admin@mi RPG drange.com 04/02/02 03:27 PM Please respond to rpg400-l %SCAN will work like the FIND or F for a single line. You'll need to read each line and %SCAN the line for the text til you either find the text or reach the end of the file. Regards, Jim Langston -----Original Message----- From: Peter_Vidal@pall.com [mailto:Peter_Vidal@pall.com] Sent: Tuesday, April 02, 2002 12:09 PM To: rpg400-l@midrange.com Subject: Re: Search for SELECT / FROM parameters in a CGI source from RPG I am doing ( open(), read(), close() ), but how I can retrieve that content? Interactively, I can use EDTF and on the CONTROL line I can use either "F" or "FIND" to find a string or constant. That is the kind of results I want to programmatically have in my program. How I do that? _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.