Originally posted by: SystemAdmin
Maybe I'm reading this wrong ASK, and forgive me if I am, but..
By your second post, you said:
=PUT
("file","complete file path of the o/p zip file.zip",
"complete file path of the i/p file to be zipped.txt")
and my o/p adapter card has the following command
target-archive(zip)
command--OAZIP1
First, if you set an output card to "Archive(zip)", you don't do a PUT. You supply the adapter commands in the actual Card, and the commands would look like:
FILE, "c:\temp\myzip.zip", inputfiletozip.txt
Now any data you pass to that card, like it there were one rule with a text field and you put ="zip this up", will get zipped using the output card command settings.
Now, if you're doing a PUT, you're output card should not be set to zip; it should be sink, or file. And in the PUT, you're giving it all the commands you would do in the output card and rather then zip up the data you pass the output card like above, you're telling it what data to put in the file that get's zipped up, using the Pacakage function).
=PUT("zip", "FILE",'c:\temp\myzip.zip',"inputfiletozip.txt", PACAKAGE(The data in inputfiletozip.txt"))
You can package the input card's data, another output cards data, etc.
Finally, if you're overriding the output card in a run map, then you use -OAZIP1. Let's say the output card hard coded in the map is a file. When you do the run map, you do:
=RUN("mymap.mmc", " -OAZIP1 'FILE,c:\temp\myzip.zip, inputfiletozip.txt' )
and override the output card putting in the zip adapter commands.
#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender#DataExchange