Published on :
Data Management CREATION_INTERNE

Creating Special Characters and Hexadecimals

This code is also available in: Deutsch Español Français
Awaiting validation
This program creates a temporary SAS© table 'try' to test the behavior of character strings. It inserts an HTML line break entity (
) and a hexadecimal sequence ('A0A0A0A0'x, often corresponding to non-breaking spaces in single-byte encoding) to verify their storage or display.
Data Analysis

Type : CREATION_INTERNE


Data is manually generated in the Data step using constants and the CATT function.

1 Code Block
DATA STEP Data
Explanation :
Generation of table 'try'. The first observation concatenates 'mean', an HTML line break entity, and 'std'. The second observation concatenates a hexadecimal string (4 bytes A0) with the text '|indented|'.
Copied!
1DATA try;
2 patchar=catt('mean', '
', 'std');
3 OUTPUT;
4 patchar=catt('A0A0A0A0'x, '|indented|');
5 OUTPUT;
6RUN;
2 Code Block
PROC PRINT
Explanation :
Displays the content of the previously created 'try' table to visualize the result of the concatenations.
Copied!
1PROC PRINT;RUN;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.