SFLINZ and SFLCLR

pts.
Tags:
RPG
What is the difference between SFLINZ and SFLCLR keyword?

Answer Wiki

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

There are major differences between SFLINZ and SFLCLR.
The SLFCLR keyword, when activated, will “remove” all records from the subfile. This is normally used just prior to loading existing data base records into a subfile or when loading the next page of records for a “page-at-a-time” subfile (SFLSIZ = SFLPAG).

The SFLINZ keyword is a “different animal”. When activated it will initialize the subfile with a number of “inactive” records. The number of records is determined by the value of SFLSIZ. An “inactive” record is really just a place holder usually for input capable fields in the subfile. The records don’t really exist until they keyed into which in effect activates the MDT for that sfl record causing it to be returned to your program on the next “READC” operation.

Hope this helps.

Discuss This Question:  

 
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

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