ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

CPYFRMIMPF command with new DB2 file created

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CPYFRMIMPF command with new DB2 file created

    Hi guys,
    what I have to do in the CPYFRMIMPF command to create a DB2 file?
    CPYFRMIMPF FROMSTMF('/my_directory/my_ifs_file.txt') TOFILE(QTEMP/FNEW) MBROPT(*REPLACE) STRDLM(*NONE) RMVBLANK(*BOTH)
    I have an error related to the FNEW file- that does not found in QTEMP, it is not possible to create the file with this command when I make the copy of the data from IFS? I don't want to create the file before
    Thanks

  • #2
    Sorry, it's not possible to create the file using the CPYFRMIMPF command. Here's a snippet from the command help text:
    ...The to-file must exist on the system before the copy can occur.

    Comment

    Working...
    X