BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
rk7
Obsidian | Level 7 rk7
Obsidian | Level 7

HI, can anyone post link of sas input options

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Input function or input statement?

And it varies...

 

Also, it's in the documentation.

 

Assuming the INPUT statement, see the link below:

 

 

http://documentation.sas.com/?docsetId=lestmtsref&docsetTarget=n0oaql83drile0n141pdacojq97s.htm&docs...

 

Make sure to check the bottom, where it has See Also section. There's several other entries depending on how you're using the INPUT statement. 

View solution in original post

6 REPLIES 6
Reeza
Super User

Input function or input statement?

And it varies...

 

Also, it's in the documentation.

 

Assuming the INPUT statement, see the link below:

 

 

http://documentation.sas.com/?docsetId=lestmtsref&docsetTarget=n0oaql83drile0n141pdacojq97s.htm&docs...

 

Make sure to check the bottom, where it has See Also section. There's several other entries depending on how you're using the INPUT statement. 

rk7
Obsidian | Level 7 rk7
Obsidian | Level 7

* Using appropriate input option and create a SAS data set named 'EXAMPLE95' using the following data

00134168                          1
00245155                          1
003             23     220        2
00467180                          1
005             35    190         2

* Output is like this
Obs TYPE ID AGE WEIGHT
1       1       1    34        168
2       1       2    45        155
3       2       3    23         220
4       1       4    67        180
5       2       5    35        190

art297
Opal | Level 21

You've already marked this thread as solved. If you want an answer to your question, post it as a new thread.

 

rk7
Obsidian | Level 7 rk7
Obsidian | Level 7

sure

art297
Opal | Level 21

You have to be more specific. Are you asking about the input statement, the data statement, the infile statement, the set statement, or something else?

 

Art, CEO, AnalystFinder.com

 

ballardw
Super User

@art297 wrote:

You have to be more specific. Are you asking about the input statement, the data statement, the infile statement, the set statement, or something else?

 

Art, CEO, AnalystFinder.com

 


Or direct manual data entry into a table; how to import data from external data files; capture streams of instrument data ...

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 6 replies
  • 1370 views
  • 0 likes
  • 4 in conversation