z/OS DFSMS Using Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


CCSID Decision Tables

z/OS DFSMS Using Data Sets
SC23-6855-00

The following three tables are used by data management to determine the type of data conversion to perform for ISO/ANSI tapes. See Character Data Conversion for a description of data conversion and how it is requested.

For purposes of these tables:

USER
Refers to the CCSID which describes the data used by the application program. It is derived from (in order of precedence):
  1. CCSID parameter on the EXEC statement, or
  2. CCSID parameter on the JOB statement.

If the table entry contains a 0, it means that the CCSID parameter was not supplied in the JCL. In this case, if data management performs CCSID conversion, a system default CCSID of 500 is used.

TAPE (DD)
Refers to the CCSID which is specified by the CCSID parameter on the DD statement, dynamic allocation, or TSO ALLOCATE. If the table entry contains a 0, it means that the CCSID parameter was not supplied. In this case, if data management performs CCSID conversion, a system default CCSID of 367 is used when open for output and not DISP=MOD.
Label
Refers to the CCSID which will be stored in the tape label during output processing (not DISP=MOD), or which is found in an existing label during DISP=MOD or input processing. Unless otherwise indicated in the tables, a CCSID found in the tape label overrides a CCSID specified on the DD statement on input.
Conversion
Refers to the type of data conversion data management will perform based on the combination of CCSIDs supplied from the previous three columns.
  • Default denotes that data management performs conversion using Default Character conversion as described in Character Data Conversion. This conversion is used when CCSIDs are not supplied by any source.

    An existing data set created using Default Character conversion cannot be read or written (unless DISP=OLD) using CCSIDs.

  • Convert a->b denotes that data management performs CCSID conversion with a and b representing the CCSIDs used.
  • No conversion denotes that data management performs no conversion on the data.
  • Fail denotes that the combination of CCSIDs is invalid. This results in an ABEND513-14 during open.

A CCSID of X, Y, or Z is used to represent any of the supported CCSIDs (other than 65␠535) where X ≠ Y ≠ Z. Unless otherwise specified in the tables, a CCSID of 65␠535 indicates that data management will perform no conversion.

Table 1 describes processing used when the data set is opened for output (not EXTEND) with DISP=NEW or DISP=OLD. The label column indicates what will be stored in the label.

Table 1. Output DISP=NEW,OLD
USER TAPE(DD) Label Conversion Comments
0 0 BLANK Default No CCSIDs specified. Use Default Character Conversion.
0 Y Y Convert 500->Y USER default is 500.
0 65535 65535 No conversion No convert specified on DD. CCSID of data is unknown.
X 0 367 Convert X->367 Default tape is 367.
X Y Y Convert X->Y USER is X. DD is Y.
X 65535 X No conversion User data assumed to be X.
65535 0 65535 No conversion No convert specified on JOB/EXEC. CCSID of data unknown.
65535 Y Y No conversion User data assumed to be Y.
65535 65535 65535 No conversion No convert specified.

Table 2 describes processing used when the data set is opened for output with DISP=MOD or when the OPEN option is EXTEND. This is only allowed for IBM created Version 4 tapes. Attempting to open a non-IBM created Version 4 tape with DISP=MOD will result in ABEND513-10.

Table 2. Output DISP=MOD (IBM V4 tapes only)
USER TAPE(DD) Label Conversion Comments
0 0 BLANK Default No CCSIDs specified. Use Default Character Conversion.
0 0 Z Convert 500->Z USER default is 500.
0 0 65535 Fail CCSID of tape data is unknown. Prevent mixed user data.
0 Y BLANK Fail Blank in label means Default Character Conversion but Y specified. CCSID mismatch.
0 Y Z Fail CCSID mismatch. Label says Z but DD says Y.
0 Y Y Convert 500->Y USER default is 500. Label says Y and DD says Y.
0 Y 65535 Fail DD says Y but CCSID of data is unknown. CCSID mismatch.
0 65535 BLANK Fail Blank in label means Default Character Conversion but unknown CCSID on tape.
0 65535 Z Fail DD says no convert. Label says Z and USER CCSID not specified.
0 65535 65535 No conversion No convert specified. User must ensure data is in correct CCSID.
X 0 BLANK Fail Blank in label means Default Character Conversion but USER CCSID is X. No interface to convert X to 7-bit ASCII.
X 0 Z Convert X->Z USER is X. Label is Z.
X 0 65535 Fail Label CCSID is unknown, but USER is X with no convert specified. Potential mismatch.
X Y BLANK Fail Blank in label means Default Character Conversion but DD says Y. CCSID mismatch.
X Y Z Fail DD says Y but label says Z. CCSID mismatch.
X Y Y Convert X->Y DD says Y and label says Y.
X Y 65535 Fail DD says Y but tape CCSID is unknown. Possible mismatch.
X 65535 BLANK Fail Blank in label means Default Character Conversion but USER says X with no convert. CCSID mismatch.
X 65535 Z Fail USER and label CCSID mismatch with no convert specified.
X 65535 X No conversion USER and label CCSID agree with no convert specified.
X 65535 65535 No conversion DD and label agree but data on tape must be X as well or it will cause problems later.
65535 0 BLANK Fail Blank in label means Default Character Conversion but USER CCSID specified. CCSID mismatch.
65535 0 Z No conversion No convert specified. Must assume tape data is Z or it will cause problems later.
65535 0 65535 No conversion No convert specified and label says no convert.
65535 Y BLANK Fail Blank in label means Default Character Conversion but DD says Y. CCSID mismatch.
65535 Y Z Fail DD say Y but label says Z. CCSID mismatch even though no convert is specified.
65535 Y Y No conversion TAPE and label agree and no conversion specified.
65535 Y 65535 No conversion Label is unknown and USER specified no convert. Assume data is correct. Otherwise, problems later on.
65535 65535 BLANK Fail Blank in label means Default Character Conversion. Even though no convert specified, still possible mismatch.
65535 65535 Z No conversion No convert specified but data must be in Z or it will cause problems later.
65535 65535 65535 No conversion No convert specified.

