Youssef, I've successfully built a single map that zipped (as well as unzip). What are you doing that it requires 2 maps to complete?
I have a blob tree on input and output with a single rule (I also have some error and logging cards but not necessary to the operation). Here I am using the GZIP option but you can substitute with which ever version you need. I am using the PUT function for more control over file name (named for input file) but using the DIRECTORY override for the output card when running the map all wrapped in a valid to be able to nicely report the error.
=VALID(PUT("GZIP", "-FILE " + GETDIRECTORY(DataOut) + SUBSTITUTE(GETFILENAME(DataIn),GETDIRECTORY(DataIn),"") + " -ACTION COMPRESSTOGZIP", PACKAGE(DataIn)), "Failed GZIP")
Hope this helps!
------------------------------
Lisa Edwards
Software Engineer / Subject Matter Expert
Rainbow Data Systems, Inc
------------------------------
Original Message:
Sent: Tue June 27, 2023 10:42 AM
From: Youssef Sbai Idrissi
Subject: Unzipping Archive files...
When using IBM Sterling Transformation Extender (STE) to unzip archived data, the process differs from zipping. Unzipping typically requires a single map instead of two maps used for zipping. You can handle variable names by using wildcards in the map's configuration. If needed, you can also have a map trigger a batch file for more flexibility. The documentation may be vague, but contacting support for this could be a good idea to make them clarify it better in the doc.
Hope this helps !
------------------------------
Youssef Sbai Idrissi
Software Engineer
Original Message:
Sent: Mon March 01, 2004 12:38 PM
From: Archive User
Subject: Unzipping Archive files...
Originally posted by: SystemAdmin
An associate is trying to write a map that unzips archived data. I gave him a sample Archive map I wrote as a reference. But apparently unzipping is different enough from zipping that he hasn't found it useful.
I looked at the documentation and its pretty vague on this point. The zipping process required two maps. Does it require two maps to unzip as well? Also, it looks like you need to know the name of the archived dataset. If datasets have variable names can you use wild cards in the rule?
For now I suggested having a map kick off a batch file to get things moving but any input would be helpful.
jvanboga
#DataExchange
#IBM-Websphere-Transformation-Extender
#IBMSterlingTransformationExtender