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...
- Solved: PUT FUNCTION
If you have a character variable with spaces: var=strip...
- PUTN Function
1 maj 2015 · A PUT() converts character variable to another character variable. B PUT() converts numeric variable to a character variable with numeric value. C PUT() converts character variable with a user defined format to another character variable.
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.));
5 dni temu · Examples of the PUT function. Because the PUT function applies a format, it is obvious that the argument to the PUT function can be any data type, but the result will be a character value. Applying a format always results in text! For example, the number 67.8 can be converted to the text string "$67.80" by applying the DOLLAR8. format.
5 wrz 2024 · Use the PUT function to convert a numeric value to a character value. The PUT function has no effect on which formats are used in PUT statements or which formats are assigned to variables in data sets. You cannot use the PUT function to directly change the type of variable in a data set from numeric to character.
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).
10 kwi 2012 · %PUT can write text strings only (including the values of macro variables), NEVER the contents of a DATA step. You might utilize other tools such as CALL SYMPUT to transfer information from a DATA step to a macro variable.