|
Without an file override or an alias in SQL, data will be added to the "first" member in the file. It appears the member list is unordered, so if you add members Z and A in that order, your naked data will land in member Z because it's the first in the internal member list.
You can open a file information data structure to pull the member name; it's in the RPG Reference Manual. I'm getting the member from positions 129-138.
Remember there's a system limitation of 32,767 members in a file.
DO NOT use member logic in your transactions files--you will regret it.
If you're trying to streamline your backup, I'd consider using journal data to build a file of changed records (with the journal control information attached); use the RECEIVE JOURNAL ENTRY command, or the API, or an SQL view.
Writing programs to load and maintain the file is a day's work.
Plan B: consider multiple data libraries. However, in thinking about this, I recognize it's a terrible idea...but it might work for your circumstance. The journal receiver idea--if you have or can create unique keys in the files you're working with--gets better as I think about it.
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.