Originally posted by: SystemAdmin
You're right. I should have tested it. This is what I used for zipping a specific file using a run map with 1 output card.
valid(run("ZipFiles","-OAZIP1 FILE,WORKFILES\" + WORD(REVERSEBYTE(word(REVERSEBYTE(getfilename(infile)),"\",1)),".",1) + ".zip," + getfilename(infile)),fail("zip file failed " + TEXT ( LASTERRORCODE ( ) ) + " " + LASTERRORMSG))
It would probably work with a wild card.
PUT version is
=VALID(
put("ZIP","FILE, test.zip,c:\temp\*.txt" ," "),
FAIL("error" + LASTERRORCODE() + ": " + LASTERRORMSG()))
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender