BookmarkSubscribeRSS Feed
RajasekharReddy
Fluorite | Level 6

Hi ,

 

Can any one help me to convert .txt files to pdf files  by usung sas programings methods 

 

i want also include page numbers and one table should be in one page

 

here i am attaching txt files 

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

A few things.  First its not a good idea to post files, especially clinical data outputs.  Secondly why are these not output from SAS directly to RTF or PDF - this would be the normal process.  We create RTF individual files, then PDF combine them, very simple.  That text files doesn't contain any markup which will make your output look nice - page breaks and such like - as far as a quick look showed.

Go back to the data, and re-run to get RTF output - this is also text, but has the markup to tell a rendered how to display.  As for printing to PDF, the easiest way is to copy files to Adobes distiller folder (its a special folder which Adobe scans occasionally and then converts files in there).  However it wont give you nice output as it doesn't know all the bits it needs to.

data_null__
Jade | Level 19

This sample is similar to what you want to do.

 

http://support.sas.com/kb/51/626.html

 

I think you will need to figure how to make each "page" of your TEXT file a separate document so you will have proper pagination.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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