Proc Contents Syntax, points to remember

by | Mar 27, 2021 | SAS | 0 comments

Basic Syntax is:-

proc contents data=libref.filename <options>


CENTILES Print centiles information for indexed variables

DATA= Specify the input data set

DETAILS|NODETAILS Include information in the output about the number of observations, number of variables, and
data set labels

DIRECTORY Print a list of the SAS files in the SAS data library

FMTLEN Print the length of a variable's informat or format

MEMTYPE= Restrict processing to one or more types of SAS file

NODS Suppress the printing of individual files

NOPRINT Suppress the printing of the output

OUT= Specify the output data set

OUT2= Specify an output data set that contains information about constraints

SHORT Print abbreviated output

VARNUM Print a list of the variables by their logical position in the data set

proc contents data=mylib.myfile details;

Join Today

Know more about latest trends, News in Field of Data Analytics.

We will offer Free SAS and Python Programme in Data Science & enhance your understanding of data analysis.

By rlochan2021

We offer Everything Free here and always will be, so joining is Risk Free and Always Cost Free.

Check Out These Related Posts

Topics on SAS Arrays

1.what is the syntax of SAS Array? array array-name {n} <$> array-elements <(initial-values)>; The ARRAY statement is a compiler statement within the data step. In addition, the array elements cannot be used in compiler statements such as DROP or KEEP. I Array Q...

read more

SAS Proc Report Tutorials:- Sample Code

First immerse yourself in learning the Basic options of Proc Report because there are too many and you may get overwhelmed. A Sample Code for you:- proc sql; create table newbaseball as SELECT ‘Name’n as Team, nAtBat , nHits , nHome , nRuns , nRBI , nBB , YrMajor , CrAtBat , CrHits , CrHome […]

read more

SAS SMC (SAS Management Console) Interview Questions

Be assured if you are appearing for SAS based Job of any kind be it Programmer, Analyst, or SAS VA Developer, you may come across question related to SAS Management Console. 1.How to use SAS Management Console to create SAS folders and SAS libraries and to register tables. 2.How to register tables with SAS Visual […]

read more



Submit a Comment

Your email address will not be published. Required fields are marked *