ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Stuff in the subfile control overlaps

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

  • Stuff in the subfile control overlaps

    Hi, if i put stuff in the subfile control below the subfile records themselves, i get an error when compiling that they overlap. I have to create a new record to put the stuff there and WRITE it just before showing the subfile.

    Is there a way to avoid this? It doesn't matter that much if i have to keep doing this, but just wanted to know if there is a better way.

  • #2
    Re: Stuff in the subfile control overlaps

    Hi fjleon:

    If i understand your question correctly you should start your sub-file on a higher line number.

    Be sure to check the sflsiz and sflpag as well as the load subfile routine.
    Code:
    A          R SUB1                      SFL                     
    A                                      KEEP                    
    A            OPTNSW         1A  B  [COLOR="Red"]6[/COLOR]  2                        
    A                                      DSPATR(HI)              
    A            SACCT          5A  O  [COLOR="red"]6 [/COLOR] 5                        
    A            SCOMPN        25A  O  [COLOR="red"]6[/COLOR] 11                        
    A          R SUBCTL                    SFLCTL(SUB1)            
    A                                      SFLSIZ([COLOR="red"]0015[/COLOR])            
    A                                      SFLPAG([COLOR="red"]0015[/COLOR])
    Best of Luck
    GLS
    The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

    Comment


    • #3
      Re: Stuff in the subfile control overlaps

      post your dds we can mess with it and repost 4 u.

      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


      • #4
        Re: Stuff in the subfile control overlaps

        Hello

        fjleon, the way that you are doing it is the only way. The Subfile Control goes on the top of the screen and the Subfile records go below.

        In the case of a window subfile, the only way to do it is to put whatever you want beneath the subfile on the control of the message subfile.

        Comment


        • #5
          Re: Stuff in the subfile control overlaps

          I just wanted to add that you can place the control record on the top or the
          bottom of the subfile.....

          also in a window subfile you can place the function keys in the window format
          record.


          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

          Working...
          X