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:  

 
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.

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: