Originally posted by: IBM WTX
Hi Ken,
Can you elborate the problem little more, not clear when you say junk data, are you refering to bad data. More over why not to use your own naming convention rather than based on th junk data. May be some special characters causing problem when gving name. I am using my naming convntion with a time stamp value as soon as the files arrives in a launher. The below is the code it might help you
=PUT("FILE",
"S:\SADAD_LINK\BKUP\"+ FileName Field:FileInfo Record FileInfo:FileInfo File:FileInfo
+"."
DATETOTEXT(CURRENTDATETIME("{CCYYMMDD}{HH12MMSS3-3AM/PM}" ) )".BAK",
PACKAGE( InFile ) )
where Filename is comming from a configuration file you can modify and give your static name, than adding a time stamp and the content of the incomming file. For your ease if you are not using any configuration file the code will look like this
=PUT("FILE",
"S:\SADAD_LINK\BKUP\"BadRecords"."
DATETOTEXT(CURRENTDATETIME("{CCYYMMDD}{HH12MMSS3-3AM/PM}" ) )".BAK",
PACKAGE( InFile ) )
I hope it may help you
Regards
Umer Farooq
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender