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
------------------------------