the question ask for the value of the encoding and label about sashelp.Cars ?
The answer :
encoding is 'us-ascii ASCII (ANSI)'
label is '2004 Car Data'
Is the answer correct ?
Running a proc contents on the dataset will reveal the answer for you.
Data Set Name SASHELP.CARS Observations 428 Member Type DATA Variables 15 Engine V9 Indexes 0 Created 10/24/2018 21:22:18 Observation Length 152 Last Modified 10/24/2018 21:22:18 Deleted Observations 0 Protection Compressed NO Data Set Type Sorted YES Label 2004 Car Data Data Representation SOLARIS_X86_64, LINUX_X86_64, ALPHA_TRU64, LINUX_IA64 Encoding us-ascii ASCII (ANSI)
What question?
Runt this code:
Proc contents data=sashelp.cars; run;
It will describe properties of the data set, such as data set label and encoding, as well as minor things like physical file name, file size, when it was created, which version of SAS created the set, how many variables, how many observations, names of variables, label of variables, formats of variables, column order of the variables in the data set and more.
Thank you for your help.I just want to make sure. Because the answer is different .
Running a proc contents on the dataset will reveal the answer for you.
Data Set Name SASHELP.CARS Observations 428 Member Type DATA Variables 15 Engine V9 Indexes 0 Created 10/24/2018 21:22:18 Observation Length 152 Last Modified 10/24/2018 21:22:18 Deleted Observations 0 Protection Compressed NO Data Set Type Sorted YES Label 2004 Car Data Data Representation SOLARIS_X86_64, LINUX_X86_64, ALPHA_TRU64, LINUX_IA64 Encoding us-ascii ASCII (ANSI)
Thank you for your help.
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.