|
Hi Scott, actually, I'm not able to get this pgm to work;CRTPF QTEMP/TEST RCDLEN(100)OVRDBF FILE(STDOUT) TOFILE(QTEMP/TEST) QSH CMD('echo Test Test Test')I ran all the commands manually and when I run the QSH command; QSH CMD('LS -C /PROGRAMMINGARCHIVE/* > /QSYS.LIB/QTEMP.LIB/test.FILE/test .MBR') I get msg, Command ended normally with exit status 2.
Like Scott said in his reply, you can't use redirection (i.e. echo 'hhh'> somefile.txt) You have to use OVRDBF, exactly like the first 3 commands above. Eliminate the redirection in your bottom QSH and let OVRDBF take care of it.
--buck
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.