|
On Sunday 28 July 2002 1:23 am, Orr, Rod wrote: [snip] > I'm not very used to qsh so a couple of questions. > > 1. There seems to be no return code from STRQSH command. How do errors > get trapped. If the qsh nominated command fails does it generate escape > messages or what? Do I have to overide STDOUT and parse a file etc? I believe that's the only way, but I'm no QShell expert. If there is a failure it produces a spoolfile (at least in batch it does) with the error, but I'm not sure if this is a QShell thing or a JVM thing. You could redirect stderr on the command itself, but you'd then need to process an IFS file to find out what happened. > 2. Is there much overhead in invoking the QSH environment? I ask > because I may have to invoke it multiple times in a loop (because of > the 5000 char limit). There's an overhead, certainly, but I've not tried measuring it. The report distribution system I mentioned generates around 100 emails, and the zipping process seems to take just a couple of minutes or so for the lot (1-2 secs per QSH). That's on a four way 730. > 3. How did you find the performance of Jar? Is it written in Java? jar is the Java ARchiver and is a standard component in all JVMs. As such I presume (but don't know) that it's probably written in C for the target platform. It seems zippy enough[1] Regards, Martin [1] bad pun intended ;) -- martin@dbg400.net jamaro@firstlinux.net http://www.dbg400.net /"\ DBG/400 - DataBase Generation utilities - AS/400 / iSeries Open \ / Source free test environment tools and others (file/spool/misc) X Debian GNU/Linux | ASCII Ribbon Campaign against HTML mail & news / \
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.