09-12-2015 11:49 AM - edited 09-12-2015 11:57 AM
are the variables and file names in SAS case sensitive?
data set; set sasdata .chemists; if jobcode = 'Chem2' then description = 'Senior Chemist'; else description = 'Unknown'; run;
A value for the variable JOBCODE is listed below:
the following file downloaded from SAS->help->learn sas programming
proc print data=clinic.stress2;
/* modified file name */
proc print data=clinic.Stress2;
output is same for both print statements
09-12-2015 12:47 PM - edited 09-12-2015 12:48 PM
Keep on experimenting! You will find that file names, library names, variable names and language elements are NOT case sensitive but that operations on string variables (e.g. name = "John") ARE case sensitive. Thus, when you want to make string operations case insensitive, you must take precautions (e.g. upcase(name) = "JOHN").