What is LOGICAL VARIABLES in SAS.And how it can be used..Can
anyone support..???
Answers were Sorted based on User's Feedback
Answer / sangeeta
Fitst. and Last. varibles used in data step are called
Logical Variables.
| Is This Answer Correct ? | 26 Yes | 3 No |
Answer / 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 |
Answer / xxx
Yes I agree with the above answers,
first.obs and last.obs are also specifies the occurrence of the data. If we mention like
first.obs=1 and last.obs=1;
it will eliminate the duplicates also.
| Is This Answer Correct ? | 7 Yes | 0 No |
what is program data vector? : Sas-administrator
What is LOGICAL VARIABLES in SAS.And how it can be used..Can anyone support..???
Are you involved in writing the inferential analysis plan? Tables specfications?
what is option year cuttoff in sas
What is the difference between reading data from an external file and reading data from an existing data set?
What is the difference between input and infile statement?
How to get second top scorer student from a class- table having different sections A, B, C & D? each section has same number of student.
What is SAS? is it a software just for use or we can creat something over there?
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
How will you generate test data with no input data?
Explain by-group processing?
What are _numeric_ and _character_ and what do they do?