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;
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.