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.
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;
Please have a look at this forum post. It has a solution for problems like this
https://communities.sas.com/t5/SAS-Data-Management/Table-names-longer-than-32-character-using-ODBC/t...
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.