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
What are the difference between ceil and floor functions in sas?
how does sas handle missing values in sort order? : Sas programming
what is intially documentation in sas?
explain what is data set in sas? : Sas-administrator
What is SAS?
How do you connect the desktop application to metadata server? : sas-grid-administration
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming
How many ways to overcome a missing values???
What is the use of stop statement?
what is sas business intelligence? : Sas-bi
name some data transformation used in sas di? : Sas-di
for report generation which one you used proc report or data_null_?
for whom is sas data integration studio designed? : Sas-di
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
How does proc sql work?