Writing an Add/Change/Delete/Inquiry maintenance program

This is the DDS for the Display Program named CUSTD01.


     A                                      REF(CUST)                  
     A                                      CA03(03 'F3=EXIT')         
     A          R SCR1                                                 
     A                                  1  2USER                       
     A                               O  1 28'ADD/UPDATE/DELETE/INQUIRE'
     A                                      DSPATR(HI)                 
     A                                  1 72DATE                       
     A                                      EDTCDE(Y)                  
     A                                  2  2'CUSTR01'                  
     A                                  2 72TIME                       
     A                               O  6  8'(A)dd, (U)pdate, (D)elete'
     A                               O  6 34'(I)nquire, (N)ext'        
     A            ACTION         1   B  6 53DSPATR(HI)                 
     A                               O  8 28'Cust#'                    
     A            CSNBR     R        B  8 35DSPATR(HI) EDTCDE(4)
     A            ERRLIN        78   O 22  2                           
     A  90                                  DSPATR(RI)                 
     A                               O 23 14'F3=EXIT'                  
     A*----------------------------------------------------------------
     A          R SCR2                                                 
     A                                      CA09(09 'F9=DELETE')       
     A                                  1  2USER                       
     A                                  1 28'CUSTOMER FILE MAINTENANCE'
     A                                  1 72DATE                       
     A                                      EDTCDE(Y)                  
     A                                  2  2'CUSTR01'                  
     A            MODE           7   O  2 37                           
     A                                  2 72TIME                       
     A                                  3 28'Cust#'                    
     A            CSNBR     R        O  3 37EDTCDE(4) DSPATR(RI)
     A                                  9 28'Name'
     A            CSNAME    R        B  9 42
     A N80                                  DSPATR(HI)                 
     A  80                                  DSPATR(PR)                 
     A                                 10 28'Address'
     A            CSADR1    R        B 10 42
     A N80                                  DSPATR(HI)                 
     A  80                                  DSPATR(PR)                 
     A                                 11 28'City'                     
     A            CSCTY     R        B 11 42
     A N80                                  DSPATR(HI)                 
     A  80                                  DSPATR(PR)                 
     A                                 12 28'State'                    
     A            CSSTE     R        B 12 42
     A N80                                  DSPATR(HI)                 
     A  80                                  DSPATR(PR)                 
     A                                 13 28'Zip'                      
     A            CSZIP     R        B 13 42
     A N80                                  DSPATR(HI)                 
     A  80                                  DSPATR(PR)                 
     A            ERRLIN        78   O 22  2                           
     A  90                                  DSPATR(RI)                 
     A                               O 23 14'F3=EXIT'

 

Back to Source Code Page   |   Basic 400 Skills   |   Main Page