7-Zip for PASE

Any IBM i topic that does not fit in another forum
Post Reply
c0kie
Posts: 4
Joined: Thu Oct 10, 2024 4:22 pm

7-Zip for PASE

Post by c0kie »

We have been using this utility for a while now with no issues. However, it recently stopped working, and we can't figure out why. We've found a workaround but I was hoping someone could shed some light on what happened. Here's a breakdown of the process that's using it.

i. GET method to a web API that returns a .gz file. We store it to an IFS directory.
ii. Here's the code running the QSHELL commands.

Code: Select all

       dcl-PI *N;
         path varchar(1000) const;
         file varchar(1000) const;
         response char(16000000);
       End-Pi;
       dcl-c q const('''');
       dcl-s ifsDir int(10) Inz(*Zeros);

      *=========================================================================

         CallP(E) ExecuteCommand('RMVENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT)');
         CallP(E) ExecuteCommand('ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) '
                               + 'VALUE(NONE)');

       CallP(E) ExecuteCommand('STRQSH CMD(' + q + 'cd ' + %Trim(path)
             + '; 7z e ' + %Trim(file) + '.gz'  + q + ')');
iii. This is the error when I run the command interactively. Shows the same error in the batch job log.

Code: Select all

                                                        QSH Command Entry                                                                                   
  $                                                                             
> cd /home/as5289/zipper                                                        
  $                                                                             
> ls                                                                            
  600.gz                                                                        
  $                                                                             
> 7z e 600.gz                                                                   
 /QOpenSys/usr/bin/7z: 001-0012 Error found starting child process.           
I found an IBM page that explains that the subsytem/jobq might need to be increased or set to *NOMAX on the number of active jobs. Tried that on several jobq's but never got a resolution. Can anyone take a stab at explaining why this started happening out of the blue?
Scott Klement
Site Admin
Posts: 872
Joined: Sun Jul 04, 2021 5:12 am

Re: 7-Zip for PASE

Post by Scott Klement »

Hard to tell from this message since all it says is that an error occurred in the child process, it doesn't say what the error was.

I would look for job logs (either in the spool or on the job log server, depending on your configuration) to see if there are additional messages.

You could also try PASE instead of QShell and see if that works better.

Or you could try enabling multi-threaded mode in PASE.
Post Reply