|
The basic rule is that any 2nd ovrdbf for the same file (your FileA) replaces the override from the 1st override. The complex part is dealing with activation groups, or multiple calls to the same program where files were not closed, and setting overrides at different call levels. In your examples 2 & 3, FileD is not overridden, so would look for the "F" spec file name. In example 1, OVRDBF File(FileA) ToFile(FileC) - FileC opens There is a lot of history & examples in the Archives of rpg400-l for ovrdbf. hth jim ----- Original Message ----- From: "MURALI DHAR" <nmuralidhar@rediffmail.com> To: <rpg400-l@midrange.com> Sent: Sunday, November 03, 2002 9:24 AM Subject: ovrdbf > >hey all, > please clear the following query > > 1)Pgm > OVRDBF File(FileA) ToFile(FileB) > OVRDBF File(FileA) ToFile(FileC) > endpgm > in this which file will be > opened?-------------------------------------------------------- > > 2)Pgm > OVRDBF File(FileA) ToFile(FileB) > OVRDBF File(FileA) ToFile(FileC) > open FileD > endpgm > in this which files will be > opened?------------------------------------------- > 3)Pgm > OVRDBF File(FileA) ToFile(FileB) > OVRDBF File(FileC) ToFile(FileA) > open FileD > endpgm > in this condiiton which file will be opened? > > ------------------------------------------------------- > 4)how many datastructures can be declared in RPG/400 program?is > there any limit? > > -------------------------------------------------------- > > Please kindly answer me ASAP....excuse me if its cl stuff but > request u to answer me > Regards&Thanks, > Murali > > > __________________________________________________________ > Give your Company an email address like > ravi @ ravi-exports.com. Sign up for Rediffmail Pro today! > Know more. http://www.rediffmailpro.com/signup/ > > _______________________________________________ > 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.