In my use of the GZIP adapter I just use text for the FAIL part of the VALID() function. You are using an entire FAIL() function there. Not sure if this is your issue, but try this version:
=VALID(PUT("GZIP", " -FILE " + "C:\CIIV2_EESSI_RIRIO\CIIV2_EESSI_RIRIO_0000069876.txt" + " -STREAM GZIP " +" -ACTION DECOMPRESS -T C:\CIIV2_EESSI_RIRIO\CIIV2_EESSI_RIRIO_0000069876trace" , CPACKAGE(blob Items:input,"NATIVE") ), "Failed GZIP : "+ LASTERRORCODE() + " and message " + LASTERRORMSG())
Hope it helps!
Jim
------------------------------
Jim Davee
------------------------------
Original Message:
Sent: Wed April 24, 2024 06:33 AM
From: Denis Tomasi
Subject: Unzipping zip file
Hello,
I use this function to unzip a file.
=VALID(PUT("GZIP", " -FILE " + "C:\CIIV2_EESSI_RIRIO\CIIV2_EESSI_RIRIO_0000069876.txt" + " -STREAM GZIP " +" -ACTION DECOMPRESS -T C:\CIIV2_EESSI_RIRIO\CIIV2_EESSI_RIRIO_0000069876trace" , CPACKAGE(blob Items:input,"NATIVE") ), FAIL("Failed GZIP : "+ LASTERRORCODE() + " and message " + LASTERRORMSG()))
I have an error :
<ExecutionSummary MapStatus="Error" mapreturn="30" ElapsedSec="0.0071" BurstRestartCount="0">
<Message>The FAIL function interrupted the map: Failed GZIP: -1 and message Failed to insert the function</Message>
<CommandLine>'C:\IBM Workspace\TEST\map\NewMap1.mmc'</CommandLine>
<ObjectsFound>2</ObjectsFound>
<ObjectsBuilt>1</ObjectsBuilt>
Can you help me ?
Denis
------------------------------
Denis Tomasi
------------------------------