|
Hi Frank,
14800 - OVRDBF FILE(Z28IFS1P) TOFILE(QTEMP/Z28IFS1P) 14900 - QSH CMD('LS -C /PROGRAMMINGARCHIVE/* > /QSYS.LIB/TESTDP.LIB/Z28IFS1P.FILE/Z28IFS1P.MBR')
First of all, the command is "ls" and not "LS". QShell is case-sensitive. Also there's both -c and -C and they mean different things. Make sure you're using the right one (though, based on what your code does, I can't see why you'd use either one!)
Second, YOU CAN'T USE REDIRECTION UNLESS YOU FOREGO USING QTEMP. I've said this 3 times now. REmove the redirection from your Qshell command so that it looks like this:
OVRDBF FILE(STDOUT) TOFILE(QTEMP/Z28IFS1P) QSH CMD('ls /PROGRAMMINGARCHIVE/*') DLTOVR FILE(STDOUT)This will cause the data to be written to the Z28IFS1P file in QTEMP. It overrides the output of the QShell command to the QTEMP file.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.