LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2009, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 8 Jun 2009 11:44:40 -0400
Reply-To:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject:   Re: Indenting in Proc Report

The problem might be, that all leading blanks are ignored with the default $n. format. Did you try to assign the format &char11. (or whatever is the right length...)? That should NOT ignore blanks. Gerhard

On Mon, 8 Jun 2009 11:21:25 -0400, Siddharth Jain <sjain@AVEOPHARMA.COM> wrote:

>For a table, I want to indent SOC and PTs like below: > >ABDOMINAL PAIN /* Variable cmindc */ > Ketorolac tromethamine /* Variable cmdecod */ > Nembudeine > Omeprazole > Paracetamol > >I am using below statements but it is not working: > > length socpt $200; > socpt = cmindc || strip(cmdecod); > if cmindc = ' ' then socpt = ' ' || strip(cmdecod); > >Below is my Proc Report call: > >ods listing close; >options orientation=landscape nodate nonumber nobyline; >ods rtf body='C:\t_cm_all.rtf' style=styles.xx1; >ods escapechar '\'; > >proc report data=final1 center wrap nowd headline headskip spacing=1 NOFS >split='|' missing style(header)= [font_size=1]; > title1 j=L "&ptext" j=r 'Page \{pageof}'; > title5 'Table 1\{super 1}'; > title6 'Summary of Adverse Events by MedDRA SOC Term and Preferred Term'; > title7 f='Arial' h=8pt "All Treated Population"; > > column sortsoc sortpt socpt col1a; > define sortsoc /group order noprint; > define sortpt / group order noprint; > define socpt /display 'System Organ Class | Preferred Term' style=[just=L >cellwidth=120 font_size=1]; > define col1a /display order "All Treated Subjects | >(N=%sysfunc(strip(&p5)))" style=[just=L cellwidth=120 font_size=1]; > > *define col21 /display order style=[just=L cellwidth=120 font_size=1]; > *break after socpt/skip; > > > footnote1 J=L >'_________________________________________________________________________ ________________________________________________________'; > footnote2 J=L 'Footnote 1'; >run; > >ods rtf close; >ods listing; > > >Thanks in advance for your help, >Sid


Back to: Top of message | Previous page | Main SAS-L page