Shell scripting exists and is loosely monitored. No access to the server
other than a directory of shell scripts-kornshell (my limited understanding
of the scripts, but have modified or created several), an import directory,
an export directory.
Plus the db2 sql scripts. We do have a few shell scripts executing sql
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of
Sent: Monday, January 13, 2020 3:14 PM
Subject: Re: can sql update a non database ascii text file in IFS
How would you get the replacement value with sed?
On Mon, 2020-01-13 at 15:10 -0500, Bryan Dietz wrote:
seems like a job for "sed" in QSH.
what is the companies position on shell scripts?
Jim Franz wrote on 1/13/2020 11:20 AM:
I need to update text files received for import (not a database file) in
the IFS with only sql (the text files were generated weeks ago, cannot be
regenerated, and a two byte column needs to be updated before processing if
value = 99). I don't have an option to do an emergency release of program
code to fix it (at least not easily), but I can execute sql script with a
Is such a thing possible? It is many files (20 or so) and approx 100,000
rows per file.
psuedo code idea
set (substring,101,2) =
(select ordertype from OrdMaster om
where (substring,11,9) = om.OrderNbr)
where (substring,101,2) = '99'
and the order number in substring,11,9 is a character string matching
OrderNbr which is character.
] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Toll Free: 877-893-2550
This document and any accompanying this email transmission contain
confidential information, belonging to the sender that is legally
privileged. This information is intended only for the use of the individual
or entity named above. The authorized recipient of this information is
prohibited from disclosing this information to any other party and is
required to destroy the information after its stated need has been
fulfilled. If you are not the intended recipient, or the employee of agent
responsible to deliver it to 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. If you have
received this email in error, please notify the sender immediately to
arrange for return or destruction of these documents.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
As an Amazon Associate we earn from qualifying purchases.