ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

PC document to Physical File

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

  • PC document to Physical File

    Hi All,

    Whenever I am copying a PC document from a folder to a Physical File using CPYFRMPCD, I am losing the sign of a numeric field. I tried with both data types- zoned and packed, but didn't work either ways. Please suggest what can I do.

    Please note that I don't have any control over the PC Document, it gets dropped in a folder from another application and I have to simply copy its contents to the Physical File.

    Eagerly waiting for your response,

    Thanks

  • #2
    Re: PC document to Physical File

    change your physical file to be character.

    then in program scan for "-" if found
    then mult * -1 put in decimal field
    else
    move directly to decimal field
    endif
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment

    Working...
    X