Another choice (as pleasant as fingernails on a chalkboard) is to upload the data as a stream file (ifs) and use CPYFRMSTMF (not CPYFRMIMPF as that would have the same issue).
Original Message:
Sent: Tue August 27, 2024 09:17 AM
From: Robert Berendt
Subject: Upload CSV or XLSX file to Flat DB file using Data Transfer in ACS
You could wait for her response but I'd bet the farm on it. This would explain this:
<snip>
The upload however only loads the data from the first column in the xlsx, or the first data set before the first comma in the csv.
</snip>
She'd be better off creating a new intermediate file with actual columns/fields. Or see if there is a way to say the "from" file has no delimiters.
------------------------------
Robert Berendt IBMChampion
Original Message:
Sent: Tue August 27, 2024 09:07 AM
From: Satid S
Subject: Upload CSV or XLSX file to Flat DB file using Data Transfer in ACS
Dear Robert
Thanks to your explanation, this means a physical file with only one field. No one in my part of the world uses the name flat file for so many years now.
If this is actually what Amy meant, then her question puzzles me now because, from her post, it means she is trying to upload a multi-column CSV/XLSX PC file to that one-column physical file and I have no idea how it can be done and what the purpose of this kind of upload is for ? Could you clarify more if you think you know what Amy is trying to achieve? Or do we wait for her response first ?
------------------------------
Satid S
Original Message:
Sent: Tue August 27, 2024 07:58 AM
From: Robert Berendt
Subject: Upload CSV or XLSX file to Flat DB file using Data Transfer in ACS
Satid,
Let me explain "flat file". CRTPF FILE(MYLIB/MYFILE) RCDLEN(132)
Think old RPG II where you used Input specs to define the fields.
------------------------------
Robert Berendt IBMChampion
Original Message:
Sent: Sun August 25, 2024 12:43 AM
From: Amy Williams
Subject: Upload CSV or XLSX file to Flat DB file using Data Transfer in ACS
Hello,
I have been attempting for about a week to get a data set from a csv or xlsx format to upload to a flat file the original data was downloaded from. The upload however only loads the data from the first column in the xlsx, or the first data set before the first comma in the csv.
I know I used to have this done successfully with Client Access for Windows, hoping someone has a way to do this with ACS.
------------------------------
Amy Williams CISSP CISA PCIP
Principal Security Consultant
Fortra LLC
------------------------------