|
I did and that works fine - see 4th sentence in 1st paragraph.
----- Original Message ----- From: "Booth Martin" <Booth@xxxxxxxxxxxx> To: <midrange-l@xxxxxxxxxxxx> Sent: Tuesday, July 01, 2003 10:58 AM Subject: Re: Uploading CSV and/or numeric data
Consider creating dummy data in the iSeries PF and downloading it to thePC
That creates a FDF that can then be used for the upload.it
--------------------------------------------------------- Booth Martin http://www.MartinVT.com Booth@xxxxxxxxxxxx ---------------------------------------------------------
-------Original Message-------
From: Midrange Systems Technical Discussion Date: Tuesday, July 01, 2003 10:30:57 AM To: Midrange L Subject: Uploading CSV and/or numeric data
9402-200 running V3R2 (stop laughing Al). The PC running Windows ME
(everyone else, stop laughing) and CA 3.2 is attached via TCP/IP. I have a
program which dumps a comma-delimited text file and I'm attempting to get
onto the 400 and into a PF. I've successfully tested creating a file onthe
I400, downloading that file, and using that FDF to upload data in the same layout. I know you can specify that your data to upload is comma delimited but when I do that I get a message saying the FDF hasn't been specified.
So I set about to put the data into a format that would be easy to upload.
suck the CSV into Access and use a query to append the data to a tablethat
has custom formats of "000000.0000" which will force the fields into thedata
correct lengths, thus creating "fixed width" fields. But exporting the
loses the leading zeros and the decimals aren't aligned. I've tried uploadUTF8.
numeric fields where the decimals aren't aligned and the 400 puked on the
non-aligned decimals. So I try exporting the data as text and get the
non-aligned decimals. Then I notice the "Save Formatted" checkbox which
offers me the choice of saving in Windows, MSDOS, Unicode, or Unicode
I try all 4 and while I now get decimal alinged fields, I also get a lineof
datadashes (--------) between each line of data. I could write a VB program to strip out the lines with dashes.
In a subsequent test I notice that one of the formats I can export the
in is ODBC. So I select this, attach to the 400, and the fileauto-magically
appears on the 400. But when I look at the data, the first 3 or 4 fields"The
(which are text) look fine but the rest (which are numeric) are gibberish.
Not hex - I know hex - this is gibberish. Characters I've only seen on
Matrix".list
Is there something really easy I'm missing about: 1) uploading a CSV file to the 400, 2) dumping the data out of Access in fixed width fields, 3) sending numeric data via ODBC?
And yes, I know if I were on V5R1 this would all be a lot easier.
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
listTo 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.
.
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
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.
_______________________________________________ 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.
-- Terry Perkins tperkin@xxxxxxxxxxxxxxx <mailto:tperkin@xxxxxxxxxxxxxxx>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.