hi ,
i have one final dataset "member" which is creating a flatfile xyz.csv
now i have few of the fields in xyz.csv of different case i want them to be all in same case as my previous flat file.
expected | current |
Partner_ID | Partner_ID |
CUST_SEG | cust_seg |
SBSCR_SSN | sbscr_ssn |
depn_nbr | DEPN_NBR |
first_name | FIRST_NAME |
last_name | LAST_NAME |
pat_dob | pat_dob |
In which step do you define the names in your SAS dataset?
And how do you create the flat file?
Please supply the respective codes, especially the one for the export.
These look like variable names. I want to point out that SAS is case-insensitive to names, so that
first_name, FIRST_NAME, First_Name, and FiRsT_NaMe all represent the same variable.
I don't know why you want to change the case of the names, but perhaps it is so that printed output looks nicer. In that case, consider using the LABEL statement to add labels for the variables. For example,
data have;
label first = "First Name"
last = "Last Name";
first = 1;
last = 10;
run;
proc print data=Have label;
run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.