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 makes sas stand out to be the best over other data analytics tools?
What is the SAS data set?
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
Explain the use of proc gplot? : sas-grid-administration
What does P-value signify about the statistical data?
Differentiate between ceil and floor functions.
What is slibref?
how does sas handle missing values in formats? : Sas programming
how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming
Describe the ways in which you can create macro variables? : sas-macro
explain the key concept of sas? : Sas-administrator
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
explain the use of % includes a statement in sas? : Sas-administrator
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
how will you location sas platform applications available from web browser? : Sas-bi