CPYTOIMPF - PC .TXT file displaying as ‘garbage’
15 pts.
0
Q:
CPYTOIMPF - PC .TXT file displaying as 'garbage'
Hi,
We are using a simple CPYTOIMPF command to move a Physical file to the IFS in a .TXT format.
CPYTOIMPF FROMFILE(S4CMREP) TOSTMF(&TOIMPTF) +
MBROPT(*REPLACE) RCDDLM(*CRLF) +
STRDLM(*NONE) FLDDLM(*TAB)

Where &TOIMPTF is a IFS Folder & file name. This was working correctly until we recently applied operating PTF's to the AS400. Now when we try to open the .TXT file, it is showing all funny characters.
Anyone had this before? Is there a conversion table setting I need to check? etc
Thanks
Sally
ASKED: Feb 26 2009  10:52 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
23625 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button

Hi,

Have you tried changing the STMFCODPAG to *STDASCII or *PCASCII ?

Regards,

Martin Gilbert.
Last Answered: Feb 26 2009  12:14 AM GMT by Gilly400   23625 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

SallyMackay   15 pts.  |   Feb 27 2009  8:12AM GMT

Whe I try either of those options I get the following:

Message . . . . : The copy did not complete for reason code 1.

Cause . . . . . : The Copy From Import File (CPYFRMIMPF) command, or Copy To
Import File (CPYTOIMPF) command could not be completed for reason 1. The
reason codes are:
1 - The CCSID or code page value is not valid.

 

Junky   55 pts.  |   Mar 17 2009  4:51PM GMT

Hi,

This works for us - STMFCODPAG(437)

Randy

 

Junky   55 pts.  |   Mar 17 2009  5:11PM GMT

Also, if the file you are trying to output already exists on the IFS, rename it to something else. It’s code page may not match what you are trying to output. The CPYTOIMPF should create a new one.

Randy

 
0