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 softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
Give some ways by which you can define the variables to produce the summary report (using proc report)?
What is the difference between reading data from an external file and reading data from an existing data set?
Are you sensitive to code walk-throughs peer review or QC review?
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
Have you used macros? For what purpose you have used? : sas-macro
For what purpose would you use the RETAIN statement?
What are the differences between proc means and proc summary?
what are input dataset and output dataset options? : Sas programming
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
Differentiate between format and informat? : sas-grid-administration
what can you learn from the sas log when debugging? : Sas programming
If you were told to create many records from one record, show how you would do this using array and with proc transpose?
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
what is the difference between unique key and primary key? : Sas-di