Dear Miguel
What is the target SW product that reads the result file of CPYTOPCD? Is it a SW product running in MS Windows ? If so, you should use CPYTOIMPF command instead as this command support EBCDIC conversion to Unicode encoding that any typical Windows SW product uses.
Sample: CPYTOIMPF FROMFILE(library/pfile) TOSTMF('/folder/file.txt') DTAFMT(*FIXED) STMFCCSID(1208) RCDDLM(*CRLF) (CCSID 1208 = UTF-8 or you can try *PCASCII)
More samples here: CPYTOIMPF and CPYFRMIMPF examples at https://www.ibm.com/support/pages/cpytoimpf-and-cpyfrmimpf-examples
------------------------------
Satid S
------------------------------
Original Message:
Sent: Thu January 23, 2025 04:11 PM
From: Miguel Peralta
Subject: cpytopcd ith special characters Ü
Hello, we tried to make a cpytopcd but when there is a special character like Ü inside the document it sends us a completely different character. How can we solve this? As additional information, when we execute a client access transfer and use the ANSI value, the document is generated correctly.
Regards.

------------------------------
Miguel Peralta
------------------------------