10-13-2016 12:27 PM
I have a SAS program that creates data for a program review datashell. For most of our divisions there are full and part time faculty except for 1. I need the report to show that there is no full time faculty, but when this division gets to the bottom of the program it bombs due to the fact that only the part time faculty is showing up. How can I check to see if fullpart has a Full and put full in there?
Here is my code & below is the file that is created:
data fac&i.(keep=term_code crn_key division stvsubj_desc fullpart sfrstca_bill_hr);
by term_code crn_key;
proc summary data=fac&i.(where=(division="&div."));
class stvsubj_desc fullpart;
output out=sfac&i.(where=(_type_ in (0,1,2,3))) sum=cr&i.;
|Computer Aided Design & Draft||2||1||3|
|Computer Aided Design & Draft||Part||3||1||3|
10-13-2016 01:26 PM
Can you provide what this is supposed to look like? It isn't quite clear.
Also it may help to provide some example input data.
One option may be to add the COMPLETYPES option to the Proc statement, provide a format for the FullPart variable with the desired text and then use the PRELOADFMT option on the class statment and use a Format statement to associate the format with the variable for the run.
10-13-2016 01:54 PM