how do you test for missing values? : Sas programming
Answer / Soni Chauhan
"In SAS, you can test for missing values using the MISSING() function. The MISSING() function returns a missing value indicator (.) if its argument is missing, and a non-missing value otherwise."
| Is This Answer Correct ? | 0 Yes | 0 No |
I need help in merging two different datasets. I am merging by date and I want to propagate observations from one dataset to the corresponding dates. One dataset has a unique date for each day of the month, while the other dataset has same date for different patient visits. For example I want to spread an observation on the 31DEC2008 from one dataset to several observations with the same date on a second dataset for all the patients who visited on that date. I have tried to merge the two and the result is not what I wanted. Instead I get a dataset whereby all the dates have missing values where observations from the first datset should have spread.
Can we replace a dataset into view?
Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?
Explain by-group processing?
What are the default statistics that proc means produce?
libname deepak 'C:\SAS Files'; proc format; invalue convert 'A+' = 100 'A' = 96 'A-' = 92 'B+' = 88 'B' = 84 'B-' = 80 'C+' = 76 'C' = 72 'F' = 65; data deepak.grades; input ID $3. Grade convert.; *format Grade convert. ; datalines; 001 A- 002 B+ 003 F 004 C+ 005 A ; proc print data = deepak.grades; run; I get the following output Obs ID Grade 1 001 . 2 002 . 3 003 . 4 004 . 5 005 . I don’t understand why Grade shows up as a missing value. Everything seems fine, including ID $3. Now, in case I use ID : $3. Or use column input, I get the desired output. Kindly help Deepak
how do u identify a macro variable
In ARRAY processing, what does the DIM function do?
What are _numeric_ and _character_ and what do they do?
what is hash files in sas and why we are using this one in sas?
What are the rows present in protocol Violation table?
2 Answers Accenture, Quintiles,
how to import HTML files into SAS datasets?