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?



firstobs and obs are working only option wise,but we are using infile statement with firstobs an..

Answer / 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

More SAS Interview Questions

is there any difference between proc summary and proc means?

3 Answers  


Which function is used to count the number of intervals between two sas dates?

0 Answers  


explain about sas business intelligence? : Sas-bi

0 Answers  


data jagan1.s; input bp$; cards; 100/90 120/89 112/87 run; in the above code how to convert character data values to numeric data values?

3 Answers  


what is in stream data in SAS?

1 Answers  






how to delete the duplicates by using proc sql?

3 Answers   Genpact,


What does the RUN statement do?

0 Answers   Quintiles,


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

0 Answers   CTS,


Describe crosslist option in tables statement?

0 Answers  


what other sas products have you used and consider yourself proficient in using? : Sas programming

0 Answers  


how can you import .csv file in to sas? : Sas programming

0 Answers  


Does anybody have SAS Training manual or documentation or can you refer me any book to have better understanding on SAS. I am fresher to SAS tool. (Ready to pay)

4 Answers  


Categories