What is LOGICAL VARIABLES in SAS.And how it can be used..Can
anyone support..???
Answers were Sorted based on User's Feedback
Answer / sangeeta
Fitst. and Last. varibles used in data step are called
Logical Variables.
| Is This Answer Correct ? | 26 Yes | 3 No |
Answer / nagaraju
Fitst. and Last. varibles are logical variables and returns
1 & 0 values.
These are mailnly used to give the first and last
occurances from the table.
ex: employee table having (1-100 employees) -- uses
if we give first.empid=1 then it gives only first employee
details
if we give first.empid=0 then it gives remaining employee
details except first one
in the same way
if we give last.empid=1 then it gives last employee details
if we give last.empid=0 then it gives remaining employee
details except last one
hope this is clear
| Is This Answer Correct ? | 22 Yes | 3 No |
Answer / xxx
Yes I agree with the above answers,
first.obs and last.obs are also specifies the occurrence of the data. If we mention like
first.obs=1 and last.obs=1;
it will eliminate the duplicates also.
| Is This Answer Correct ? | 7 Yes | 0 No |
what is incremental update ? is this possible in SAS OLAP CUBE STUDIO.
what is the use of proc sql? : Sas programming
Explain the use of proc gplot? : sas-grid-administration
What are the difference between ceil and floor functions in sas?
What is the length assigned to the target variable by the scan function?
what is null hypothesis? why do you consider that?
0 Answers Accenture, Quintiles,
How to display duplicate observations in data?
What is the pound sign used for in the data_null_ ?
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
Identify statements whose placement in the DATA step is critical?
Explain what is SAS informats?
what is the difference between %put and symbolgen?