Go4AS400-Image

The Web Ask Go4AS400
Share  
Homepage
See Sitemap
as400_FAQ
See Videos here
Contact me



Ü  DFTVAL

 

·         This keyword is similar to DFT keyword. It is also used to show the default value for input or input/output capable fields.

·         The keyword is valid at field level.

·         The syntax for displaying a  field on the screen is:

DFTVAL(‘Field-value’)

·         This keyword is not valid for constant field.

·         This keyword is not valid for input field.

·         For output capable we simply need to specify the keyword DFTVAL.

·         For input/output capable fields, we must specify the keyword PUTOVR at the record level and OVRDTA at the field level with the DFT keyword.

·         The DFT keyword is not valid on decimal fields.

 

 

 

Example

 

 

 

>>>>> OUTPUT CAPABLE FIELD

 

 

 

A            S_ACC         12A  O  5 35DFTVAL('A00000000001')    

 

 

 

 

                             ACCOUNT ENTRY DISPLAY                             

                                                                               

                                                                               

                        ORG                                                    

                        ACC       A00000000001                                 

                        CCY                                                    

                        PARTY                                                  

                                                                               

                                                                               

                                                                                

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                                

    F3 = EXIT      F12 = CANCEL                                                

                                                                               

                                                                                

 

 

 

>>>> Using DFTVAL for Input/output field

 

 

A          R HEADER                    PUTOVR                  >>>>>>>>>>>>>>>          

A                                  1 30'ACCOUNT ENTRY DISPLAY'        

A                                      DSPATR(HI)                     

A                                      COLOR(BLU)                     

A                                  4 25'ORG'                          

A                                      DSPATR(HI)                     

A                                      COLOR(BLU)                     

A            S_ORG          3S 0B  4 35                               

A                                      FLDCSRPRG(S_ACC)               

A  50                                  DSPATR(RI)                     

A                                  5 25'ACC'                          

A                                      DSPATR(HI)                     

A                                      COLOR(BLU)                >>>>>>>>>>>>>>>>>>     

A            S_ACC         12A  B  5 35DFTVAL('A00000000001')    >>>>>>>>>>>>>>>>>>

A                                      OVRDTA                          

 

 

 

 

 

 

                             ACCOUNT ENTRY DISPLAY                             

                                                                               

                                                                               

                        ORG       ___                                             

                        ACC       A00000000001                                 

                        CCY       ___                                             

                        PARTY     ____________                                 

                                                                               

                                                                                

                                                                               

                                                                               

                                                                                

                                                                               

                                                                               

                                                                               

    F3 = EXIT      F12 = CANCEL     

                                          

 

 


Comments:


Copyright © Go4as400.com, 2014. Copyright notice