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;

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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