BookmarkSubscribeRSS Feed
Candice_
Calcite | Level 5

How many types of data can be imported directly into SAS?

2 REPLIES 2
Shmuel
Garnet | Level 18

SAS uses two types only - CHAR type and NUM type

CHAR is any alphanumeric string.number, 

NUM type is held as floating point even integers.

 

INFORMAT defines how to read and interpret the data, and which type to assign to the variable.

FORMAT defines how to display the variable: its total length, date/datetime/time format or how many decimal digits to show, adding the $ or % signs and other more customed formats defined by FORMAT -  PICTURE.

 

Kurt_Bremser
Super User

If you are talking about file formats:

  • anything in text, with more or less programming effort; includes XML
  • Excel workbooks
  • most available database systems through SAS/ACCESS modules
  • anything via ODBC

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 726 views
  • 0 likes
  • 3 in conversation