Originally posted by: SystemAdmin
Hello! Thanks to both of you for your replies last week.
Have been taking the SEARCHUP functional map approach here. The new output card was added which has one text field which contains all the data retrieved from the SEARCHUP which is Last Name, First Name and the Marital Status fields, =TEXT(SEARCHUP(Row_Fields_To_Retrieve:Row:BO_Hewitt_SPPARTT_Table_In, SOCIAL_SECURITY_NU Column:Row:BO_Hewitt_SPPARTT_Table_In, HEW_DET_BEN_RECI_SSN Field:HEW_DETAIL_RECORD Record:BO_Hewitt_Original_Rec_Input)), the preceding is the rule for the text field.
This text item, called SPPARTT_TABLE_SRCH_OUTPUT, is sent with the functional map rule on the second output card, =F_Map_to_BO_Hewitt_Conv_New_Out(HEW_DETAIL_RECORD Record:BO_Hewitt_Original_Rec_Input, SPPARTT_TABLE_SRCH_OUTPUT) which is fine.
The functional map builds 10 output fields of which 3 are the Last, First and Marital Status fields, these 3 are built as follows
Last - =LEFT(Input_From_Tbl_Srch_Output, 25)
First - =MID(Input_From_Tbl_Srch_Output, 31, 15)
Marital Status - =RIGHT(Input_From_Tbl_Srch_Output, 1)
Had some First Names as blanks so used the string functions to parse the data instead of the WORD function.
This all works great and the output records look fine, correct length and everything, however, the Last, First and Marital Status information is the same for all the output records produced. The information in these fields is from the first matched SSN from the input file to the table, it is apparently not going to the next input record after the first match is found and the output record is built in the functional map.
Must have the functional map call, which is on output card 2 in the primary map, in an incorrect place or it is not set up correctly so that the next matched SSN and its table output is fed to the functional map.
Can you think of what might be causing this, maybe an incorrect range on the table search output item in the tree, guess it is 1:1 since the map just pulled this type from the tree but maybe it needs to be in a Group with a 1:s range component.
Will test a few things but not really sure why this is happening.
Would appreciate any more help that you can offer here.
Thanks!
#DataExchange#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender