I have XLS file sheet 1 and sheet 2, sheet 1 has Image content and sheet 2 has data, I am trying use it using SFTP and copy it to other location/server, Image content getting corrupted when read copied to other location, please help me in reading Image tab using SAS.
Why don't you use WinSCP or similar open source FTP if you just want to copy files. If your using SAS to import/export file then I don't this image file can be handled by SAS.
file name
expfile ref ftp "& file.xls" cd= path
When I am copying file to this location , its getting corrupted as the Xls file 1st tab has image file in it, please let me know if I can Use ODS to read the Image file. Thank you.
data _null_;
infile expfile NBYTE=n;
INPUT;
file "/serverpath/file.xls" recfm=n;
put _INFILE_ @@;
run;
Hi
I have to read/copy the XLS file Sheet 1 having image content and sheet 2 having records from source location, copy it to destination Location, while copying xls file at destination(SAS Server) the file getting corrupted, please could any one help me
file name
expfile ref ftp "& file.xls" cd= path
data _null_;
infile expfile NBYTE=n;
INPUT;
file "/serverpath/file.xls" recfm=n;
put _INFILE_ @@;
run;
You have to make sure that the SFTP client is set to binary mode, so that no changes are made to the file.
SFTP code working fine but Image Xls file is getting copied to destination web server, but XLS file getting corrupted as it couldn't read imagetab.
If the image is not embedded, but only linked to, you need to embed it before you transfer the file.
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.
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.