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 |
How is character variable converted into numeric variable and vice versa?
how can u import .csv file in to SAS?tell Syntax?
7 Answers CitiGroup, Franklin Templeton,
How will you assign all the variables of an dataset into a macro variable separated by a space? For example if a dataset has variables A,B,C. Assign them to a macro variable X as X=A B C
How to convert a numeric variable to a character variable?
what is the diff. b/w proc means and proc summary?
What is LAG function?How is it used? can any one explain
3 Answers TRE, Verinon Technology Solutions,
What is Tabulate.?Why we use it.? Which type of output we get from Tabulate.?
What are the analysis datasets created, and what are the new variables created in CLINICAL SAS
1 Answers Accenture, Sciformix,
How to include or exclude specific variables in a data set?
What statement do you code to tell SAS that it is to write to an external file? What statement do you code to write the record to the file?
what are all the reports you generated in your recent project?
0 Answers Accenture, Quintiles,
What other SAS features do you use for error trapping and data validation?