CPYTOIMPF error when copying PF to stream file on iSeries

5 pts.
Tags:
AS/400
CCSID
CPYTOIMPF
iSeries
NFS
I'm encountering an error while copying a PF to a stream file on iSeries if the stream file reside on a IFS link with 'NFS' as root directory.
Below is the scenario where I'm getting this error. Used the below command:
CpytoImpf Fromfile(Qtemp/CsvHeading) Tostmf(&CsvFile) Mbropt(*Replace) StmfCodpag(*PCASCII) Rcddlm(*CrLf) Strdlm(*None)
The file was created successfully.
Immediately executed the below command:
CpytoImpf Fromfile(*Libl/&Table) ToStmf(&CsvFile) Mbropt(*add)
StmfCodpag(*PCASCII) Rcddlm(*CrLf)
The CCSID of the PF is 37
The CCSID of the stream file that is being created with first command is 850
&CSVFILE value :
'/NFS/Sale/Archive'
Now the system gives me an error with reason code 1 "The CCSID or code page value is not valid"
The error pops up even if run through code / through the command line.
N.B. The Above commands when executed as above with the IFS root directory as QNTC(example: '/QNTC/Sale/Archive') is working absolutely fine.
Could anyone please help me on this?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    Does directory '/NFS' imply that this is mounted over a remote NFS export? If so, can you show us the export attributes as well as the MOUNT attributes?

    "The CCSID of the PF is 37"

    Please show the full 'Coded character set identifier' line from DSPFD FILE( {*Libl/&Table} ) TYPE(*ATR). If that shows as CCSID(37), then please also show the CCSID of every field from DSPFFD FILE( {*Libl/&Table} ).

    Is NFS in regular use at your site? That is, are files regularly copied to remote NFS servers?

    I probably wouldn't try to use CPYTOIMPF for a remote target. I'd create the IMPF in the local system, and then copy the result to the NFS server.
    21,835 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: