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
Diamond | Level 26
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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1160 views
  • 0 likes
  • 3 in conversation