|
Sorry to ask the obvious but is RRN defined in the procedure or globally? If it's a local variable I don't think it will get passed to the screen. Rick > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx > [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Fisher, Don > Sent: Tuesday, November 18, 2003 1:11 PM > To: 'rpg400-l@xxxxxxxxxxxx' > Subject: Building a subfile using a procedure > > > I am using a procedure to add records to a subfile, which is > essentially one > of my standard subfile load routines turned into a procedure. > The subfile > is cleared using SFLCLR in the calling procedure. The called > procedure sets > RRN to 0 and begins adding records. On the first WRITE, I receive an > "incorrect relative record number or field selection" error. > This is a > subfile record that is not bound by any WINDOW keywords and > RRN is 1 when > the WRITE is attempted. SFLINZ is not used so there are definitely no > records in the subfile when the WRITE is attempted. The > SFLCLR indicator is > also turned off. > > Any ideas will be most appreciated. > > Thanks. > > Donald R. Fisher, III > Project Manager > Roomstore Furniture Company > (804) 784-7600 extension 2124 > DFisher@xxxxxxxxxxxxx
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.