BookmarkSubscribeRSS Feed
librasonali
Quartz | Level 8

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
   
3 REPLIES 3
Kurt_Bremser
Super User

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.

librasonali
Quartz | Level 8
thank you for always helping 🙂
i solved the issue. i was thinking some effective way but i just used as simply.

Rick_SAS
SAS Super FREQ

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;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 987 views
  • 2 likes
  • 3 in conversation