Originally posted by: SystemAdmin
Hello-
I am very new to WTX and I have two issues that I cannot seem to resolve. Issue #1-
I am having an issue where my map will only read the first segment that appears in my file. I was under the impression that if I didnt need a specific segment to be read, I wouldn't need to create an index and all segments within a particular loop would be read. I have also tried to indext by adding the segment number after each one but it still doesnt work. I have also tried to create a functional map but it still only reads the first segment.
What Im trying to determine in my map rule is if any of the segments in group 2 have a locfunctcdqual's or 20 or 21, and if so, map X else Y. Here are two examples that I have tried:
=EITHER(IF(LocFunctCdQual'r Element:.:Group2:.:batch = "20" , "21", "X"), "Y")
=EITHER(IF(ALL(LocFunctCdQual'r Element:.:Group2:.:batch = "20" ), "21"), "X", "Y")
Can someone tell me what I am doing wrong or have any suggestions? Thanks
Issue #2
I need my map to be able to read a map that has a DOB of 6 or 8 characters. The issue that I am having is, in WTX the century is automatically being added if the DOB is 6 char which is great; however, when the file contains 8 char. including the century I am getting 2020-07-04. I have tried to figure out if the century is present, then trimleft, 20, I have also changed the map settings but nothing I am doing is working. how can I get the map to suppress the century if present in the dob field? Sorry for such simple questions but any help will be greatly appreciated.
Thanks in advance
#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender#DataExchange