275 pts.
 Subfile
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

Answer Wiki:
If the given condition is having zero records and if you have to display Empty subfile, You should need to switch off <b>SFLDSP</b> indicator. if you wish to have, you can overlay a another record format which will display a message "No Records to display". Pradeep.
Last Wiki Answer Submitted:  April 2, 2012  11:36 am  by  deepu9321   3,370 pts.
All Answer Wiki Contributors:  deepu9321   3,370 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

which kind of condition, you are used in subfile….

 3,740 pts.

 

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.

 45 pts.

 

Answer for K[rrazor
You need to use SFLINZ to initialize the subfile

 32,835 pts.

 

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.

 130 pts.

 

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

 275 pts.