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

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!

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