Example of using ACIF with UTF-16 data

Example of report with UTF-16 data shows an example of a report that you need to index. The data in the report is encoded in 16-bit little endian Unicode Transformation Format (UTF-16LE).

Example of report with UTF-16 data

1REPORT 540                   THE BAXTER BAY BANK        PRODUCED 08/14/90
LABOR COST CURRENT ANALYSIS                                       PAGE   1
ACTUAL COMPARED TO LAST YEAR ACTUAL
MONTH - 07/31/90                                       YEAR-TO-DATE
LAST YEAR      VARIANCE                                LAST YEAR       
ACTUAL       ACTUAL      DOLLARS     PCT.            ACCOUNT TITLES  
4,365,566    3,860,315   505,252     13.1    7010 REGULAR SALARIES   
   89,005       79,868     9,137     11.4    7020 SALARY EXPENSE     
  138,524      106,241    32,282     30.4    7031 PART TIME SALARIES 
  133,030       77,688    55,342     71.2    7032 TREFOIL TEMPS      
   99,033       38,306    60,727    158.5    7050 OVERTIME           
      667        1,133       467CR   41.2-   7050 OVERTIME SALARIES  
   51,123       51,356       233CR    0.5-   7078 SALARIES-FOREIGN OFFICE 
  101,158       20,775    80,383    386.9    9210 CONTRACT EMPLOYMENT
4,978,106    4,235,682   742,424     17.5    TOTAL LABOR               

Example of a parameter file for UTF-16 input data shows an example of a parameter file that you can use to index UTF-16 data. Although the data is little endian UTF-16, the index names and extracted values must be big endian UTF-16. Also, you must specify the EXTENSIONS=IDXCPGID parameter.

Example of a parameter file for UTF-16 input data

CC=YES
CCTYPE=Z
CPGID=1200
MCF2REF=CPCS
TRC=NO
FILEFORMAT=RECORD,400
TRIGGER1=*,1,X'31',(TYPE=GROUP)                         /* 1            */
TRIGGER2=0,3,X'5200450050004F0052005400',(TYPE=GROUP)   /* R E P O R T  */
FIELD1=0,16,6,(TRIGGER=1,BASE=0)
FIELD2=1,106,54,(TRIGGER=1,BASE=0)
FIELD3=3,44,16,(TRIGGER=1,BASE=0)
FIELD4=X'0031'
INDEX1=X'004E0075006D006200650072',FIELD1,(TYPE=GROUP,BREAK=YES)/*Number */
INDEX2=X'005400690074006C0065',FIELD2,(TYPE=GROUP,BREAK=YES)    /*Title  */
INDEX3=X'00720064006100740065',FIELD3,(TYPE=GROUP,BREAK=YES)    /*rdate  */
INDEX4=X'00530065006300740069006F006E',FIELD4,(TYPE=GROUP,BREAK=NO)/*sect*/
DCFPAGENAMES=NO
UNIQUEBNGS=YES
IMAGEOUT=ASIS
INDEXOBJ=GROUP
INDEXSTARTBY=1
INSERTIMM=NO
EXTENSIONS=IDXCPGID
RESTYPE=NONE
inputdd=apkivp.utf16.txt
outputdd=apkivp.utf16.out
indexdd=apkivp.utf16.ind