I am relatively new to SAS, and was hoping someone could help me.
I have the following variables--Name, Test, and Result in a spreadsheet that looks similar to this:
Name Test Result
John Doe Math Exam Pass
John Doe English Exam
John Doe History Exam
The results for English Exam and History Exam are blank. I need them to say "Pass" as well. If any of John's test results say "Pass", then any test that has a blank result must also say "Pass". The same applies if one of his test results were to say "Fail".
The spreadsheet has a list of different names with many tests and results, and each name is listed several times for each test. The results for each exam will should all be made the same for each person.
Can someone please give me an example of the SAS code I need to use to fill on the blanks on the spreadsheet? Thanks so much.
I have the following variables--Name, Test, and Result in a spreadsheet that looks similar to this:
Name Test Result
John Doe Math Exam Pass
John Doe English Exam
John Doe History Exam
The results for English Exam and History Exam are blank. I need them to say "Pass" as well. If any of John's test results say "Pass", then any test that has a blank result must also say "Pass". The same applies if one of his test results were to say "Fail".
The spreadsheet has a list of different names with many tests and results, and each name is listed several times for each test. The results for each exam will should all be made the same for each person.
Can someone please give me an example of the SAS code I need to use to fill on the blanks on the spreadsheet? Thanks so much.