Search results
The PUT function returns a value using a specified format. You must use an assignment statement to store the value in a variable. The PUT statement writes a value to an external destination (either the SAS log or a destination you specify). Examples. Example 1: Converting Numeric Values to Character Value.
- PUTN Function
The PUT function is faster than PUTN because PUT lets you...
- PTRLONGADD Function
PTRLONGADD Function Returns the pointer address as a...
- INPUTN Function
The DATA step creates a SAS data set from raw data...
- INPUT Function
The value 122591 is assigned to the CHARDATE variable. INPUT...
- INPUTC Function
If the INPUTC function returns a value to a variable that...
- PUTC Function
The PUT function is faster than PUTC because PUT lets you...
- PUT Statement
For example, the following PUT statement uses a pointer...
- PUTN Function
5 dni temu · The INPUT and PUT functions are the functional equivalents of the INPUT and PUT statements. You can use the functions in conjunction with IF-THEN/ELSE statements or other logical statements. A common application of the INPUT function is to convert a text string to a number (including dates and times).
1 maj 2015 · The following examples show how to use these rules to convert from character/numeric or numeric/character: A PUT () converts character variable to another character variable. B PUT () converts numeric variable to a character variable with numeric value.
12 cze 2024 · The PUT function returns a value using a specified format. You must use an assignment statement to store the value in a variable. The PUT statement writes a value to an external destination (either the SAS log or a destination, that you specify).
The PUT function returns a value using a specified format. You must use an assignment statement to store the value in a variable. The PUT statement writes a value to an external destination (either the SAS log or a destination you specify).
The Put function converts from a numeric or character input/variable/target to a character output, applying a format as part of the conversion. The Put function can be applied to a character or numeric input, but the output of the Put function is always character.
16 sty 2017 · The PUT statement enables you to display elements of an array (or multiple variables) by specifying the array name in parentheses, followed by an equal sign in parentheses, as follows: data _null_; array x[5]; do k = 1 to dim(x); x[k] = k **2; end;