× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Chuck - if I run the following, it DOES assign a CCSID. But you are stating this cannot be???



CRTPF FILE(QTEMP/X) RCDLEN(111)
File X created in library QTEMP.
Member X added to file X in QTEMP.

3/29/12 Display File Description
DSPFD Command Input
File . . . . . . . . . . . . . . . . . . . : FILE X
Library . . . . . . . . . . . . . . . . . : *LIBL
Coded character set identifier . . . . . . : CCSID 37





" Also as the OP already responded, a database /flat file/ [aka a
program described database file] can not be assigned a CCSID because the
flat file is inherently undescribed... just rows\records of binary data
of the fixed record length."

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: Wednesday, March 28, 2012 6:57 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: help with CCSID - how to ensure a file can be successfully sent to root directory using CPYTOIMPF

On 28-Mar-2012 15:16 , DeLong, Eric wrote:
I would also mention that changing that system value seems to be
safe for most systems, especially those here in the US, where CCSID
00037 is most common.

Setting the value in a User Profile limits the scope, and allows
customization according to the environment\language specific to the user.

For this specific case, you might just try this before your
CPYTOIMPF command...

CHGPF FILE(QTEMP/SQLTEMP3) CCSID(037)

The CHGPF is best avoided to change the CCSID of a database physical
file, except for source files, and only when the text data in all of the
source members is known to be in the newly specified CCSID; i.e. just
tagged incorrectly presently. The original design intent of the CHGPF
CCSID(specified) is to assign a CCSID from when before CCSID support
existed, and thus has [potentially undesirable] consequences beyond just
changing the CCSID of the column(s); i.e. all /text/ CCSIDs for the file
are set to the specified value even if they are already correct, and for
which LABEL and COMMENT would have to be re-applied to recover. AFaIK
the support is not modified to be in any way /smart/ about avoiding that
effect.

Also as the OP already responded, a database /flat file/ [aka a
program described database file] can not be assigned a CCSID because the
flat file is inherently undescribed... just rows\records of binary data
of the fixed record length.

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.