OVERLAY ATTRIBUTES ON SCREEN

20 pts.
Tags:
AS/400
Hi :

    Can anyone help me with a program with an overlay of  two records of one screen so : 

 A                                      DSPSIZ(27 132 *DS3)   

A                                      INDARA                 [strong]A          R F0                                               [/strong]

A                                      ASSUME                

A                                      OVERLAY               

A                                      PUTOVR                

A                                  1  3' '                   

[strong]A          R F1                                               [/strong]

A                                  8 34'TRE CAMPOS: '        

A  52                                  DSPATR(RI)            

A                                  8 61'TRE CAMPOS: '        

A  52                                  DSPATR(RI)            

[strong]A          R F2                                               [/strong]

A                                      CF01(01 'help')       

A                                      CF03(03 'salir')      

A                                      CLRL(*NO)             

A                                      OVERLAY               

A            PASS           5Y 2O  8 54EDTCDE(2)             

A  52                                  COLOR(RED)            

A                                  1 13'NUMERO DE CLIENTE :' 

A            WCLI           5A  O  1 33DSPATR(RI)            

A            WNUM1          5Y 2O  8 47EDTCDE(2)             

A            WNUM2          5Y 2O  8 74EDTCDE(2)             

A            PASS2          5Y 2O  8 81EDTCDE(2)             

A  52                                  COLOR(RED)          

 

I'm trying to write in screen the second register named [strong]F2 [/strong]without this one doesn't clear the first record [strong]F1[/strong].  

 

A                                  8 34'TRE CAMPOS: '        

A  52                                  DSPATR(RI)            

A                                  8 61'TRE CAMPOS: '        

A  52                                  DSPATR(RI)            

The Fields are in the same line, but only the first keep with reverse mode (RI).

In the program i do the following :  FT1520DF CF  E                    WORKSTN              

C                     EXSR ADDREC                       C                     SETON                         LR C           ADDREC    BEGSR                                C                     SETON                     5253    C                     SETON                     5253    C                     [strong]WRITEF1                                                    [/strong] C                     MOVE 22222     PASS               C                     MOVE 12342     WNUM1              C                     MOVE 33333     PASS2              C                     MOVE 99999     WNUM2              C                     SETON                     52      C                     MOVE '1111'    WCLI               C                     [strong]EXFMTF2                          [/strong] C                     ENDSR                           

 Best regards and thank you very much.



Software/Hardware used:
rpg-dds

Answer Wiki

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

OVERLAY keyword needs to be specified on Record format ‘F1′.

Pradeep.

Discuss This Question: 3  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
  • pdsathishkumar
    After Seton function, you can specify display file record name... using exfmt opcode...
    3,790 pointsBadges:
    report
  • anderca
    Hiii : thanks for the answer .. i've proved writing OVERLAY keyword in record format F1 but the second 8 61'TRE CAMPOS: ' doesn't appear with attribute RI (reverse display) ... In the screen are the fields of record F1 but only the first figure with reverse display (RI) attribute. best regards ...
    20 pointsBadges:
    report
  • philpl1jb
    These records cannot be overlayed, it looks to me that they are both writing to row 8. Overlay can only occur where the range of rows of the record do not overlap. Phil
    50,585 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