+ Reply to Thread
Results 1 to 3 of 3

Thread: CPYFRMIMPF

  1. #1
    Guest.Visitor Guest

    Default CPYFRMIMPF

    Are you saying that your setup fails, or are you just checking to see if it should work before you try it? If it fails, in what manner does it do so? A workaround might be to use CPYFRMSTMF instead, put it into a PF with one large field, and use SQL to chop the results into 256-byte pieces.

  2. #2
    John Tevald Guest

    Default CPYFRMIMPF

    Can anyone shed light on this command. I am attempting to copy a comma delimited CSV file (IFS) to an as/400 flat physical file (IMUP). Since we use a case tool that limits field lengths to 256 bytes, I created a file (IMUP) with 5 fields of 256 bytes each (a total record length of 1280) My needs are rather specific. I want to copy the data over to the flat file (commas and all). I am using the following command.... CPYFRMIMPF FROMSTMF('/PDF/DQ015.CSV') TOFILE(IMUP) + MBROPT(*ADD) RCDDLM(*CR) DTAFMT(*FIXED) + STRDLM(*NONE) RMVBLANK(*NONE) + FLDDFNFILE(TEVALD/QCLSRC FDF2) I am a little cofused about the field definition file (FDF2). I tried to set it up as a source menber with the following contents.... I am sure that I got this wrong.. F1 1 256 0 F2 257 512 0 F3 513 768 0 F4 769 1024 0 F5 1025 1280 0[*]END again, all I want to do is copy data "on mass" without having to map to specific fields. HELP!!!!! johnT.

  3. #3
    John Tevald Guest

    Default CPYFRMIMPF

    Thanks, Using CPYFRMSTMF did the trick. johnT.

+ Reply to Thread

Similar Threads

  1. CPYFRMIMPF
    By Guest.Visitor in forum General
    Replies: 7
    Last Post: 01-05-2005, 02:59 PM
  2. notes detachment and CPYFRMIMPF
    By Guest.Visitor in forum Collaboration & Messaging
    Replies: 0
    Last Post: 02-24-2003, 06:18 AM
  3. CPYFRMIMPF - Error Record File
    By vasansrini@hotmail.com in forum Microsoft
    Replies: 0
    Last Post: 06-18-2002, 08:38 AM
  4. CPYFRMIMPF and Negative Numbers
    By Guest.Visitor in forum Programming
    Replies: 4
    Last Post: 06-08-2001, 07:02 AM
  5. CPYFRMIMPF
    By Guest.Visitor in forum Application Software
    Replies: 0
    Last Post: 01-01-1995, 02:00 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