Vorwort - SSS-Tools für Power System i Syntax System Services
Vorwort - SSS-Tools für Power System i Syntax System Services
Vorwort - SSS-Tools für Power System i Syntax System Services
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
due to the high job startup cost versus the lightweight Unix processes. Since we’re all about<br />
performance, I’m not going to illustrate that method.<br />
If I look back at the reader’s original request, he only asked for a way to get at old files, not<br />
necessarily automatically delete them. To achieve that, I’m going to slightly modify the original<br />
command:<br />
CRTPF NoQtempLib/YourFile<br />
RCDLEN(5000)<br />
STRQSH CMD(’find /home/elvis -atime +180 -print ><br />
/QSYS.LIB/NoQtempLib.LIB/YourFile.FILE/YourFile.MBR’)<br />
I don’t have Qshell installed, now what?<br />
Fear not, there are always alternatives on our trusty iSeries.<br />
With V5R3 IBM has included RTVDIRINF and PRTDIRINF with should look very familiar<br />
to folks used to RTVDSKINF and PRTDSKINF. This will provide all the detail you want.<br />
If you’re up for a little bit of programming, any of the Unix apis like readdir(), opendir(),<br />
stat() etc. are available in all HLL programming languages (RPG,C,COBOL etc.). With access to<br />
these, you can easily create your own commands, especially considering the wealth of examples<br />
the Unix aficionados have placed on the World Wide Web. Alternatively, there are unique iSeries<br />
APIs that perform well in relation to other approaches: Qp0lProcessSubtree, Qp0lGetAttr,<br />
Qp0lUnlink.<br />
I was going to write a command but then realized that the well known iSeries expert, Scott<br />
Klement, has already done so:<br />
http://www.systeminetwork.com/artarchive/newsletter/w/1001/a/52993/index.html<br />
...more information<br />
Centerfield Technologies Februar 2007<br />
www.inn-online.de < Seite > Seite: 56