+ Reply to Thread
Results 1 to 10 of 10

Thread: Download Excel file to AS400 Physical File

  1. #1
    Guest.Visitor Guest

    Default Download Excel file to AS400 Physical File

    I've had good success by saving the Excel as tab-delimited text, then using the PC5250 data transfer wizard to set up the .FDF and send it to the 400. CPYFRMIMPF works OK on tab-delim files too.

  2. #2

    Default Download Excel file to AS400 Physical File

    Ken, Thanks for your help. I did save the Excel file as tab-delimited text, by when I tried with the CPYFRMIMPF command, I kept getting 'Null not allowed' in certain field msg. and it ended abnormally with reason code 4. Any idea? Winnie

  3. #3
    Guest.Visitor Guest

    Default Download Excel file to AS400 Physical File

    Winnie, Download the CPYFRMIMPF PTF that will automatically convert NULLs to blanks and zeros for you. The problem is that your database fields do not have ALWNUL specified and your import file has "" null values in it. Alternatively, you could specify a dummy file that uses ALWNUL and then CPYF from that file to your real file. Chris

  4. #4

    Default Download Excel file to AS400 Physical File

    Chris, I was looking for the ALWNUL parm but couldn't remeber where I saw it before. Is it in the CRTPF command parm? Winnie

  5. #5
    Guest.Visitor Guest

    Default Download Excel file to AS400 Physical File

    ALWNULL is a DDS keyword just like COLHDG or TEXT that specify at the field level. And, the CpyFrmImpF command has the parm is RPLNULLVAL(*FLDDFT) which would eliminate your need to use ALWNULL. Your version of CpyFrmImpf may not have this parm unless you download the PTF. Chris

  6. #6

    Default Download Excel file to AS400 Physical File

    Chris, What about using the dummy file as mentioned earlier? What do I have to do to allow Null values in the dummy file? Winnie

  7. #7
    Guest.Visitor Guest

    Default Download Excel file to AS400 Physical File

    For each field that might contain a NULL value from the CPYFRMIMPF, specify the ALWNULL DDS keyword for that field and compile the dummy file. Chris

  8. #8

    Default Download Excel file to AS400 Physical File

    Chris, Thanks for your help. I also found a way to do it via Client Access transfer function, but it took a lot more steps. Winnie

  9. #9

    Default Download Excel file to AS400 Physical File

    Has anyone out there tried to download Excel file to AS400 PF? Any suggestions would be appreciated. Winnie

  10. #10

    Default Download Excel file to AS400 Physical File

    Chris, I tried with the ALWNULL keyword and it kept getting a 'data mapping error' on the last field in my record. What do you think caused it? Winnie

+ Reply to Thread

Similar Threads

  1. TechTip: Download Physical Files Using Microsoft Excel
    By Guest.Visitor in forum Microsoft
    Replies: 13
    Last Post: 10-08-2004, 08:55 AM
  2. Replies: 4
    Last Post: 05-12-2003, 07:38 AM
  3. Excel to a Physical File
    By B.Myrick in forum Programming
    Replies: 2
    Last Post: 06-19-2001, 11:19 AM
  4. retrieve deleted records from AS400 physical file
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 05-04-2001, 11:09 AM
  5. Converting an AS400 Physical file to Word Perfect
    By Guest.Visitor in forum Analysis
    Replies: 2
    Last Post: 07-18-2000, 11:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts