BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
r4321
Pyrite | Level 9
Most cells have a length of 10 ...and will have more depending on how many code groups are in a cell. The data was taken into sas via excel. A database that Im pulling from only spits out in excel files, so it had to be done this way. However, it is weird that it assigns a correct character length to the first substring of '4' when I do the substring command...However, I have to specify the length at 6 if i want to get the next set of 4 numbers.

Thanks for your help.
ballardw
Super User

Here is something to consider when an application "only spits out Excel": Try opening one of the files with a text editor. You might be surprised that a number of applications actually create CSV, tab delimited or XML files but name them with an XLX or XLXS extension so that Excel will be the default application to open them. That might give you more options to deal with the files.

 

 

If you search this forum you'll find folks that are doing that with SAS output creating files in HTML or XML (and other formats) but using file names that end in XLXS to open the results in Excel.

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 connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 16 replies
  • 3994 views
  • 6 likes
  • 3 in conversation