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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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