BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
tianerhu
Pyrite | Level 9

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 ? 

 
1 ACCEPTED SOLUTION

Accepted Solutions
r_behata
Barite | Level 11

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)	 	 

View solution in original post

4 REPLIES 4
ballardw
Super User

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.

tianerhu
Pyrite | Level 9

Thank you for your help.I just want to make sure. Because the answer is different .

r_behata
Barite | Level 11

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)	 	 
tianerhu
Pyrite | Level 9

Thank you for your help.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 4 replies
  • 819 views
  • 2 likes
  • 3 in conversation