BookmarkSubscribeRSS Feed
jplarios
Quartz | Level 8
I was using FILENAME FTP in UNIX in order to ftp a PDF file and when opening the file in the receiving end I got a message that the PDF could not open because it was not correctly decoded. Here's the code that I use to FTP:

filename pdffile '/dir/data/apdffile.pdf';



filename create ftp '/somewhere/data2/final.pdf'
host=MACHINE
user='me'
pass='pw';



data _null_;
infile pdffile;
input;
file create;

run; Message was edited by: jplarios
3 REPLIES 3
Cynthia_sas
SAS Super FREQ
Hi:
You may want to check with Tech Support. I thought that PDF files (at least the ones created with ODS) needed to be FTP'd as binary files. I think there's an FTP option for that.
http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000178980.htm#a002503695

cynthia
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Suggest reviewing SAS FILENAME FTP DOC with focus on binary transfers.

Scott Barry
SBBWorks, Inc.

Recommended Google advanced search argument, this topic/post:

filename ftp binary unix site:sas.com
jplarios
Quartz | Level 8
Thanks Cynthia and ssb!

jp

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