BookmarkSubscribeRSS Feed
HitmonTran
Pyrite | Level 9

 

Hi,

 

Anyone know if it's possible to seal the gap (highlighted below) in PROC REPORT (non ODS)? BC the first column is using "flow" option it is creating a space for all columns, thank you all.

 

proc report.PNG

 

data tr;
  merge adsl 
        adtr;
   by subjid;
   subject= trim(siteid)||'/'||trim(subjid)||'/~'||strip(age)||'/'||trim(sex)||'/'||trim(race)||'/~'||trim(TRT01a);
run;


proc report data=tr missing headskip headline  split='~' nowindows missing spacing=1; 
    column  subject  trtsdt visit adt ady  _base  _aval  _chg pchg;

   define subject     / width=31 "Site/Subject ID/~Age/Sex/Race/~Study Treatment"  order order=data flow left;
   define visit       / width=20 "Visit"             	    	                    center;
   define adt         / width=11 "Study Date"             			    center;
   define trtsdt      / width=10 "First~Dose~Date"                 order order=data center;
   define trtedt      / width=9  "Date of Last Treatment Exposure"                  center;
   define tr01sdt     / width=9  "Date of First Exposure in Period 01"              center;
   define tr01edt     / width=9  "Date of Last Exposure in Period 01"               center;
   define _base       / width=11 "Baseline~Lesion~Measurement"     order order=data center;
   define basecount   / width=4  "Base~Count"             		            center;
   define _aval       / width=12 "On Treatment~Lesion~Measurement"                  center;
   define lesnumber   / width=8  "Lesion #"              			    center;
   define ady         / width=5  "Study Day"           				    center;
   define ablfl       / width=5  "ablfl"              				    center;
   define _chg        / width=8  "Change"              				    center;
   define pchg        / width=8  "% Change"             			    center;

   break after subject/ skip;
 run;



 

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

 

What you are requesting several rows in the right-hand columns go across one single row in the first column.
Proc tabulate is more suited to this exercise.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 905 views
  • 0 likes
  • 2 in conversation