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 / 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 |
if x=round(26.3,10)-1 then x= how much and how explain?
what is the difference between infile and input? : Sas-administrator
What report output formats can you generate using SAS?
where are dashboard components are created and maintained? : Sas-bi
Can you calculate the mean, median and mode of the following data set using data step logic? Don't use any function or procedure. data a; input age @@; datalines; 22 32 32 32 43 23 24 56 45 54 28 29 27 26 25 28 30 20 18 37 36 47 46 56 19 20 ; run; I have calculated the mean which i have posted in the answer section.
Do you need to combine data sets? How should you combine data sets– MERGE or SET statements in DATA steps,PROC APPEND,PROC SQL?
When looking for data contained in a character string of 150 bytes, which function is the best to locate that data: scan, index, or indexc?
If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable?
Name statements that function at both compile and execution time?
what is the difference between floor and ceil functions in sas? : Sas-administrator
WHAT IS DEBUGGING? HOW TO TEST THE DEBUGGING IN SAS?
what is sas metadata server? : Sas-di