HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples

HLASM Language Reference
SC26-4940-06

Name     Operation       Operand                            Continuation
                                                                  │
                                                                  V
DBCS1    DC              C'<D1D2D3D4D5D6D7D8D9>XXXXXXXXXXXXXXXXXXXX
                         <DaDb>'

DBCS2    DC              C'abcdefghijklmnopqrstuvwxyz0123456789XXXX
                         <DaDb>'

DBCS3    DC              C'abcdefghijklmnopqrstuv<D1D2D3D4D5D6D7>XX
                         <DaDb>'
DBCS1
The DBCS1 constant contains 11 double-byte characters bracketed by SO and SI. The SI and SO at the continuation point are not assembled into the operand. The assembled value of DBCS1 is:
<D1D2D3D4D5D6D7D8D9DaDb>
DBCS2
The DBCS2 constant contains an EBCDIC string which is followed by a double-byte string. Because there is no space for any double-byte data on the first line, the end column is extended three columns to the left and the double-byte data started on the next line. The assembled value of DBCS2 is:
abcdefghijklmnopqrstuvwxyz0123456789<DaDb>
DBCS3
The DBCS3 constant contains 22 EBCDIC characters followed by nine double-byte characters. Alignment of the double-byte data requires that the end column is extended one column to the left. The SI and SO at the continuation point are not assembled into the operand. The assembled value of DBCS3 is:
abcdefghijklmnopqrstuv<D1D2D3D4D5D6D7DaDb>

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014