[…] 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). You can use the PUT function to create a new variable that recodes an existing variable, although I strongly suggest using a FORMAT statement to recode values. …