+ Reply to Thread
Results 1 to 5 of 5

Thread: CPYFRMIMPF and Negative Numbers

  1. #1
    Guest.Visitor Guest

    Default CPYFRMIMPF and Negative Numbers

    The lack of responses where tells me that perhaps CPYFRMIMPF cannot map negative numbers correctly to the PF numeric fields. What was IBM thinking??? I hope this is just a "user" error on my part. Chris

  2. #2
    S.Mildenberger Guest

    Default CPYFRMIMPF and Negative Numbers

    Chris, I just went and modified a file that I used CPYFRMIMPF on yesterday to have a -1 in a field and when I ran the command the DB file has a -1 in it. The field is defined as packed 7,2. Maybe you have a PTF issue. We are at V4R5 and fairly current on PTF's. My command was CPYFRMIMPF FROMSTMF('/home/carhire/payfix06.txt') TOFILE(RMIPAYABLE) MBROPT(*REPLACE) RCDDLM(*CRLF) STRDLM(*NONE) which looks just like yours. Scott Mildenberger P.S. I just went and created a PF like yours and imported a file just like yours and everything worked correctly for me.

  3. #3
    Guest.Visitor Guest

    Default CPYFRMIMPF and Negative Numbers

    Scott, Ok, thanks for the feedback. I will look for a PTF. Chris

  4. #4
    Guest.Visitor Guest

    Default CPYFRMIMPF and Negative Numbers

    Scott, PTF SF65863 fixed my problem. Thank you for your assistance! Chris

  5. #5
    Guest.Visitor Guest

    Default CPYFRMIMPF and Negative Numbers

    Hi, How can I successfully use CPYFRMIMPF to import negative numbers? If I have a simple .CSV that contains two records like this: ABCDEFGHIJ,12345,123456.789,123,123.4,12345.67 RINGER,-1,-1,-1,-1,-1 The first record imports just fine. But in the second record, the negative ones all end up as negative ZEROS in the PF. Here is my command: CPYFRMIMPF FROMSTMF('as400 emp estimp.csv') TOFILE(RINGER/TESTIMP) MBROPT(*REPLACE) RCDDLM(*CRLF) STRDLM(*NONE) FLDDLM(',') Here is my PF: TIA100 A 10 TIP50 P 5 0 TIP93 P 9 3 TIZ30 S 3 0 TIZ41 S 4 1 TIZ72 S 7 2 I get the same results if I attempt to import a tab delimited file. Thanks. Chris

+ Reply to Thread

Similar Threads

  1. Negative Numbers from PC to AS/400
    By Guest.Visitor in forum General
    Replies: 0
    Last Post: 03-21-2002, 07:48 PM
  2. FTP negative numbers
    By Guest.Visitor in forum Internet
    Replies: 14
    Last Post: 09-14-1999, 03:47 PM
  3. The Negative Numbers Conundrum
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 06-04-1999, 06:41 AM
  4. FTP download and negative numbers
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 03-11-1999, 05:23 AM
  5. Inputting Negative Numbers
    By frankgw@adelphia.net in forum Programming
    Replies: 1
    Last Post: 09-14-1997, 04:37 PM

Posting Permissions

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