<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connect to ftp using TLS and passive mode in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/786983#M251353</link>
    <description>&lt;P&gt;I wanted to circle back on this thread as I am experiencing essentially the same issue. My connection is timing out. I am able to connect to this FTP via Filezilla without any issues. However, when I connect via Filezilla I do get a message about accepting a certificate. Note, per the FTP instructions "Access to these files&lt;BR /&gt;requires a secure (SSL enabled) FTP connection." What do I need to adjust to allow me to access the file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename Ekey FTP "Inventory.csv"&lt;BR /&gt;CD="/"&lt;BR /&gt;HOST="ftp.ekeystone.com"&lt;BR /&gt;USER="XXXXXXXX"&lt;BR /&gt;PASS="XXXXXXXX";&lt;BR /&gt;&lt;BR /&gt;data Keystone_Inventory;&lt;BR /&gt;infile Ekey dlm=',' dsd missover LRECL=32767 firstobs=2;&lt;BR /&gt;input&lt;BR /&gt;Vendor_Name :$12.&lt;BR /&gt;VCPN :$13.&lt;BR /&gt;Vendor_Code :$3.&lt;BR /&gt;Part_Number :$10.&lt;BR /&gt;Manufacturer_Part_No :$23.&lt;BR /&gt;Long_Description :$100.&lt;BR /&gt;Jobber_Price :best12.&lt;BR /&gt;Cost :best12.&lt;BR /&gt;UPSable :$5.&lt;BR /&gt;Core_Charge :best12.&lt;BR /&gt;Case_Qty :best12.&lt;BR /&gt;IsNonReturnable :$5.&lt;BR /&gt;Prop65Toxicity :$1.&lt;BR /&gt;UPC_Code :$14.&lt;BR /&gt;IsOversized :$5.&lt;BR /&gt;Weight :best12.&lt;BR /&gt;Height :best12.&lt;BR /&gt;Length :best12.&lt;BR /&gt;Width :best12.&lt;BR /&gt;AAIACode :$4.&lt;BR /&gt;IsHazmat :$5.&lt;BR /&gt;IsChemical :$5.&lt;BR /&gt;USAAccessorial :$5.&lt;BR /&gt;East_Qty :best12.&lt;BR /&gt;Midwest_Qty :best12.&lt;BR /&gt;California_Qty :best12.&lt;BR /&gt;Southeast_Qty :best12.&lt;BR /&gt;PacificNW_Qty :best12.&lt;BR /&gt;Texas_Qty :best12.&lt;BR /&gt;GreatLakes_Qty :best12.&lt;BR /&gt;Total_Qty :best12.&lt;BR /&gt;KitComponents :$1.&lt;BR /&gt;IsKit :$5.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Log:&lt;/P&gt;&lt;P&gt;filename Ekey FTP "Inventory.csv"&lt;BR /&gt;357 CD="/"&lt;BR /&gt;358 HOST="ftp.ekeystone.com"&lt;BR /&gt;359 USER="XXXXXXXX"&lt;BR /&gt;360 PASS=XXXXXXXXXX;&lt;BR /&gt;361&lt;BR /&gt;362 data Keystone_Inventory;&lt;BR /&gt;363 infile Ekey dlm=',' dsd missover LRECL=32767 firstobs=2;&lt;BR /&gt;364 input&lt;BR /&gt;365 Vendor_Name :$12.&lt;BR /&gt;366 VCPN :$13.&lt;BR /&gt;367 Vendor_Code :$3.&lt;BR /&gt;368 Part_Number :$10.&lt;BR /&gt;369 Manufacturer_Part_No :$23.&lt;BR /&gt;370 Long_Description :$100.&lt;BR /&gt;371 Jobber_Price :best12.&lt;BR /&gt;372 Cost :best12.&lt;BR /&gt;373 UPSable :$5.&lt;BR /&gt;374 Core_Charge :best12.&lt;BR /&gt;375 Case_Qty :best12.&lt;BR /&gt;376 IsNonReturnable :$5.&lt;BR /&gt;377 Prop65Toxicity :$1.&lt;BR /&gt;378 UPC_Code :$14.&lt;BR /&gt;379 IsOversized :$5.&lt;BR /&gt;380 Weight :best12.&lt;BR /&gt;381 Height :best12.&lt;BR /&gt;382 Length :best12.&lt;BR /&gt;383 Width :best12.&lt;BR /&gt;384 AAIACode :$4.&lt;BR /&gt;385 IsHazmat :$5.&lt;BR /&gt;386 IsChemical :$5.&lt;BR /&gt;387 USAAccessorial :$5.&lt;BR /&gt;388 East_Qty :best12.&lt;BR /&gt;389 Midwest_Qty :best12.&lt;BR /&gt;390 California_Qty :best12.&lt;BR /&gt;391 Southeast_Qty :best12.&lt;BR /&gt;392 PacificNW_Qty :best12.&lt;BR /&gt;393 Texas_Qty :best12.&lt;BR /&gt;394 GreatLakes_Qty :best12.&lt;BR /&gt;395 Total_Qty :best12.&lt;BR /&gt;396 KitComponents :$1.&lt;BR /&gt;397 IsKit :$5.;&lt;BR /&gt;398 run;&lt;/P&gt;&lt;P&gt;ERROR: Open failed for file EKEY&lt;BR /&gt;ERROR: The connection has timed out..&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of&lt;BR /&gt;errors.&lt;BR /&gt;WARNING: The data set WORK.KEYSTONE_INVENTORY may be&lt;BR /&gt;incomplete. When this step was stopped there were 0&lt;BR /&gt;observations and 33 variables.&lt;BR /&gt;WARNING: Data set WORK.KEYSTONE_INVENTORY was not replaced&lt;BR /&gt;because this step was stopped.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 21.10 seconds&lt;BR /&gt;cpu time 0.14 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 17:08:35 GMT</pubDate>
    <dc:creator>CR-Horton</dc:creator>
    <dc:date>2021-12-21T17:08:35Z</dc:date>
    <item>
      <title>Connect to ftp using TLS and passive mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/616231#M180384</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to connect to a ftps server using passive mode.&lt;/P&gt;&lt;P&gt;Everything seems to &lt;EM&gt;be working fine&lt;/EM&gt; until the moment I want to transfer data either from the local computer to the server or vice-versa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I am using to test the connection and things seem to work as expected:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%let _host=###;
