Just ran the scripts again within the -sh (QP2TERM) and got the exact same results as when running within the QSH
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John Yeung
Sent: Wednesday, July 20, 2016 11:11 AM
To: Midrange Systems Technical Discussion
Subject: Re: Awk script running in QShell
On Wed, Jul 20, 2016 at 11:36 AM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:
I don't have AWK in QSh but I do have one in PASE (for what that's
worth) IBM i 7.2
The Qshell situation is a little confusing. It can run both "true"
Qshell commands (native i *PGM objects) as well as PASE commands (AIX binaries). Clearly, he's running awk from Qshell, regardless of whether it's a native or PASE program.
Some things do run differently when invoked in a PASE shell (such as what you get with CALL QP2TERM) than when invoked from Qshell. I am not too hopeful that awk is something that will magically start working as expected for OP once he tries it with a PASE shell, but it couldn't hurt to try.
John Y.
--
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:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
________________________________
This communication may contain confidential Protected Health Information. This information is intended only for the use of the individual or entity to which it is addressed. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled.
If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of these documents is strictly prohibited by federal law. If you have received this information in error, please notify the sender immediately and arrange for the return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.