Subfile control record overlaps subfile record

5 pts.
Tags:
Subfile
Windows subfile
Below is my code and i am not able to understand why this is giving me the overlap error . Please suggest !
A                                      DSPSIZ(24 80 *DS3) 
A          R SFLREC                    SFL 
A  30                                  SFLNXTCHG   
A            FLD002         1   B  6  4            
A            FLD003         4   O  6  9            
A            FLD005        10   O  6 20            
A          R SFLCTRL                   SFLCTL(SFLREC)  ----- error CPD7812
A                                      CF03(03 'EXIT')      
A                                      CF12(12 'CANCEL')    
A                                      KEEP                 
A                                      OVERLAY              
A                                      SFLDSP               
A                                      SFLDSPCTL    
A  50                                  SFLCLR                              
A N49                                  SFLEND(*MORE)                       
A                                      SFLSIZ(0030)                        
A                                      SFLPAG(0007)                        
A                                      WINDOW(4 16 17 43 *NOMSGLIN)        
A                                      WDWBORDER((*COLOR BLU) (*DSPATR RI)-
A                                       (*CHAR '        '))                
A            SFLPOS         4S 0H      SFLRCDNBR(CURSOR)                   
A                                  1 11'Secure Document Types'             
A                                      COLOR(WHT)                          
A                                  2  3'User:'                             
A                                      COLOR(WHT)                          
A            FLD001        10   O  2  9COLOR(BLU)                          
A                                  2 23'Env:'                              
A                                      COLOR(WHT)                          
A            FLD002        10   O  2 28COLOR(BLU)                          
A                                  4  3'Opt'                               
A                                      COLOR(WHT)              
A                                  4  8'Facility'                  
A                                      COLOR(WHT)                  
A                                  4 19' types'          
A                                      COLOR(WHT)                  
A                                 16  5'F3=Exit'                   
A                                      COLOR(WHT)                  
A                                 16 15'F6=Add '    
A                                      COLOR(WHT)    
 Error i am getting is  CPD7812      30        1      Message . . . . :   Subfile control record overlaps subfile record.  .. Please suggest where i am going wrong .. I am creating windows subfile . i spent a lot of time on this but still not able to find the solution . Please help !               


Software/Hardware used:
as400

Answer Wiki

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

Discuss This Question: 2  Replies

 
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
  • TomLiotta

    Your subfile control record overlaps the entire subfile. There is no subfile field that is not overlapped by the control record.

    The reason is that you have 'F3=Exit' and 'F6=Add' defined as part of the control record. That causes the control record area to cover every line all the way down to row 16. Remove those two constants from the control record and compile again. That should show that those are the problem.

    If you want those constants in the window, create a third record format to hold them. That would be a 'footer' format that defines a separate area below the subfile.

    Tom

    125,585 pointsBadges:
    report
  • philpl1jb

    Before your program write/reads the control file (exfmt ) add a Write Footer to display the function key info that you've moved per Tom's instructions.

    49,570 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