If you have a data set that contains 100 variables, but you
need only five of those, what is the code to force SAS to
use only those variable?

Answer Posted / sandeep reddy

I think we have to use OBS=5
and mention FIRSTOBS=(THE FIRST OBSERVATION FROM WHERE U
WANT)

Is This Answer Correct ?    1 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name types of category in which SAS Informats are placed?

837


What is the difference between using drop = data set option in data statement and set statement?

752


What are the limitations for memory allocation for SAS variables

1022


what do the pad and dim functions do? : Sas programming

656


How would you invoke a macro? : sas-macro

650






What is a pdv and what are its functions?

683


I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry

1420


What is the basic structure of a sas program?

690


Differentiate input and infile.

695


What is the role of administrative users? : sas-grid-administration

750


i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;

2067


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

669


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

1051


Explain the use of proc print and proc contents?

635


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

752