Simple Example of Using Indexes

In this example, you are receiving a repeating segment that contains notes (the NTE segment). You must map the contents of the Notes element (the NTE02 (0003) element) to a repeating Output record (Notes), but only if they have a qualifier of Y.

Following is a sample of the repeating segment being received in the input file:


NTE*Y*Must include this line in the output file~
NTE*N*Do not need this line in the output file~
NTE*N*Do not need this line in the output file~
NTE*Y*Must include this line in the output file~
NTE*Y*Must include this line in the output file~

In the map, you have created a temporary input repeating segment (TEMP_NTE) to receive the notes for only those segments that have a qualifier of Y in the NTE01 (0363) element. Then you add a simple link from the Notes element in the TEMP_NTE segment to the repeating Output record (Notes).

For more information, see: