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
16 maj 2021 · The error message indicates that the PUT function call is trying to apply a numeric format (25. ) to a character argument ( cssid) . When testing for missing values, it’s better to use syntax that doesn’t require you to detect and/or convert argument data types.
1 maj 2015 · The source variable type for INPUT () must always be character variables. 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.
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).
27 lis 2019 · SUBSTR is datastep function. Try to use it into macro function: %let sth = 20191111; %let sthelse=%sysfunc(SUBSTR(%sysfunc(INPUTn(&sth.,12.)),1,4)); %put &sthelse.;
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.
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).