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:
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.
An existing data set created using Default Character conversion cannot be read or written (unless DISP=OLD) using CCSIDs.
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.
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.
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.
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. |