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
: and & modifiers.
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?
What is the difference between nodupkey and nodup options?
What is substr function?
what is the function of catx syntax? : Sas-administrator
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
How will you generate test data with no input data?
How would you define the end of a macro?
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro
WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?
Mention the difference between ceil and floor functions in sas?
How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?
Explain what Proc glm does?
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming
What do you know about symput and symget?