In this SAS How To Tutorial, Anna Yarbrough addresses one of the most commonly addressed topics in the SAS community; how to convert character to numeric in SAS. SAS supports two variable types only: char and num. If you read a value from another source that looks like character data, like a formatted date or currency, but you want to retain ability to "do math," you must convert.
This SAS tutorial covers SAS character functions, including the INPUT function, and informats to tell SAS how to read your value properly and retain integrity of the value. In addition to showing how to convert character to numeric, Anna covers how to go the other direction when you need to convert numeric to character in SAS.
Chapters
0:00 - Convert character to numeric in SAS
4:22 - Convert numeric to character in SAS
Download data files - github.com/sascommunities/sas...
Additional resource
◉ SAS® 9.4 Formats and Informats: Reference - go.documentation.sas.com/?doc...
Learn more about SAS Software
◉ SAS Programming Community - communities.sas.com/t5/SAS-Pr...
◉ Learn How to Use SAS - www.sas.com/en_us/learn.html
◉ The Little SAS Book: A Primer, Fifth Edition - www.sas.com/store/books/categ...
◉ SAS Programming 2 course - support.sas.com/edu/schedules...
SUBSCRIBE TO THE SAS USERS RU-vid CHANNEL #SASUsers #LearnSAS
ru-vid.com?sub_...
ABOUT SAS
SAS is a trusted analytics powerhouse for organizations seeking immediate value from their data. A deep bench of analytics solutions and broad industry knowledge keep our customers coming back and feeling confident. With SAS®, you can discover insights from your data and make sense of it all. Identify what’s working and fix what isn’t. Make more intelligent decisions. And drive relevant change.
CONNECT WITH SAS
SAS ► www.sas.com
SAS Customer Support ► support.sas.com
SAS Communities ► communities.sas.com
SAS Analytics Explorers ► explorers.sas.com
Facebook ► / sassoftware
Twitter ► / sassoftware
LinkedIn ► / sas
Blogs ► blogs.sas.com
RSS ► www.sas.com/rss
2 июл 2024