Display only subfile record format

285 pts.
Tags:
AS/400
AS/400 Subfiles
I am using load all subfile...in that first it will display all records. 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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • pdsathishkumar
    which kind of condition, you are used in subfile....
    3,790 pointsBadges:
    report
  • Kprazor
    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 pointsBadges:
    report
  • CharlieBrowne
    Answer for K[rrazor You need to use SFLINZ to initialize the subfile
    41,380 pointsBadges:
    report
  • hamsinee
    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 pointsBadges:
    report
  • shyedajmal
    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
    285 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following