ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Native ZIP tools for iSeries

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Native ZIP tools for iSeries

    Hello,

    Here is a FREE RPG program that you can use for IFS file compression on your iSeries (i5, AS/400, System i). There is also a not free tool with more functionalities.

    No setup, no PASE, no shell...only RPG program to call.

    Have fun !

    http://www.businesswebzone.com/ramte...eries-software

  • #2
    Re: Native ZIP tools for iSeries

    You can add the QSH compression utilities right into your RPG program. I know I cant install thirdparty software on our systems http://www.mcpressonline.com/tips-te...ing-files.html

    Comment


    • #3
      Re: Native ZIP tools for iSeries

      Here is a version I use:


      Code:
      
                //=======================================================                                          // zip them up                                                                             
               // STRQSH CMD('jar cfM zip/profit.zip zip/*.*')                                            
               //=======================================================                                  
                                                                                                          
                cmdstring = 'STRQSH CMD(' + Q + 'jar cfM '  +                                             
                  %trim(inDirectory) +                                                                    
                  %trim(attname) +                                                                        
                  '  ' + %trim(InDirectory) + '*.*' + Q + ')';                                            
                                                                                                          
                cmdlength = %len(%trim(cmdstring));                                                       
                monitor;                                                                                  
                $command(cmdstring:cmdlength);                                                            
                on-error;                                                                                 
                endmon;                                                                                   
                                                                                                          
               // The name of the attached zip file                                                       
                tempAttach = %trim(InDirectory) + %trim(attname);
      Attached Files
      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment

      Working...
      X