%let _user=###;
%let _pwd=###;

/**************************************************************************\
	TEST 1 (Server status): Passed 
\**************************************************************************/
options set=SAS_FTP_AUTHTLS="1";

filename LLL ftp '' rstat 
	host="&amp;amp;_host." 
	user="&amp;amp;_user." pass="&amp;amp;_pwd." 
	debug ;

data _null_;
   infile LLL;
   input;
   list;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the generated log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; AUTH TLS
NOTE: &amp;lt;&amp;lt;&amp;lt; 234 AUTH TLS successful
NOTE: &amp;gt;&amp;gt;&amp;gt; USER ####
NOTE: &amp;lt;&amp;lt;&amp;lt; 331 Password required for ####
NOTE: &amp;gt;&amp;gt;&amp;gt; PASS XXXXXXXX
NOTE: &amp;lt;&amp;lt;&amp;lt; 230 User eba logged in
NOTE: &amp;gt;&amp;gt;&amp;gt; OPTS UTF8 ON
NOTE: &amp;lt;&amp;lt;&amp;lt; 200 UTF8 set to on
NOTE: &amp;gt;&amp;gt;&amp;gt; OPTS UTF8 NLST
NOTE: &amp;lt;&amp;lt;&amp;lt; 501 'OPTS UTF8' not understood
NOTE: &amp;gt;&amp;gt;&amp;gt; OPTS UTF-8 NLST
NOTE: &amp;lt;&amp;lt;&amp;lt; 500 OPTS UTF-8 not understood
NOTE: &amp;gt;&amp;gt;&amp;gt; STAT
NOTE: User #### has connected to FTP server on Host #####.#####.com .
NOTE: The infile LLL is:
2                                                          The SAS System                             18:50 Tuesday, January 7, 2020

      Filename=,
      Pathname,Local Host Name=######,
      Local Host IP addr=::1,
      Service Hostname Name=#####.#####.com,
      Service IP addr=###.###.###.###,Service Name=FTP,
      Service Portno=21,Lrecl=32767,Recfm=Variable

RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                      
1         211-Status of 'FTPS server' 45
2          Connected from 195.227.57.67 (195.227.57.67) 45
3          Logged in as #### 17
4          TYPE: ASCII, STRUcture: File, Mode: Stream 43
5          &lt;STRONG&gt;No data connection&lt;/STRONG&gt; 19
6         211 End of status 17
NOTE: &amp;gt;&amp;gt;&amp;gt; QUIT
NOTE: 6 records were read from the infile LLL.
      The minimum record length was 17.
      The maximum record length was 45.
NOTE: DATA statement used (Total process time):
      real time           0.82 seconds
      cpu time            0.06 seconds&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can even create directories in the remote server:&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/**************************************************************************\
	TEST 2: Passed (Make directory)
\**************************************************************************/
options set=SAS_FTP_AUTHTLS="1";

filename LLL ftp '' /*rstat */
	host="&amp;amp;_host." 
	user="&amp;amp;_user." pass="&amp;amp;_pwd." 
	passive 
	rcmd="cwd /test;mkd test2;"
	debug ;

data _null_;
   infile LLL;
   input;
   list;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; AUTH TLS
NOTE: &amp;lt;&amp;lt;&amp;lt; 234 AUTH TLS successful
NOTE: &amp;gt;&amp;gt;&amp;gt; USER ####
NOTE: &amp;lt;&amp;lt;&amp;lt; 331 Password required for ####
NOTE: &amp;gt;&amp;gt;&amp;gt; PASS XXXXXXXX
NOTE: &amp;lt;&amp;lt;&amp;lt; 230 User eba logged in
NOTE: &amp;gt;&amp;gt;&amp;gt; OPTS UTF8 ON
NOTE: &amp;lt;&amp;lt;&amp;lt; 200 UTF8 set to on
NOTE: &amp;gt;&amp;gt;&amp;gt; OPTS UTF8 NLST
NOTE: &amp;lt;&amp;lt;&amp;lt; 501 'OPTS UTF8' not understood
NOTE: &amp;gt;&amp;gt;&amp;gt; OPTS UTF-8 NLST
NOTE: &amp;lt;&amp;lt;&amp;lt; 500 OPTS UTF-8 not understood
2                                                          The SAS System                             18:50 Tuesday, January 7, 2020

NOTE: &amp;gt;&amp;gt;&amp;gt; cwd /test
NOTE: &amp;lt;&amp;lt;&amp;lt; 250 CWD command successful
NOTE: &amp;gt;&amp;gt;&amp;gt; mkd test2
NOTE: &amp;lt;&amp;lt;&amp;lt; 257 "/test/test2" - Directory successfully created
NOTE: User eba has connected to FTP server on Host ############# .
NOTE: The infile LLL is:
      Filename=,
      Pathname,Local Host Name=######,
      Local Host IP addr=::1,
      Service Hostname Name=######,
      Service IP addr=##.###.###.###,Service Name=FTP,
      Service Portno=21,Lrecl=32767,Recfm=Variable

NOTE: &amp;gt;&amp;gt;&amp;gt; QUIT
NOTE: 0 records were read from the infile LLL.
NOTE: DATA statement used (Total process time):
      real time           0.75 seconds
      cpu time            0.04 seconds&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this stops being so successful whenever a try to download or upload a file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filename inv ftp 'mtest.txt' 
	host="&amp;amp;_host." user="&amp;amp;_user." pass="&amp;amp;_pwd." 
	cd='/test/'
	RECFM=S 
	passive
	rcmd="cwd /test;"
	debug ;

filename lcl "&amp;amp;mytemp.\mtest.txt" recfm=n;

data _null_;
	N=1;
	infile inv NBYTE=N;
	input;
	file lcl;
	put _infile_ @@;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; AUTH TLS
NOTE: &amp;lt;&amp;lt;&amp;lt; 234 AUTH TLS successful
NOTE: &amp;gt;&amp;gt;&amp;gt; USER ####
NOTE: &amp;lt;&amp;lt;&amp;lt; 331 Password required for ####
NOTE: &amp;gt;&amp;gt;&amp;gt; PASS XXXXXXXX
2                                                          The SAS System                             18:50 Tuesday, January 7, 2020

