hi friends...
I am using load all subfile...in that first it will display all records.what my question is when i give any condition it has to display empty subfile ie.only subfile record format??
plz guide me as early as possible..
Software/Hardware used:
as400
ASKED:
April 2, 2012 7:03 AM
UPDATED:
April 9, 2012 6:47 AM
which kind of condition, you are used in subfile….
I would like to ask an additional question on this subject. It has been a loooong time since I’ve worked with subfiles. I have a problem where the subfile is loaded. If the user selects to remove all lines, the updates to the files are done and the subfile recreated with 0 records. When it re-displays, the records just removed are still displaying. SFLDSP is not on at this point.
Answer for K[rrazor
You need to use SFLINZ to initialize the subfile
You can use SFLNXTCHG to update the subfile which has only record based on the condition in the loading of the record.Also, you have to handle the empty subfile by checking the RRN=0,then only display the control record format.
I did the above steps but its not working…
Example::
—————————————–
FLD1 FLD2 FLD3
AAA AAAA AAAAA
AAA AAAA AAAAA
AAA AAAA AAAAA
rrn = 3
—————————————–
BB ______ _________
There is no records having the value as BB..
now rrn = 0
in this case i need to display subfile with rrn = 0