In my DDS, I have used RRN1 along with SFLRCDNBR keyword. It is a load all subfile, so after loading all the 7 records, while displaying since the RRN1 = 7, my screen is showing the last page which has 7. Do I need to set the RRN1 back to 1 before the ExFmt? Then after displaying the subfile, I have changed Name field in the 3rd record. I need to update this changed value to the file when user presses F6 after the edit. But how to catch the RRN of the changed record so that I can perform a chain on the PF with that RRN? I have used ReadC here, But after readc when I checked RRN1, it still shows 7?
Announcement
Collapse
No announcement yet.
Issues with Subfile
Collapse
X
-
Re: Issues with Subfile
post some code and repost exactly what you are trying to do and we will help.
JamieAll my answers were extracted from the "Big Dummy's Guide to the As400"
and I take no responsibility for any of them.
www.code400.com
Comment
-
Re: Issues with Subfile
You are executing your update subroutine with checking the relevant indicator first.
You should be doing something like this:
Code:readc MySfl; dow not %eof; if *in09; exsr UpdSflRec; endif; readc MySfl; enddo;
Regards
Kit
http://www.ecofitonline.com
DeskfIT - ChangefIT - XrefIT
___________________________________
There are only 3 kinds of people -
Those that can count and those that can't.
Comment
Comment