Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Concatenation of strings containing double-byte data HLASM Language Reference SC26-4940-06 |
|
If the assembler is invoked with the DBCS option, then the following
additional considerations apply:
Examples:
These examples use the BYTE function to create variables &SO and &SI, which have the values of SO and SI. The variable &DBCS1A is assigned the value <DaDb> with the SI/SO pair at the join removed. The assignment to variable &DBCS1E fails with error ASMA035E Invalid delimiter, because the symbol &DBDA is terminated by SO and not by a period. The variable &DBCS2 is assigned the value <DaDb>. The variable &DBCS2A is assigned the value <DaDbDa>. As with &DBCS1A, redundant SI/SO pairs are removed at the joins. The variable &DBCS3 is assigned the value <DaDb>. Although SI and SO have been added at the join, the concatenation operation removes two SI and two SO characters, since redundant SI/SO pairs are found at the second and third concatenations. However, by using intermediate variables &DBCS3P and &DBCS3Q to change the order of concatenation, the string <Da><Db> can be assigned to variable &DBCS3R. Substituting the variable symbol &DBCS3R in the nominal value of a G-type constant results in removal of the SI/SO pair at the join. |
Copyright IBM Corporation 1990, 2014
|