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
what is function of retain statment
Explain what is SAS informats?
what is program data vector? : Sas-administrator
what is ae onset date n what is RDS
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
In sas, what are the areas that you are most interested in? : sas-grid-administration
what is SAS OPTIMIZATION?
What are the five ways to do a table lookup in sas? : sas-grid-administration
What is the general format of function in sas? : sas-grid-administration
Tell e how how dealt with..
What is the difference between proportion and average?
how to do user inputs and command line arguments in sas?
What are symget and symput? : sas-macro
Describe a time when you were really stuck on a problem and how you solved it?
What is the use of function Proc summary?