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).
- 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
Tip: If numeric-variable is not an integer, SAS truncates...
- 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).
26 kwi 2017 · If you have a character variable with spaces: var=strip (var); Will remove all spaces. If you have a numeric variable and you want a character variable, then you need to put it first into a new variable: newvar=strip (put (var,best.));
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).
4 lis 2018 · a type of SAS language element that is used to write or display data values according to the data type: numeric, character, date, time, or timestamp. Example: Using the PUT Function You can use the PUT function with the PRINT statement to format your value.