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
How to convert a numeric variable to a character variable?
Which date function advances a date, time or datetime value by a given interval?
Do you need to know if there are any missing values?
How many data types are there in SAS?
Of all your work, where have you been the most successful?
What are types of transport files?
Differentiate between proc means and proc summary.
what is metadata? : Sas-bi
Mention how to limit decimal places for the variable using proc means?
If a variable contains letters or special characters, can it be numeric data type?
what is sas business intelligence? : Sas-bi
What system options would you use to help debug a macro? : sas-macro
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
how do the in= variables improve the capability of a merge? : Sas programming
Name some categories in sas 9? : sas-grid-administration