BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I need to read in some data within a data step. If I use $30, then the results are blank. If I just use $ for ds_name, then only the first 8 characters are read. The data is one record per line. What else should I do? I am using SAS8.2

Thanks,
-FD
data test;
input ds_name $30 ;
datalines;
prestudy
qs160009
suppqs160009
qs160012
suppqs160012
qs160014
suppqs160014
qs160016
suppqs160016
qs160018
suppqs160018
qs160019;
run;
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Your use of the INFORMAT $30 is incorrect - it requires a trailing period.

Also, suggest you work to get up to a more current, supported SAS version as soon as possible.

Scott Barry
SBBWorks, Inc.
deleted_user
Not applicable
Thank you for the note. The missing period is the problem. After I used '$30.', it worked!

-FD

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
  • 1132 views
  • 0 likes
  • 2 in conversation