ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

CPD7812 error

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

  • CPD7812 error

    Hi all,

    I have a problem with "subfile control overlaps subfile record".


    I give Unit num in the first dsply file, if its valid ,then i display all the details like Kilometer in another screen using subfile(load all).

    But again i want to add the total kilometer displayed in that subfile screen for that particular Unit number.

    I tried to add the TotalKM field in the control rec format, but iam getting the error CPD7812.

    Where do i want to add this TotalKM field?

    can anyone suggest?

    My dsply file look like below....
    *******************************************
    Activity Date Unit Number Keyed Miles
    66/66/6666 9999999 9999
    66/66/6666 9999999 9999
    66/66/6666 9999999 9999
    66/66/6666 9999999 9999
    66/66/6666 9999999 9999

    TotalKM(I want to get the total field below Keyed miles )

    ************************************************** **


    Thks,
    Susan.

  • #2
    Re: CPD7812 error

    Just a note aside: you could use the XFOOT BIF (=build in function ) for calculating TotalKM !

    Your error : Part of your control record is in the same area of the display as your subfile.

    If you want TotalKM at the bottom, edit ( 2) in your DDS sflpag - 1.
    Code:
    A                                      SFLPAG(xxx) <---  lower number by 1 
    
    ( or 2 until ) you don't get the error !
    Why? If you use *MORE or a scroll bar, sometimes your subfile takes up an extra line.

    More is always extra !

    Comment

    Working...
    X