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

WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

0 Answers   Satyam,


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

3 Answers   Accenture, Quintiles,


How do you add a number to a macro variable?

3 Answers  


what is the difference between x=substr(name,1,2); and substr(name,1,2)='x';

3 Answers   HSBC,


How do handle working under pressure?

1 Answers   Oracle, Wipro,






explain what is factor analysis? : Sas-administrator

0 Answers  


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

0 Answers  


To what type of programms have you used scratch macros?

0 Answers   Novartis,


What type of tables you are using in YOUR reporting..???

2 Answers   GSK GlaxoSmithKline,


how do i read multiple spaces in datasets? eg: vijaya raghava perumal.I tried with using & but it workss if its vijaya raghava but not for raghava perumal.how to do this?

8 Answers   Wipro, Xansa,


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

0 Answers  


Tell e how how dealt with..

0 Answers  


Categories