Search notes:

SAS: proc download

%let portnr   =  7551;
%let host     =  win.renenyffenegger.ch;
%let tq84_srv =  &host &portnr;

%let user     =  DOMAIN\rene;
%let password = {SAS002}.......;

options remote              = tq84_srv /* tq84_srv is the name of a macro variable */
        comamid             = tcp
        netencrypt
        netencryptalgorithm = aes
;

signon tq84_srv   /* tq84_srv is the name of a macro variable */
       noscript
       user     = "&user"
       password = "&password"
;


%syslput tq84_path_from = \\some.server\Share$\path\to\a\directory;
%syslput tq84_path_to   = %nrquote(/home/rene); /* use nrquote because of the forward slashes */
%syslput tq84_filename  = foo.txt;
   
rsubmit;
   proc download
        infile  = "&tq84_path_from\&tq84_filename"
        outfile = "&tq84_path_to/&tq84_filename"
        binary;
   run;
endrsubmit;

signoff;
Github repository about-SAS, path: /programming/proc/download/simple.sas

See also

signon
SAS programming: proc

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Companie...', 1759408129, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/proc/download/index(73): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78