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 do the mod and int function do? : Sas programming
How to create list output for cross-tabulations in proc freq?
What does P-value signify about the statistical data?
explain the difference between proc means and proc summary?
which features do you use to check the data validations and errors? : Sas-administrator
What do you code to create a macro? : sas-macro
explain the key concept of sas? : Sas-administrator
How can you create a macro variable with in data step? : sas-macro
What is by-group processing?
What is the purpose of trailing @ and @@? How do you use them?
What is the role of unrestrictive users? : sas-grid-administration
how can you create zero observation dataset? : Sas programming
What is the use of the %include statement?
how to do user inputs and command line arguments in sas?
Explain data_null_?