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
explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di
What are the uses of sas?
What is the difference between SAS functions and procedures?
Enlist the syntax rules followed in sas statements.
What are SAS/ACCESS and SAS/CONNECT?
What are the limitations for memory allocation for SAS variables
what is the effect of the options statement errors=1? : Sas programming
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
Explain the difference between nodup and nodupkey options?
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
Explain why double trailing @@ is used in input statement?
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
What is the role of unrestrictive users? : sas-grid-administration
what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming