The script and input files are in the IFS and are ASCII coded files, CCSID is 1252
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: Wednesday, July 20, 2016 11:02 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Awk script running in QShell
On 20-Jul-2016 10:07 -0500, Fuchs, James M wrote:
I am at a loss. Have an Awk script that I need to run in the
QSH/QShell environment but it will not run to completion. The AWK
script runs without issue if I run it on a PC but when I run it on the
AS400 in QShell it only processes/recognizes the first pattern match.
<<SNIP>>
Verify that the /special-characters/ were properly translated into the expected hex code point of the EBCDIC CCSID [assigned to, as an attribute] of the file that is being used as the script. The ^ symbol\character [SD150000 Circumflex Accent] and the ¬ character\symbol
[SM660000 Logical NOT] could be problematic in some translations. The Dump (DMP) command will produce a spooled file QPSRVDMP with the hex data of a stream file (STMF), and the option 8="Display Attributes"
against that STMF as chosen from the Work With Object Links (WRKLNK) will show the "Coded character set ID" that was assigned to the file.
--
Regards, Chuck
--
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.