|
On 01 Mar 2013 13:09, Vernon Hamberg wrote:
These files are coming from a windows system, and they are usuallySince CCSID(1252) is not UTF-16, that would be a problem.
tagged with CCSID=1252.
I hoped that if I specified 1200 as theAssuming this specific thing has not changed since v5r3 [and docs
FROMCCSID, that the file's CCSID would be ignored.
seems to suggest no change]:
The FROMCCSID() for CPYFRMIMPF is used to identify the CCSID of the
FROMFILE(); i.e. for a [program-described] database file as from-file.
The FROMCCSID parameter is even conditioned with prompt control, to
ensure that the parameter is not even visible unless a value has been
specified for the FROMFILE.
The CCSID for the FROMSTMF is always the CCSID of the STMF. Thus if
the stream files are improperly tagged, then improper effects are to be
expected. To correct the CCSID tagging, use the following request:
CHGATR OBJ(the_file) ATR(*CCSID) VALUE(1200)
FWiW: I often get the incorrect CCSID tagging on my STMF when I FTP
the data from a client; having forgotten to issue the following FTP
subcommand before the PUT subcommand:
QUOTE TYPE C 1200
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.