IBM Support

Select code list standard rule on a field in the ISA is not finding a match when the values does exist in the table. (SCI51164)

Question & Answer


Question

Select code list standard rule on a field in the ISA is not finding a match when the values does exist in the table. (SCI51164) *|* -58699DC9ABD4A74E85257918003191FD- *|*

Answer

Technote (troubleshooting)


Problem(Abstract)

Select code list standard rule on a field in the ISA is not finding a match when the values does exist in the table. (SCI51164)

Symptom

Select code list standard rule on?a field in the?ISA?is not finding a match when the values does exist in the table.


Cause

Before the code list look up is performed the translator does not remove the trailing spaces from the field value.

Resolving the problem

There are two options available to allow the translator to properly retrieve the code list data.



Option 1:
In the Code List the?value will have to account for the entire length of data in the ISA element being used.?e.g. If the data in the code list is for the?ISA 06 then the code value would have to be 15 characters long including trailing spaces.



If the ISA06 value is "PETTEST??????? " then value?entered in the?code list?should be "PETTEST??????? ".



Option 2:
An extended rule can be added to the map to remove the trailing spaces from the value and?store the value into a temporary field at the bottom of the ISA segment in the map.? The standard rule can be placed on the temporary field allowing the lookup to be done without the spaces.



Example Rule
Integer sp;
sp = 0;



sp = strstr(#ISA06" "); //Search for the first space in the ISA06 value
if sp != -1 then
?? #Tmp_ISA06 = left(#ISA06sp);
else
?? #Tmp_ISA06 = #ISA06;



Cross reference information
SegmentProductComponentPlatformVersionEdition
CommerceSterling Gentran:Server for UNIXMapping and Translation
CommerceSterling Gentran:Server for Microsoft WindowsMapping and Translation

Historical Number

PRI13056

Product Alias/Synonym

Fact


Gentran Integration Suite All Releases
Gentran:Server for UNIX Release
6.0
Gentran:Server for UNIX Release 6.0.01
Gentran:Server for
UNIX Release 6.0.02
GENTRAN:Server for Windows NT All Releases

Gentran:Server Windows All Releases
SCI51164
Code list value
matches the data in the file
The ISA has fixed length fields and when the
fields (e.g. ISA06 ISA08) do not have enough characters to meet the field
length requirements they are padded with trailing spaces.

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
12 October 2021

UID

ibm10766585