Table 3 describes processing used when the data set is opened for INPUT or RDBACK.

Table 3. Input
USER TAPE(DD) Label Conversion Comments
0 0 BLANK Default No CCSIDs specified. Assume Default Character Conversion.
0 0 Z Convert Z->500 USER default is 500. Label says Z.
0 0 65535 No conversion Label says no convert and no CCSIDs specified.
0 Y BLANK Fail Fail if IBM V4 tape because blank in label means Default Character Conversion but DD says Y.
0 Y BLANK Convert Y->500 Allow if not IBM V4 tape because user is indicating data on tape is Y via the DD.
0 Y Z Fail Label say Z but DD says Y. CCSID mismatch.
0 Y Y Convert Y->500 USER default is 500. DD says Y and label says Y.
0 Y 65535 Convert Y->500 DD is saying tape data is Y. USER default is 500.
0 65535 BLANK No conversion DD specified no conversion.
0 65535 Z No conversion DD specified no conversion.
0 65535 65535 No conversion DD specified no conversion.
X 0 BLANK Fail Blank in label means Default Character Conversion but USER specified CCSID. CCSID mismatch.
X 0 Z Convert Z->X USER is X. Label is Z.
X 0 65535 No conversion Label says no conversion and no CCSID specified on DD, therefore, no conversion.
X Y BLANK Fail Fail if IBM V4 tape because blank in label means Default Character Conversion but DD says Y. CCSID mismatch.
X Y BLANK Convert Y->X Allow if not IBM V4 tape because DD is indicating data is Y. USER is X.
X Y Z Fail Label says Z but DD says Y. CCSID mismatch.
X Y Y Convert Y->X Label and DD both specify Y. USER is X.
X Y 65535 Convert Y->X Label CCSID is unknown but DD says Y. USER is X. Assume data is Y.
X 65535 BLANK Fail Fail if IBM V4 tape because blank in label means Default Character Conversion but USER says X. CCSID mismatch.
X 65535 BLANK No conversion Allow if not IBM V4 tape because DD specified no convert.
X 65535 Z Fail Label says Z, USER says X but DD says no convert. CCSID mismatch between USER and label.
X 65535 X No conversion Label says X and USER says X, therefore, allow no conversion.
X 65535 65535 No conversion No conversion specified, but tape data must be X.
65535 0 BLANK No conversion USER specified no conversion indicating that application can accept any data including 7-bit ASCII.
65535 0 Z No conversion USER specified no conversion indicating that application can accept any data including Z.
65535 0 65535 No conversion USER specified no conversion indicating that application can accept any data including unknown data on tape.
65535 Y BLANK Fail Fail if IBM V4 tape because blank means Default Character Conversion but DD says Y. CCSID mismatch.
65535 Y BLANK No conversion Allow if not IBM V4 tape because DD is indicating tape is Y with no conversion specified.
65535 Y Z Fail Label says Z but DD says Y. CCSID mismatch.
65535 Y Y No conversion Label and DD agree, therefore, no convert.
65535 Y 65535 No conversion Label data is unknown and no convert specified.
65535 65535 BLANK No conversion USER specified no convert so application can accept tape data in any format including 7-bit ASCII.
65535 65535 Z No conversion USER specified no convert so application can accept tape data in any format including Z.
65535 65535 65535 No conversion No convert specified.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014