|
If you're doing I/O to the physical, you can only do it to one member at a time.
You could however, create a logical that would give you access to all members at once using the
DTAMBRS(*ALL) parameter of the CRTLF command.
But, you say the program is reading the record, so the multi-members isn't the issue, but you don't
see the update to the file.
Are you running under commitment control and forgot to issue the commit?
RPG buffers I/O in some cases. Are you by chance doing sequential reads followed by an update and are
returning from the program with LF = *OFF?
To see if RPG's buffering is the issue, try using the FEOD(N) opcode after the update.
HTH,
Charles
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Berman
Sent: Wednesday, June 13, 2007 11:52 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: File with members update problem
I can't understand why something is happening. A physical
file has many members. When I read I am only reading one
member. We have a case where if a particular sequence number
is different than the one previous within the acct/inv. then
we want to put this record on hold.
I have seen that the program puts the "H" in the status
field, updates the format. But after program ends, the status
has not changed.
Is this connected to their being many members in the file?
TIA,
Mike
---------------------------------
Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.
--
This is the RPG programming on the AS400 / iSeries (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.
This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated.
--
This is the RPG programming on the AS400 / iSeries (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 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.