
WaltZ400 |
If you are trying to transfer Excel data into an AS/400 physical file, you need a PC description file on your PC to tell the upload how the columns and fields are laid out.
First create the PF on the AS/400 with DDS to define each field based on the columns in the Excel document.
Next do a Client Access download of the AS/400 file down to your PC. Make sure you take the option to create a PC description file specifying the file name and folder to store it in. Run the download. Don’t worry if you get a message saying no data transfered. All you are doing here is creating the field map file.
Next, I always find it easier to save the Excel spreadsheet as a CSV file before uploading the data.
Next, define an upload to the AS/400 specifying the CSV file you are copying, what AS/400 file to send it to and what the name of the PC description file is. Make sure you define the input PC file as a CSV in the upload.
Then run the upload. If all goes well the data should be in your PF on the AS/400. You might need to experiment as I have had problems sometimes with dates etc. since Excel stores these as offsets.
Hope this helps.

bkr0963c |
Thanks guys. I was able to get it to work.

johnknight |
Just another note, if you use the file transfer wizard in Client Access, it will analyze your spreadsheet & create the file description on the fly. It’s customizable & works very well.