What is LOGICAL VARIABLES in SAS.And how it can be used..Can
anyone support..???
Answer Posted / 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 |
Post New Answer View All Answers
Tell me more about the parameters in macro? : sas-macro
Give e an example of..
How can sas program be validated?
Give e an example of..
Where do you use proc means over proc freq?
Mention how to limit decimal places for the variable using proc means?
what is hierarchy flattening? : Sas-di
what is sas database server? : Sas-di
What are the difficulties u faced while doing vital signs table or dataset?
Explain why double trailing @@ is used in input statement?
What is a put statement?
what is change analysis in sas di ? : Sas-di
Which date function advances a date, time or datetime value by a given interval?
How do you delete duplicate observations in sas?
how do you pull data from equifax?tell me the process?