Just tell SAS what PORT to use by using, wait for it, the PORT= option.
https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p0v0ijxl1k6d4bn16cshtic7u4i3.htm
filename ftpcnx ftp "&file"
host="&server"
user="&user."
pass="&pass"
passive
cd="&path"
port=11021
;
You should probably include it as a parameter to your macro.
%macro putftpfile
(server= /* Servidor FTP */
,port=21 /* FTP Port nombre */
,user= /* Usuario del FTP */
,pass= /* Contraseña del FTP */
,path= /* Ruta del FTP */
,file= /* Nombre completo del fichero */
,inpath= /* Ruta en el servidor SAS */
);
...
port=&port
...
... View more