05-15-2015 04:43 AM
I am trying to change a date which is held in a string and of the format 01 DEC 2012 to a SAS date. Is this easy to do?
Also, I have a character field holding number which I would like to convert to number formats. i.e. 1,769 as a character field of length 10.
05-15-2015 04:50 AM
Yes, input reads text and converts to numeric (dates and times are actually numbers), put does the reverse so:
05-15-2015 04:57 AM
Thanks rw9, that works for the dates. In the case of a the number it's not working. My number is currently a string of the form:
and so on. It's working for the numbers with commas but not the other ones.
05-15-2015 05:08 AM
Ah, you need to use the comma format then:
All formats can be found in the online help: