AS400 Display File: Clear Previous Exfmt's Data

Below code ERASE with the Negative indicators on the Subfile Display will clear the Previous Exfmt's Data.

Scenario: I have a subfile with Option to delete the record and redisplay the result. If all the records are removed then there wont be anything to display and since nothing is in the subfile we cannot turnon the display file indicator. Resulting the data from the previous display will still be seen. That is the subfile memory from the previous exfmt. It can be cleared using ERASE in the subfile control.

A    50                                  SFLDSP                
A N50                                  ERASE(SFLM)            SFLM is the subfile record format

Comments

Popular posts from this blog

AS400 : Add a new line in text in email SNDSMTPEMM

AS400 Display: Radio Button (SNGCHCFLD)

AS400 Display File: Check Box (MLTCHCFLD)