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 SAS log messages "numeric values have been converted to character" mean?
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
what has been your most common programming mistake? : Sas programming
Why and when do you use proc sql?
explain the use of % includes a statement in sas? : Sas-administrator
How do you test for missing values?
How we can create SAS USER DEFINED CODE?
What is the role of unrestrictive users? : sas-grid-administration
explain what is factor analysis? : Sas-administrator
If you were told to create many records from one record, show how you would do this using array and with proc transpose?
Tell e how how dealt with..
What are the different versions of sas that you have used until now? : sas-grid-administration
how do you want missing values handled? : Sas programming
State the difference between INFORMAT and FORMAT ?
what is metadata? : Sas-bi