Originally posted by: SBurra
Appreciate your replies to the question below:
(1) I have a Router Map which Routes 2 Files based on the given criteria (code).
(2)I have an input file which takes BAD FILE as input and my output card has the following RULE:
=IF(FileCode HeaderSegmentGroup:HeaderSegmentRecord:Input_Router="OFF", RUN("OfficeValidate.mmc", ECHOIN(1,PACKAGE(Input_Router))), RUN("ModifyDelimiter.mmc", ECHOIN(1, PACKAGE(Input_Router))))
-
This above file outputs a 0 when Good File is passed to the input file and a 8 if Bad file is passed
(3) Now, I want to capture the BAD DATA in a file (_a different file_) and hence I created a 2nd output card, which has the RULE as follows:
=IF(TextItem Element[1]:Output_Router != "0", PUT("FILE", PACKAGE(Input_Router),"Error_" + TEXT(CURRENTDATETIME()) + ".txt"), NONE) (4) When I build the Map now, it builds succesfully and there are 2 output files (as given in the respective Output card file name fields).
But my PUT function above, is not creating a file called *Error_DATATIME.txt*??? Why is it so? Am I doing anything wrong here?
Appreciate your replies with a good suggestion.. BTW - I'm using Design Studio 8.2 for building my Maps and Type Trees (not sure if you require this, but am giving it to you anyways)
Venkata C Burra
#DataExchange#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender