BookmarkSubscribeRSS Feed
nr1
Calcite | Level 5 nr1
Calcite | Level 5

Hi 

I want to right align this content to fit the table.

 

data Footer3 ;

length col1 $5000;

run;

    

proc sql;

insert into Footer3

               values ('DISCLAIMER: This computer generated statement contains the particulars of the transaction(s) in the account that have been updated till the time of day end operations of the CBS system of the Bank on the previous working day and the same will not reflect the transaction(s) that have occurred in the acount, if any, subsequent thereto. The Federal Bank Ltd. shall not be liable/responsible for want of full particulars of the transaction(s) at the time of the genration of this statement.')

values ('This is a computer generated statement which need not normally be signed. Contenets of this statement will be considered correct if no error is reported within 21 days of the statement date.')

values ('****END OF STATEMENT****');

quit;

 

 

/*** Inside ODS PDF ****/

proc report data=Footer3 noheader

style(report)=[OUTPUTWIDTH=100%]

style(column)=[font_size=0.24cm /*borderleftcolor=white borderrightcolor=white                            bordertopcolor=white borderbottomcolor=white*/];

 run;

 

 

i am getting the output like this .Please check the attachment The blank space i have marked in yellow i want those space also be to filled and fit the table size

 

 

5 REPLIES 5
nr1
Calcite | Level 5 nr1
Calcite | Level 5

Help would be highly appreciated

nr1
Calcite | Level 5 nr1
Calcite | Level 5

Can you give an example. As far as i know 'flow' is used to wrap/split the text in the columns. I want it to completely fit within the border, not leave any spaces/gaps within the border.

ballardw
Super User

I am not going to open a ZIP file from an unknown source.

 

If you want to display text without any actual proc report statistics perhaps PROC ODSTEXT is a better fit for the task.

data example;
   x='DISCLAIMER: This computer generated statement contains the particulars of the transaction(s) in the account that have been updated till the time of day end operations of the CBS system of the Bank on the previous working day and the same will not reflect the transaction(s) that have occurred in the acount, if any, subsequent thereto. The Federal Bank Ltd. shall not be liable/responsible for want of full particulars of the transaction(s) at the time of the genration of this statement.';
run;

proc odstext data=example;
 p x/  style=[font_size=0.24cm ];
run;

Note that ODSTEXT does not place table borders by default.

 

Actually you don't even need the data set, you could use

p ' your long text goes here' / style=[ ];

but I used the data set incase you actually have multiple "lines" of data to display.

nr1
Calcite | Level 5 nr1
Calcite | Level 5

We tried with  ODSTEXT but still the issue is not solved.There is still space /gap in the right side of the content in the pdf.

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1961 views
  • 0 likes
  • 3 in conversation