NOTE: &amp;lt;&amp;lt;&amp;lt; 230 User #### logged in
NOTE: &amp;gt;&amp;gt;&amp;gt; OPTS UTF8 ON
NOTE: &amp;lt;&amp;lt;&amp;lt; 200 UTF8 set to on
NOTE: &amp;gt;&amp;gt;&amp;gt; OPTS UTF8 NLST
NOTE: &amp;lt;&amp;lt;&amp;lt; 501 'OPTS UTF8' not understood
NOTE: &amp;gt;&amp;gt;&amp;gt; OPTS UTF-8 NLST
NOTE: &amp;lt;&amp;lt;&amp;lt; 500 OPTS UTF-8 not understood
NOTE: &amp;gt;&amp;gt;&amp;gt; PBSZ 0
NOTE: &amp;lt;&amp;lt;&amp;lt; 200 PBSZ 0 successful
NOTE: &amp;gt;&amp;gt;&amp;gt; PROT P
NOTE: &amp;lt;&amp;lt;&amp;lt; 200 Protection set to Private
NOTE: &amp;gt;&amp;gt;&amp;gt; PASV
NOTE: &amp;lt;&amp;lt;&amp;lt; 227 Entering Passive Mode (##,###,##,###,255,155).
&lt;FONT color="#FF0000"&gt;ERROR: The connection has timed out..&lt;/FONT&gt;
NOTE: UNBUFFERED is the default with RECFM=N.
NOTE: The file LCL is:
      Filename=E:\SASDATA\PDRIVE\jrocha\WORK\temp\mtest.txt,
      RECFM=N,LRECL=256,File Size (bytes)=0,
      Last Modified=09 January 2020 16:14:21,
      Create Time=09 January 2020 12:29:38

NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
      real time           21.80 seconds
      cpu time            0.01 seconds&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I can see from the logs above I can connect to the server but I cannot create a data connection. Any ideas why this is happening and/how can I overcome it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Julio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 15:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/616231#M180384</guid>
      <dc:creator>daRocha</dc:creator>
      <dc:date>2020-01-09T15:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to ftp using TLS and passive mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/616305#M180402</link>
      <description>&lt;P&gt;It is best to diagnose this issue by taking SAS out of the process and simply call SFTP from the command line to transfer the file in question.&amp;nbsp; When performing these tests without SAS, check to see if the SFTP command line command has a switch, like -v for verbose logging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first test to run without SAS is to determine if you have a mis-match for UTF encoding between the client and the server.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; 200 UTF8 set to on
NOTE: &amp;gt;&amp;gt;&amp;gt; OPTS UTF8 NLST
NOTE: &amp;lt;&amp;lt;&amp;lt; 501 'OPTS UTF8' not understood&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 20:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/616305#M180402</guid>
      <dc:creator>rbetancourt</dc:creator>
      <dc:date>2020-01-09T20:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to ftp using TLS and passive mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/616406#M180449</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/102511"&gt;@rbetancourt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is not an sftp connection, it is an ftps connection (or, if you prefer FTP over TLS).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am on a windows server and windows command line does not have the possibility of connecting ftp over TLS. When I try to connect using the Windows I get the message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;550 SSL/TLS required on the control channel&lt;/PRE&gt;&lt;P&gt;Btw, sftp works fine for me (connecting to a different server) and &lt;EM&gt;simple&lt;/EM&gt; ftp also works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the first time I am using ftps with SAS and I cannot make it work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 10:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/616406#M180449</guid>
      <dc:creator>daRocha</dc:creator>
      <dc:date>2020-01-10T10:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to ftp using TLS and passive mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/786983#M251353</link>
      <description>&lt;P&gt;I wanted to circle back on this thread as I am experiencing essentially the same issue. My connection is timing out. I am able to connect to this FTP via Filezilla without any issues. However, when I connect via Filezilla I do get a message about accepting a certificate. Note, per the FTP instructions "Access to these files&lt;BR /&gt;requires a secure (SSL enabled) FTP connection." What do I need to adjust to allow me to access the file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename Ekey FTP "Inventory.csv"&lt;BR /&gt;CD="/"&lt;BR /&gt;HOST="ftp.ekeystone.com"&lt;BR /&gt;USER="XXXXXXXX"&lt;BR /&gt;PASS="XXXXXXXX";&lt;BR /&gt;&lt;BR /&gt;data Keystone_Inventory;&lt;BR /&gt;infile Ekey dlm=',' dsd missover LRECL=32767 firstobs=2;&lt;BR /&gt;input&lt;BR /&gt;Vendor_Name :$12.&lt;BR /&gt;VCPN :$13.&lt;BR /&gt;Vendor_Code :$3.&lt;BR /&gt;Part_Number :$10.&lt;BR /&gt;Manufacturer_Part_No :$23.&lt;BR /&gt;Long_Description :$100.&lt;BR /&gt;Jobber_Price :best12.&lt;BR /&gt;Cost :best12.&lt;BR /&gt;UPSable :$5.&lt;BR /&gt;Core_Charge :best12.&lt;BR /&gt;Case_Qty :best12.&lt;BR /&gt;IsNonReturnable :$5.&lt;BR /&gt;Prop65Toxicity :$1.&lt;BR /&gt;UPC_Code :$14.&lt;BR /&gt;IsOversized :$5.&lt;BR /&gt;Weight :best12.&lt;BR /&gt;Height :best12.&lt;BR /&gt;Length :best12.&lt;BR /&gt;Width :best12.&lt;BR /&gt;AAIACode :$4.&lt;BR /&gt;IsHazmat :$5.&lt;BR /&gt;IsChemical :$5.&lt;BR /&gt;USAAccessorial :$5.&lt;BR /&gt;East_Qty :best12.&lt;BR /&gt;Midwest_Qty :best12.&lt;BR /&gt;California_Qty :best12.&lt;BR /&gt;Southeast_Qty :best12.&lt;BR /&gt;PacificNW_Qty :best12.&lt;BR /&gt;Texas_Qty :best12.&lt;BR /&gt;GreatLakes_Qty :best12.&lt;BR /&gt;Total_Qty :best12.&lt;BR /&gt;KitComponents :$1.&lt;BR /&gt;IsKit :$5.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Log:&lt;/P&gt;&lt;P&gt;filename Ekey FTP "Inventory.csv"&lt;BR /&gt;357 CD="/"&lt;BR /&gt;358 HOST="ftp.ekeystone.com"&lt;BR /&gt;359 USER="XXXXXXXX"&lt;BR /&gt;360 PASS=XXXXXXXXXX;&lt;BR /&gt;361&lt;BR /&gt;362 data Keystone_Inventory;&lt;BR /&gt;363 infile Ekey dlm=',' dsd missover LRECL=32767 firstobs=2;&lt;BR /&gt;364 input&lt;BR /&gt;365 Vendor_Name :$12.&lt;BR /&gt;366 VCPN :$13.&lt;BR /&gt;367 Vendor_Code :$3.&lt;BR /&gt;368 Part_Number :$10.&lt;BR /&gt;369 Manufacturer_Part_No :$23.&lt;BR /&gt;370 Long_Description :$100.&lt;BR /&gt;371 Jobber_Price :best12.&lt;BR /&gt;372 Cost :best12.&lt;BR /&gt;373 UPSable :$5.&lt;BR /&gt;374 Core_Charge :best12.&lt;BR /&gt;375 Case_Qty :best12.&lt;BR /&gt;376 IsNonReturnable :$5.&lt;BR /&gt;377 Prop65Toxicity :$1.&lt;BR /&gt;378 UPC_Code :$14.&lt;BR /&gt;379 IsOversized :$5.&lt;BR /&gt;380 Weight :best12.&lt;BR /&gt;381 Height :best12.&lt;BR /&gt;382 Length :best12.&lt;BR /&gt;383 Width :best12.&lt;BR /&gt;384 AAIACode :$4.&lt;BR /&gt;385 IsHazmat :$5.&lt;BR /&gt;386 IsChemical :$5.&lt;BR /&gt;387 USAAccessorial :$5.&lt;BR /&gt;388 East_Qty :best12.&lt;BR /&gt;389 Midwest_Qty :best12.&lt;BR /&gt;390 California_Qty :best12.&lt;BR /&gt;391 Southeast_Qty :best12.&lt;BR /&gt;392 PacificNW_Qty :best12.&lt;BR /&gt;393 Texas_Qty :best12.&lt;BR /&gt;394 GreatLakes_Qty :best12.&lt;BR /&gt;395 Total_Qty :best12.&lt;BR /&gt;396 KitComponents :$1.&lt;BR /&gt;397 IsKit :$5.;&lt;BR /&gt;398 run;&lt;/P&gt;&lt;P&gt;ERROR: Open failed for file EKEY&lt;BR /&gt;ERROR: The connection has timed out..&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of&lt;BR /&gt;errors.&lt;BR /&gt;WARNING: The data set WORK.KEYSTONE_INVENTORY may be&lt;BR /&gt;incomplete. When this step was stopped there were 0&lt;BR /&gt;observations and 33 variables.&lt;BR /&gt;WARNING: Data set WORK.KEYSTONE_INVENTORY was not replaced&lt;BR /&gt;because this step was stopped.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 21.10 seconds&lt;BR /&gt;cpu time 0.14 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 17:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/786983#M251353</guid>
      <dc:creator>CR-Horton</dc:creator>
      <dc:date>2021-12-21T17:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to ftp using TLS and passive mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/787013#M251371</link>
      <description>&lt;P&gt;For starters you need to switch from using the FTP FILENAME option to SFTP. That will enable you to establish a secure FTP connection.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 21:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/787013#M251371</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-12-21T21:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to ftp using TLS and passive mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/787054#M251398</link>
      <description>&lt;P&gt;How old is the server you are trying to connect to?&lt;/P&gt;
&lt;P&gt;I don't think SSL is supposed to be used anymore.&amp;nbsp; At least that is what Wikipedia says.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/FTPS" target="_blank"&gt;https://en.wikipedia.org/wiki/FTPS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;FTPS&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;(also known&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;FTP-SSL&lt;/STRONG&gt;&lt;SPAN&gt;, and&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;FTP Secure&lt;/I&gt;&lt;SPAN&gt;) is an extension to the commonly used&amp;nbsp;&lt;/SPAN&gt;&lt;A title="File Transfer Protocol" href="https://en.wikipedia.org/wiki/File_Transfer_Protocol" target="_blank"&gt;File Transfer Protocol&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(FTP) that adds support for the&amp;nbsp;&lt;/SPAN&gt;&lt;A title="Transport Layer Security" href="https://en.wikipedia.org/wiki/Transport_Layer_Security" target="_blank"&gt;Transport Layer Security&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(TLS) and, &lt;STRONG&gt;formerly, the&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;A class="mw-redirect" title="Secure Sockets Layer" href="https://en.wikipedia.org/wiki/Secure_Sockets_Layer" target="_blank"&gt;Secure Sockets Layer&lt;/A&gt;&amp;nbsp;(SSL, which is now prohibited by&amp;nbsp;&lt;A class="external text" href="https://tools.ietf.org/html/rfc7568" rel="nofollow" target="_blank"&gt;RFC7568&lt;/A&gt;) cryptographic protocols.&lt;/STRONG&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 22 Dec 2021 04:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/787054#M251398</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-12-22T04:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to ftp using TLS and passive mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/787061#M251402</link>
      <description>&lt;P&gt;FTP is deprecated (except for anonymous transfers) because it transmits everything, including credentials, unencrypted. Use SFTP instead. SFTP from SAS requires that public/private key authentication is set up for that host/user pair outside of SAS.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 06:34:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/787061#M251402</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-12-22T06:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to ftp using TLS and passive mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/826550#M326477</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28035"&gt;@daRocha&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw your message regarding the issues with the FTP transfer for Ekeystone. I'm having the same issues. Going through the same steps as listed in the SDK support site but can't get anything to connect. Wondering if you were able to figure out the issue and connect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 05:09:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/826550#M326477</guid>
      <dc:creator>Zonie24</dc:creator>
      <dc:date>2022-08-02T05:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to ftp using TLS and passive mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/968332#M376528</link>
      <description>&lt;P&gt;Your issue is that you need to whitelist the passive port in your firewall.... comments like you have to use SFTP is incorrect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 13:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-ftp-using-TLS-and-passive-mode/m-p/968332#M376528</guid>
      <dc:creator>epower</dc:creator>
      <dc:date>2025-06-06T13:52:53Z</dc:date>
    </item>
  </channel>
</rss>

