Friday, 21 March 2014

SAS_PermanentDataSet

Q)How to view data and descriptor portion of SAS dataset?
A SAS data set consists of two parts: a descriptor portion and a data portion.
To examine the descriptor portion of a SAS data set use PROC CONTENTS.
To view the Data Portion of a SAS Data set use PROC PRINT.

Q)What is the use of VARNUM option in proc contents?
VARNUM option list the variables in the order the variables are stored in the SAS data set,rather than alphabetically.
title "The Descriptor Portion of Data Set TEST_SCORES";
proc contents data=Mozart.test_scores varnum;
run;

Q)How to List all the SAS Data Sets in a SAS?
Library Using PROC CONTENTS
title "Listing All the SAS Data Sets in a Library";
proc contents data=Mozart._all_ nods;
run;

 

 

No comments:

Post a Comment