|
----- Message from Duane Scott <dscott@xxxxxxxxxxx> on Tue, 30 Aug. . .
2016 19:14:29 +0000 -----
To:
"Rational Developer for IBM i / Websphere Development Studio Client
for System i & iSeries" <wdsci-l@xxxxxxxxxxxx>
Subject:
Re: [WDSCI-L] Making the most, or over-thinking it - SQL for uploads
FWIT - the row layout is as follows
Position Length Contents
1 5 Order number, right justified, zero filled.
6 1 Blank
7 7 Code.
14 1 Blank
15 1 0 if the code is a "header" - 1 if the code is detail
16 1 Blank
17 60 Short description
77 1 Blank
78 To end Long description
I needed only the Code (7:7) and the Short Description (17:60) and
only those with a 1 in position 15.
correct.
Simplicity is the concern. To me, simple is a single statement to
insert data. SQL works well for that (for me) IF conditions are
Besides, I am not a big fan of CPYFRMIMPF or Data Transfer unless
the files are already formatted in CSV.
This mailing list archive is Copyright 1997-2026 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.