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


Please Help Members By Posting Answers For Below Questions

How to convert a numeric variable to a character variable?

721


Which date function advances a date, time or datetime value by a given interval?

763


Do you need to know if there are any missing values?

687


How many data types are there in SAS?

727


Of all your work, where have you been the most successful?

4303






What are types of transport files?

7158


Differentiate between proc means and proc summary.

690


what is metadata? : Sas-bi

689


Mention how to limit decimal places for the variable using proc means?

737


If a variable contains letters or special characters, can it be numeric data type?

879


what is sas business intelligence? : Sas-bi

677


What system options would you use to help debug a macro? : sas-macro

738


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

677


how do the in= variables improve the capability of a merge? : Sas programming

1046


Name some categories in sas 9? : sas-grid-administration

634