How to retrict the number of records in the ADD mode

15 pts.
Tags:
EDTFIL
Synon
Synon 2E
How do you restrict the number of records to say 50 in the ADD mode of a SYNON generated EDTFIL?

Software/Hardware used:
SYNON 2E AS/400

Answer Wiki

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

Hi Vic!

You have to do that only from within a program(SYNON or normal RPG) by declaring a counter(var) & initializing it with ‘0’ & incrementing it by 1 every-time you add a record till it reaches 50.
As far as I believe it cannot be restricted exclusively at File-level.
Thanks
-Svanky

Discuss This Question: 1  Reply

 
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
  • Vic6804
    Thanks. I actually solved it. I setup a counter to count the records and then used a piece of User Source to SETON the EOF indicator. .-CASE                                        ¦-LCL.U.COUNT 1 is EQ 50                      ¦ US.SETON EOF IND - COMMON USER ROUTINES  *  '-ENDCASE                                   
    15 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