SUNAAMDX Examples


Example 1:

SUNAAMDX FILE1 -1-4,7,14-17

 

Creates an AAM key file from the source data file with both having the name FILE1 and extensions of .TXT and .AAM respectively. The key information is extracted from the input file based upon the positions given (bytes 1-4, byte 7 and bytes 14 to 17). The U option was not specified so upper and lower case characters are treated differently. Since the wildcard/don't care character was not changed, it remains as a question mark.

Example 2:

SUNAAMDX FILE2.TXT,FILE3.AAM -U,D=%,1-9,4-7

 

Creates an AAM key file FILE3.AAM from the source data file FILE2.TXT. The key information is extracted from the input file based upon the positions given (bytes 1 to 9 and bytes 4 to 7). The 'U' option was specified, so lower case characters are treated as upper case characters during searches. The don't care character has been changed to the percent symbol '%'.

Example 3:

SUNAAMDX FILE4 -P100='1986',1-10,25-50

 

Creates an AAM key file from the source data file with both having the name FILE4 and extensions of .TXT and .AAM respectively. The key information is extracted from the input file based upon the positions given (bytes 1-10 and bytes 25-50) in FILE4.TXT, only for those records that contain 1986 beginning at byte 100 of each record. Those records not matching this criteria are not affected, nor are AAM keys generated for them. The don't care character is unchanged and the keys are case sensitive.

Example 4:

SUNAAMDX -IC:\TEMP\SUNAAMDX.INI FILE5,,L1024 -VU,1,20-25

 

Creates an AAM key file from the source data file with both having the name FILE5 and extensions of .TXT and .AAM respectively. The maximum record length is 1024 bytes. The key information is extracted from the input file based upon the positions given (bytes 1 and bytes 20-25). If FILE5.TXT does not exist, it is created. Key case sensitivity is disabled ('U' option) but the don't care character remains unchanged. The records in the data file may be of variable length and all writes are performed at the end of the file. Utility keywords are first retrieved from the SUNAAMDX file in the C:\TEMP directory.

 

 

See Also: SUNAAMDX, Utilities

 



System Utilities