HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

SAS Tutorial | How to convert character to numeric in SAS

61,565 views October 29, 2019 9:06

Watch on YouTube
ChannelSAS Users

Description from the creator

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-howto-tutorials/t…

Additional resource
◉ SAS 9.4 Formats and Informats: Reference – go.documentation.sas.com/?docsetId=leforinforre…

Learn more about SAS Software
◉ SAS Programming Community – communities.sas.com/t5/SAS-Programming/bd-p/pro…
◉ Learn How to Use SAS – sas.com/en_us/learn.html
◉ The Little SAS Book: A Primer, Sixth Edition – redshelf.com/app/ecom/book/1830656/the-little-s…
◉ SAS Programming 2 course – learn.sas.com/course/view.php?id=235


SUBSCRIBE TO THE SAS USERS YOUTUBE CHANNEL #SASUsers #LearnSAS
youtube.com/SASUsers?sub_confirmation=1

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 ► sas.com
SAS Customer Support ► support.sas.com
SAS Communities ► communities.sas.com
SAS Analytics Explorers ► explorers.sas.com
Facebook ► facebook.com/SASsoftware
Twitter ► twitter.com/SASsoftware
LinkedIn ► linkedin.com/company/sas
Blogs ► blogs.sas.com
RSS ► sas.com/rss

About this tutorial

SAS Users published this 9:06 video tutorial on October 29, 2019. It has been watched 61,565 times on YouTube.

Channel
SAS Users
Duration
9:06
Published
October 29, 2019
Views
61,565
Likes
533

Tags

Share

This tutorial in other languages