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 the use of proc glm

1 Answers   Accenture, C Marc,


Why is SAS considered self-documenting?

1 Answers   Quintiles,


Can Some one Explain How the Datasets from SAS can be loaded in to the MVS OS?

1 Answers   HCL,


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

0 Answers  


What do you feel about hardcoding?

3 Answers   Pfizer,






how does sas handle missing values in formats? : Sas programming

0 Answers  


To what type of programms have you used scratch macros?

0 Answers   Novartis,


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

0 Answers  


How to write duplicate records into a separate dataset using sort?

4 Answers   HSBC,


How to convert a numeric variable to a character variable?

0 Answers  


what type of graphs we will create(for 2+years candidates)?

0 Answers   Accenture, Icon,


In SAS how to read the variable values having different formats. eg:mar99,mar1999 (in a single variable)

8 Answers   GSK GlaxoSmithKline,


Categories