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
Why double trailing @@ is used in input statement?
What are the default statistics for means procedure?
How substr function works in sas?
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
what is treatment emergent events and treatment emregent adverse event
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
Mention what is the difference between nodupkey and nodup options?
Difference between sum function and using “+” operator?
What is Linear Regression?
Are you involved in writing the inferential analysis plan? Tables specifications?
Where do you use proc means over proc freq?
what is factor analysis? : Sas-administrator
Mention the validation tools used in SAS?
How to read an input file in sas?
what is the purpose of _error_? : Sas programming