BookmarkSubscribeRSS Feed
amar8580
Calcite | Level 5

hi all

i use filezilla to put a excel onto the server

in my program i bring in the file as follows

x cp /users_ac/amardeep.singh/Daily_Results_Template.xlsx %sysfunc(pathname(work))/Daily_Results_Template.xlsx;

then import some data into that excel tab

is there a way to then convert that into a pdf or its not possible in sas eg

 

4 REPLIES 4
Reeza
Super User

Not within EG, but with the X command enabled you can automate it using a VB script or VBA.

Excel can 'print' to a PDF directly and if you automate that step with a VB script or a macro embedded into the worksheet.

 

Or as mentioned, 

export your results directly to a PDF file. 

amar8580
Calcite | Level 5

thanks

do you have an example as to how to call a vb script using x command

so i create a excel file that has macro in it and within sas call that macro

if i can get an example or sample code as to how to call vbscript or macro

it would be really appreciated

Kurt_Bremser
Super User

With LibreOffice, one can do it from the commandline:

path_to_libreoffice/soffice --convert-to pdf [--outdir target_directory] File(s)

But that's software from people who have a clue.

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!

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