sourceCcsid parameter

Use the sourceCcsid parameter to set or query the CCSID (Coded Character Set Identifier) of the file on its original platform.

 

Availability

query command
set command
current parameter
default parameter
install parameter

 

Scope

sourceCcsid is scoped to the current document.
current.sourceCcsid is scoped to the current document.
default.sourceCcsid is globally scoped.
install.sourceCcsid is globally scoped.

 

Syntax

query sourceCcsid
set sourceCcsid [ default | n ]
query current.sourceCcsid
query default.sourceCcsid
set default.sourceCcsid [ install | n ]
query install.sourceCcsid 

 

Parameters

default If you specify the default parameter for the set sourceCcsid command, the current document will use the value of default.sourceCcsid.
n If you specify the n parameter for the set sourceCcsid command, the current document will use n as the CCSID value.  If you specify the n parameter for the set default.sourceCcsid command, all documents that have the sourceCcsid set to default will use n as the CCSID value.

n must be a decimal CCSID number.
install If you specify the install parameter for the set default.sourceCcsid command, all document with sourceCcsid set to default will use the value of install.sourceCcsid.

 

Description

This parameter may be used in conjunction with the sourceEncoding parameter to specify the characteristics of a file originating on another platform.  When the file on the native platform is the local copy of a file on a host system (such as iSeries), specifying the original host-system character encoding information allows the editor to consider and emulate various characteristics of the original file, such as calculating the required record length on saves.

CCSID is 16-bit number identifying a specific set of encoding scheme identifier, character set identifier(s), code page identifier(s), and additional coding-related required information, that uniquely identifies the coded graphic character representation used.

If you do not specify any of the parameters for the set sourceCcsid command, default is assumed.  If you do not specify any of the parameters for the set default.sourceCcsid command, install is assumed.

The query current.sourceCcsid command returns the CCSID value used in the current document.

 

Examples

query sourceCcsid
set sourceCcsid 420
query current.sourceCcsid
query default.sourceCcsid
query install.sourceCcsid 

Related reference
query command
set command
current parameter
default parameter
install parameter
sourceEncoding parameter