In SAS how to read the variable values having different
eg:mar99,mar1999 (in a single variable)
Answers were Sorted based on User's Feedback
Answer / sankar
input name$ s anydtdte9.;
proc print data=ss;
format s date9.;
|Is This Answer Correct ?||13 Yes||2 No|
Answer / poornima
To read the data with mar99 and mar1999, we use eurdfmyw.
This informat is used to read the data with only month and
input n date eurdfmy7.;
format date eurdfmy7.;
proc print data=m;
|Is This Answer Correct ?||10 Yes||3 No|
Answer / ok
In SAS v9 you can try the ANYDTDTEw. Informat
|Is This Answer Correct ?||7 Yes||1 No|
Answer / chiranjeevi
input name$ dob monyy7.;
proc print data=code;
format dob monyy7.;
|Is This Answer Correct ?||6 Yes||0 No|
Answer / shaik
input n date monyy7.;
format date monyy7.;
we will get output;
|Is This Answer Correct ?||4 Yes||1 No|
Answer / vijay
for the informats/formats in the question i.e. DATEw.
ones.. we can use the above 2 informats
if the data is in MMDDYYYYw. fashion use EURDFDTw.
|Is This Answer Correct ?||3 Yes||2 No|
Answer / svm
For Date Time check here,
|Is This Answer Correct ?||1 Yes||0 No|
Answer / ravi_kumar
|Is This Answer Correct ?||0 Yes||1 No|
Mention what is SAS data set?
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.
Which function is used to count the number of intervals between two sas dates?
What are the analysis datasets created, and what are the new variables created in CLINICAL SAS
diff between nodup rec and ondup key???
do you need to know if there are any missing values? : Sas programming
Name validation tools used in SAS
How to do user inputs and command line arguments in SAS? D&B
what is null hypothesis? why do you consider that?
Explain the message 'Merge has one or more datasets with repeats of by variables'.
How do you download a flat file from Mainframe to your local PC using SAS?
What is the difference between verification and validation?