ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to Limit Subfile page in Synon DSPFIL function.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Limit Subfile page in Synon DSPFIL function.

    Hey guys,

    Recently I have started working on Synon. I have a requirement where I need a subfile which should only display 20 records. PLease suggest me how can I achieve that?

    Thanks!!

  • #2
    Re: How to Limit Subfile page in Synon DSPFIL function.

    Make subfile size and subfile page ===> 20

    Then read the file 20 times....

    Derek, can I ask where you work?

    Jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: How to Limit Subfile page in Synon DSPFIL function.

      Originally posted by jamief View Post
      Derek, can I ask where you work?
      The 1980's?
      Ben

      Comment


      • #4
        Re: How to Limit Subfile page in Synon DSPFIL function.

        Originally posted by jamief View Post
        Make subfile size and subfile page ===> 20

        Then read the file 20 times....

        Derek, can I ask where you work?

        Jamie
        Ben, I indeed work in 1980's thanks for reminding!!


        Jamie,

        Thanks for the reply but this is not the way it happens in Synon. We have to limit the records by using a condition on field *SCAN limit in PGM context..Something like:

        USER: Initialize program
        -
        PGM.*Scan limit = CND.Twenty Records <=========== This limits the records to be read to 20.
        PGM.*Defer confirm = CND.Defer confirm
        Last edited by derek; December 29, 2010, 05:08 AM. Reason: ..

        Comment


        • #5
          Re: How to Limit Subfile page in Synon DSPFIL function.

          Derek,

          Can you post some of the code? I know it will look like my attempts at calligraphy, but I'd be interested.

          Thanks for sharing.
          Jamie
          All my answers were extracted from the "Big Dummy's Guide to the As400"
          and I take no responsibility for any of them.

          www.code400.com

          Comment


          • #6
            Re: How to Limit Subfile page in Synon DSPFIL function.

            Derek,

            What are you having problems with? Is is the screen design or the notion of "scan limit exceeded"? Usually, there is something in *Standard Screen Header/Footer" which you should reference for standards sake. You're probably referring to a challenge with the page not loading without the above "exceeded" message. Adding the 20 detail records in synon is a fairly simple concept. Getting those to load in an acceptable timeframe is sometimes a challenge. Synon is not a bad tool other than the fact it's generated code is quite ugly...

            Comment

            Working...
            X