Good day
I have a long list of variables (22) variable to output on a single page(fit a page) using a proc report. it has been difficult so i opted to divide the listing into 2 parts but retain ID and visit throughout.
Please assist on how i can do this. see below the data:
NUM,ENROLL_DT,IEDAT,DSDAT,DSSTDAT,FASMEDDT,FASOCDT,WEEK0DT,WEEK6DT,WEEK8DT,WEEK16DT,WEEK18DT,WEEK30DT,WEEK32DT,WEEK54DT,WEEK56DT,_page,usubjid1,visit,rand,saffl,cnt
6,16AUG2018,16AUG2018,11SEP2019,16AUG2018,16AUG2018,25MAR2019,16AUG2018,27SEP2018,,,28DEC2018,25MAR2019,,11SEP2019,,1,01,16,Y,Y,1
8,17AUG2018,17AUG2018,18OCT2019,17AUG2018,17AUG2018,23APR2019,17AUG2018,,30OCT2018,28DEC2018,,,23APR2019,,18OCT2019,1,02,16,Y,Y,2
6,20AUG2018,20AUG2018,12SEP2019,20AUG2018,20AUG2018,18MAR2019,20AUG2018,01OCT2018,,,24DEC2018,18MAR2019,,12SEP2019,,1,03,16,Y,Y,3
8,20AUG2018,20AUG2018,12SEP2019,20AUG2018,20AUG2018,26MAR2019,20AUG2018,,15OCT2018,10DEC2018,,26MAR2019,,12SEP2019,,1,04,16,Y,Y,4
8,20AUG2018,20AUG2018,12MAR2019,20AUG2018,20AUG2018,12MAR2019,20AUG2018,,05NOV2018,,,12MAR2019,,,,1,05,16,Y,Y,5
6,20AUG2018,20AUG2018,20SEP2019,20AUG2018,20AUG2018,08MAR2019,20AUG2018,02OCT2018,,,,08MAR2019,,20SEP2019,,1,06,16,Y,Y,6
8,21AUG2018,21AUG2018,03OCT2019,21AUG2018,21AUG2018,02APR2019,21AUG2018,,16OCT2018,11DEC2018,,,02APR2019,,03OCT2019,1,07,16,Y,Y,7
8,21AUG2018,21AUG2018,17SEP2019,21AUG2018,21AUG2018,02APR2019,21AUG2018,,16OCT2018,11DEC2018,,,02APR2019,,17SEP2019,1,08,16,Y,Y,8
8,21AUG2018,21AUG2018,30JAN2019,21AUG2018,21AUG2018,,21AUG2018,,02NOV2018,02JAN2019,,,,,,1,09,16,Y,Y,9
6,21AUG2018,21AUG2018,05APR2019,21AUG2018,21AUG2018,05APR2019,21AUG2018,31OCT2018,,,,05APR2019,,,,1,10,16,Y,Y,10
8,21AUG2018,21AUG2018,01OCT2019,21AUG2018,21AUG2018,09APR2019,21AUG2018,,16OCT2018,11DEC2018,,,09APR2019,,01OCT2019,1,11,16,Y,Y,11
6,21AUG2018,21AUG2018,03SEP2019,21AUG2018,21AUG2018,19MAR2019,21AUG2018,03OCT2018,,,24DEC2018,19MAR2019,,03SEP2019,,1,12,16,Y,Y,12
6,22AUG2018,22AUG2018,04SEP2019,22AUG2018,22AUG2018,20MAR2019,22AUG2018,03OCT2018,,,28DEC2018,20MAR2019,,04SEP2019,,1,13,16,Y,Y,13
6,22AUG2018,22AUG2018,20SEP2019,22AUG2018,22AUG2018,22MAR2019,22AUG2018,03OCT2018,,,27DEC2018,22MAR2019,,20SEP2019,,1,14,16,Y,Y,14
8,22AUG2018,22AUG2018,18SEP2019,22AUG2018,22AUG2018,03APR2019,22AUG2018,,17OCT2018,12DEC2018,,,03APR2019,,18SEP2019,1,15,16,Y,Y,15
8,23AUG2018,23AUG2018,26SEP2019,23AUG2018,23AUG2018,11APR2019,23AUG2018,,22OCT2018,20DEC2018,,,11APR2019,,26SEP2019,1,16,16,Y,Y,16
8,23AUG2018,23AUG2018,08APR2019,23AUG2018,23AUG2018,08APR2019,23AUG2018,,,11DEC2018,,,08APR2019,,,1,17,16,Y,Y,17
8,23AUG2018,23AUG2018,10OCT2019,23AUG2018,23AUG2018,18APR2019,23AUG2018,,19OCT2018,20DEC2018,,,18APR2019,,10OCT2019,1,18,16,Y,Y,18
6,23AUG2018,23AUG2018,02JAN2019,23AUG2018,23AUG2018,,23AUG2018,04OCT2018,,,,,,,,1,19,16,Y,Y,19
6,28AUG2018,23AUG2018,30JAN2019,23AUG2018,28AUG2018,,28AUG2018,08OCT2018,,,,,,,,1,20,16,Y,Y,20
8,28AUG2018,28AUG2018,04OCT2019,28AUG2018,28AUG2018,12APR2019,28AUG2018,,26OCT2018,21DEC2018,,,12APR2019,,04OCT2019,1,21,16,Y,Y,21
8,28AUG2018,28AUG2018,24SEP2019,28AUG2018,28AUG2018,09APR2019,28AUG2018,,23OCT2018,18DEC2018,,,09APR2019,,24SEP2019,1,22,16,Y,Y,22
8,28AUG2018,28AUG2018,25SEP2019,28AUG2018,28AUG2018,09APR2019,28AUG2018,,23OCT2018,18DEC2018,,,09APR2019,,25SEP2019,1,23,16,Y,Y,23
8,29AUG2018,29AUG2018,25OCT2019,29AUG2018,29AUG2018,10MAY2019,29AUG2018,,22OCT2018,21DEC2018,,,10MAY2019,,25OCT2019,1,24,16,Y,Y,24
8,29AUG2018,29AUG2018,30OCT2019,29AUG2018,29AUG2018,14MAY2019,29AUG2018,,09NOV2018,04JAN2019,,,14MAY2019,,30OCT2019,1,25,16,Y,Y,25
8,29AUG2018,29AUG2018,31OCT2018,29AUG2018,29AUG2018,,29AUG2018,,,,,,,,,1,26,16,Y,Y,26
6,03SEP2018,03SEP2018,13SEP2019,29AUG2018,03SEP2018,29MAR2019,03SEP2018,12OCT2018,,,04JAN2019,29MAR2019,,13SEP2019,,1,27,16,Y,Y,27
6,03SEP2018,03SEP2018,16SEP2019,03SEP2018,03SEP2018,01APR2019,03SEP2018,15OCT2018,,,07JAN2019,01APR2019,,16SEP2019,,1,28,16,Y,Y,28
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.