Difference between revisions of "ARS1196E"

Jump to navigation Jump to search
697 bytes added ,  00:22, 10 March 2020
Added section about searching the Generic Index File with a text editor to find the source of the issue.
(Anonymized a number.)
(Added section about searching the Generic Index File with a text editor to find the source of the issue.)
Line 28: Line 28:
Specifically, check for blank rows, repeated rows, out-of-sequence lines, or extra spaces or tab characters at the end of a row.  Each record should have GROUP_FIELD_NAME records (with the name of an Application Group field), followed on the next line by a GROUP_FIELD_VALUE record with valid data for that field.  At the start of a Generic Index File, before any other parameters, the CODEPAGE parameter must be specified so that CMOD knows what type of data it will find in the Generic Index file.  Then, the GROUP_FIELD_NAME and GROUP_FIELD_VALUE parameters are repeated for each piece of document, followed by three parameters, in this order:  GROUP_OFFSET, GROUP_LENGTH, and GROUP_FILENAME.
Specifically, check for blank rows, repeated rows, out-of-sequence lines, or extra spaces or tab characters at the end of a row.  Each record should have GROUP_FIELD_NAME records (with the name of an Application Group field), followed on the next line by a GROUP_FIELD_VALUE record with valid data for that field.  At the start of a Generic Index File, before any other parameters, the CODEPAGE parameter must be specified so that CMOD knows what type of data it will find in the Generic Index file.  Then, the GROUP_FIELD_NAME and GROUP_FIELD_VALUE parameters are repeated for each piece of document, followed by three parameters, in this order:  GROUP_OFFSET, GROUP_LENGTH, and GROUP_FILENAME.


There are three errors in this sample generic index file:
It's probably most convenient to open the Generic Index file in your favourite text editor, and use the 'Search' or 'Find' function to find the string from the error message.  Remember that the string reported by the ARS1196E error may appear multiple times in the Generic Index file.  If the string provided by the CMOD error message is too vague, look for the ARS1133I message to get an indication of where the error occurs inside the file, and the error may appear in the rows above or below the data you're searching for.  Using your text editor's 'Next' button in the 'Search' or 'Find' function may allow you to skip to the correct record number.
 
== Exercise ==
 
There are three errors in this sample generic index file.  See if you can find them.


   GROUP_FIELD_NAME:CUST_NUM
   GROUP_FIELD_NAME:CUST_NUM

Navigation menu