firstobs and obs are working only option wise,but we are
using
infile statement with firstobs and obs in a statement wise?
so
firstobs,obs working at options and statemnts or not?

Answer Posted / kattameedi siva

ex1:
data demo;
set sashelp.class(firstobs=1 obs=6);
run;

ex2:
data demo2;
infile dlm="," dsd firstobs=5;(or) we can use obs=5)
input id name$;
cards;
123,ss
124,sss
125,srrt
123,ss3
124,sss2
125,srrt1
;
run;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the difference between ceil and floor functions in sas?

709


how does sas handle missing values in sort order? : Sas programming

536


what is intially documentation in sas?

4335


explain what is data set in sas? : Sas-administrator

528


What is SAS?

621






How do you connect the desktop application to metadata server? : sas-grid-administration

584


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

627


How many ways to overcome a missing values???

2336


What is the use of stop statement?

644


what is sas business intelligence? : Sas-bi

590


name some data transformation used in sas di? : Sas-di

546


for report generation which one you used proc report or data_null_?

6597


for whom is sas data integration studio designed? : Sas-di

556


how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming

842


How does proc sql work?

618