Home The Company Publications Products Links Tips

Tips, Tricks, and Techniques

Last update: 30 April 2004

Update Many Descriptors

Poor Response Time

Problem:

For Y2K test in 1999 it was necessary to age all date fields (add two years). Some files have many records and additionally many Superdescriptors based on PE fields. For example, one file (CAA) contained six Periodic Group date fields (1:20). Most of these occurencies are occupied with valid values.
I T L Name                             F Leng Index/Init/EM/Name/Comment      
- - - -------------------------------- - ---- ------------------------------  
  V 1 CAA-VIEW                                Customer A.
    2 C*CUST-ACCT-ADJ-HIST            	 	    	                                  
  P 2 CUST-ACCT-ADJ-HIST              	 	    	                            
    3 CAA-ACCT-ADJ-DTE                 N  8.0 (1:20)  
    3 CAA-ADJ-ORIG-PAYMT-DTE           N  8.0 (1:20)  
  G 3 CUST-ACCT-PAYMT-DATA            	 	    	                            
    4 CAP-RPC-PROC-DTE                 N  8.0 (1:20)
  G 3 CUST-ACCT-RFND-DATA             	 	    	                            
    4 CAR-REQ-DTE                      N  8.0 (1:20) 
    3 CAS-ADJ-PRD-BEG-DTE              N  8.0 (1:20)  
    3 CAS-ADJ-PRD-END-DTE              N  8.0 (1:20)

Ty  L  Name                             F  Length   D U DB S	      
--  -  -------------------------------- -- -------- - - -- -	      
SP  1  ACTV-RECRD-DTE/TYP-CDE           B   9.0     D   ZC N
SP  1  ACTV-TERR/EFFT-DTE/SEQ           A  14.0     D   ZD N
SP  1  ACTV-TERR/EFFT-DTE/TYP/STAT      A  14.0     D   ZE N
SP  1  ACTV-SUBS-ORD-ISN/EFFT-DTE       B  11.0     D   ZF N
SP  1  ACTV-TYP/ANA-FLG/ANA-DTE         A  10.0     D   ZG N
SP  1  ACTV-EFFT-DTE/RPT-SEQ/TERR       A  17.0     D   ZH N
SP  1  ACTV-CBLE-FLAG/EFFT-DTE          A   9.0     D   ZI N

	                                                      
All DTE fields are located in 6 superdescriptors. Six Superdescriptors multiplied by 20 fields giving 120 superdescriptor values per record. 3.4 millions of records (ISN) are stored in this file.

It took 10 minutes to update 2,000 records, even PREFETCH was activated and the ET counter was set to 99.

The calculated run time, approximately 12 days, for aging (updating) the entire file was unacceptable.

Solution:

  1. Released the relevant 6 superdescriptors with AOS functions online
    Time: 2 minutes
  2. Started the job again
  3. Inverted the relevant superdescriptors with batch utility functions of ADABAS.


Back to NATURAL Tips, Tricks, Techniques -- Overview