×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Yes but that is how you do it, you are handling the buffers to the DB or display, (Eval-Corr comes in very handy) you read into the input buffer, Eval-Corr to the output buffer and write(update) the record. The input buffer contains all fields that can be read (*INPUT, *BOTH) and the output buffer contains all fields that can be written (*OUTPUT, *BOTH).

ReadC display.SFITEMLIST listSflIn;

DoW Not %Eof(display);
If optionNotValid(listSflIn.Option) ;
Eval-Corr listSflOut = listSflIn;
displayInd.OptionError = *ON;

Update display.SFITEMLIST listSflOut;

Else;
// Valid Option processing
EndIf;
EndDo;

Duane Christen

--


Duane Christen
Senior Software Engineer
(319) 790-7162
Duane.Christen@xxxxxxxxxx

Visit PAETEC.COM


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of darren@xxxxxxxxx
Sent: Wednesday, January 27, 2010 1:35 PM
To: RPG programming on the IBM i / System i
Subject: RE: READC and *INPUT datastructure

"What you want is LikeRec. The code snippets below demonstrate how to
use the 6.1 file template/local file/record DS capabilities, the last line is the ReadC operation you want to use."

That's the type of coding I'm attempting to do. I think you'll find, however, that your LIKEREC...*INPUT only brings in fields defined as input capable.
On another note, I was using external data structures rather than LIKEREC datastructures, because I thought that when you used a qualified file, that the record format were undefined. I'll have to experiment with that concept some more, maybe that would be a little better looking if it works.

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
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 thread ...

Replies:

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

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