I'm trying to incorporate a retain statement in a data step to display the data a certain way. Below is what the output looks like now:
0715954 --person_id_nb
CHE-120 TR 8:00:00 AM - 9:50:00 AM
**********
0715954
CHE-126 R 10:00:00 AM - 12:15:00 PM
**********
Need it to look like this:
0715954
CHE-120 TR 8:00:00 AM - 9:50:00 AM
CHE-126 R 10:00:00 AM - 12:15:00 PM
**********
Here is the data step that I'm using:
Data _null_;
set work.stud_courses;
*FILE MAX_File;
retain person_id_nb;
format Start_tm timeampm.;
format End_tm timeampm.;
Line1=person_id_nb;
Line2=trim(course_nm) || ' ' || trim(Dayofweek) || '' || put(Start_tm,timeampm.) || ' - ' || put (End_tm,timeampm.);
header_record='**********';
put Line1;
put Line2;
put header_record;
run;