|
<<SNIP>>
You can specify a QShell function on the QSH CL command. An example
might be if you want to put a directory listing into an IFS file.
<<SNIP>>
QShell commands can be chained - so this would create the PF, then
run the ls command into it. The semi-colon let it ignore an error
like the PF already exists. I don't remember what separator makes it
stop on an error.
qsh cmd('system "crtpf qgpl/lsout rcdlen(255)"; ls > /qsys.lib/qgpl.lib/lsout.file/lsout.mbr')
To append to that file, use a double right-arrow.
On 10/10/2013 12:38 PM, Gary Thompson wrote:
<<SNIP>>
I do a fair amount of RPG call to QCMDEXC but never QSHELL so
a simple example would really help. <<SNIP>>
John Yeung on Thursday, October 10, 2013 10:58 AM wrote:
<<SNIP>>
Remember, anything you can do on a QSHELL or CL command line,
you can do in a CL or RPG program. (In the case of RPG, the
easiest would probably be to call QCMDEXC, which is still, for
most people, way easier than fiddling with system APIs.)
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.