SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
mstjean
Fluorite | Level 6

Hi all,

 

I've encountered the following error "ERROR 307-185: The data set name cannot have more than 32 bytes."

Unfortunately given that I am setting a data set stored in an ODBC database server, I cannot shortened the name of this dataset. Is there anything I can do to load this data without remaining it?

 

Many thanks.

3 REPLIES 3
Tom
Super User Tom
Super User

Use pass thru SQL.

So if you have a libname defined:

libname mylib odbc ..... ;

You can use that to run SQL in the remote database.

proc sql;
connect using mylib;
create table shortname as
select * from connection to mylib
( select * from my_really_long_unreadable_and_unusable_name
);
quit;
Ksharp
Super User
Or ask DBA create a VIEW with short name for that table . But Tom 's idea is great one.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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
  • 3 replies
  • 6105 views
  • 2 likes
  • 4 in conversation