Why? SAS only retains dataset/table case in SAS log source code. Pretty much everywhere else in SAS they are printed in uppercase. For example in SAS log notes, procedure output and in Enterprise Guide in the Servers List.
On disk, SAS dataset/table filenames are displayed in lowercase regardless of case in SAS programs.
That would lead you to render to a plain text process problem.
data _null_;
infile 'c:\temp\have.sas';
file 'c:\temp\want.sas';
input;
_infile_=prxchange('s/\b(\w+)\s*\.\s*(\w+)\b/\1.\U\2/',-1,_infile_);
put _infile_;
run;
Please share some example code where the text of the name used in the code has any impact on the case of the name used in the SNOWFLAKE database.
The only way to get strange names for tables in Snowflake is to enclose the names in quotes.
create table schema.table as ...
Will make the name of table in the default case that snowflake uses.
But
create table schema."TaBle" as ...
will make the name in mixed case. And once the name is in mixed case you have to always use the quotes when referencing it.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.