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.

 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 5 replies
  • 977 views
  • 0 likes
  • 3 in conversation