|
Tony, I've just picked up this thread so I don't know what has been discussed prior to this e-mail. You can read into a DS for externally described files, at least in RPGIV. Here is an example. Note that the read is done using the record format not the file name. fCFP001 if e k Disk d dsCFP001 ds LikeRec(CFP0011 :*Input) SetLL dsCFKey CFP001; Read CFP0011 dsCFP001; HTH, Rick -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Tony Carolla Sent: Wednesday, September 29, 2004 5:24 PM To: rpg400-l@xxxxxxxxxxxx Subject: Re: Reading/Chaining into a DS, and RNF0202 Well, I think I have found the answer... Apparently, you can only read into a DS for a program-described file (per page 340, RPG/400 reference). I had thought that you could read from an externally described file into a data structure. So much for that. On Wed, 29 Sep 2004 14:45:39 -0700, Tony Carolla <carolla@xxxxxxxxx> wrote: > I have a file defined, as follows:... -- "Enter any 11-digit prime number to continue..." -- 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-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.