We force STDOUT to a member in a source PF...works well and it
provides a nice log to look at in case something goes wrong ;-)
OVRDBF FILE(STDOUT) TOFILE(SRLIB/SRCFILE) +
MBR(MBRNAME)
CALL PGM(QP2SHELL) PARM('/QOpensys/usr/bin/-sh' +
'-c' &COMMAND)
DLTOVR FILE(STDOUT)
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Justin Taylor
Sent: Friday, January 05, 2018 1:59 PM
To: MIDRANGE-L (midrange-l@xxxxxxxxxxxx)
Subject: [EXTERNAL] QP2SHELL output
I have a shell script that I run in batch. When I do, it prints the output. I don't want the output at all. I've tried unsuccessfully to hold the output. Here's my CLLE code:
OVRPRTF FILE(STDOUT) OUTQ(QPRINT) OVRSCOPE(*JOB) HOLD(*YES)
OVRPRTF FILE(STDERR) OUTQ(QPRINT) OVRSCOPE(*JOB) HOLD(*YES)
CALL PGM(QP2SHELL) PARM('/QOpenSys/bin/sh' +
'/usr/bin/purgeTmp.sh')
MONMSG MSGID(CPF0000)
DLTOVR FILE(STDOUT) LVL(*JOB)
DLTOVR FILE(STDERR) LVL(*JOB)
That's not holding the output. Do STDOUT/STDERR only work for QSH? Is there an equivalent for PASE?
Thanks
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
----------------------------------------------------------------------
Confidentiality Notice: The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.
As an Amazon Associate we earn from qualifying purchases.