<?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: FTP Connection - How to change port in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686095#M208136</link>
    <description>I modified your subject line to be more descriptive. Please include a descriptive subject line in future messages.</description>
    <pubDate>Wed, 23 Sep 2020 15:26:06 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-09-23T15:26:06Z</dc:date>
    <item>
      <title>FTP Connection - How to change port</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686040#M208109</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to connect&amp;nbsp; to FTP with different port. Can you help on it?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 15:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686040#M208109</guid>
      <dc:creator>senu188</dc:creator>
      <dc:date>2020-09-23T15:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686041#M208110</link>
      <description>&lt;P&gt;Please help us all out. Go back and edit your post to have a meaningful title that actually describes the problem. A title of "SAS" could apply to every post here, and so should not be used. A post named SAS makes the SAS Communities less useful to everyone.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 13:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686041#M208110</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-23T13:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686042#M208111</link>
      <description>&lt;P&gt;We are going to need more information.&amp;nbsp; What tool are you using?&amp;nbsp; The FTP libname engine has a PORT option that I know works.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 13:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686042#M208111</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-23T13:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686045#M208113</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;SAS Enterprise guide. we have alreday defined an macro, but without port number . I have defined the port number , but it is not connecting . It says below error.&lt;BR /&gt;&lt;BR /&gt;Stderr output:&lt;BR /&gt;&lt;BR /&gt;Transfers files to and from a computer running an FTP server service&lt;BR /&gt;(sometimes called a daemon). Ftp can be used interactively.&lt;BR /&gt;&lt;BR /&gt;FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-A] [-x:sendbuffer] [-r:recvbuffer]&lt;BR /&gt;[-b:asyncbuffers] [-w:windowsize] [host]&lt;BR /&gt;&lt;BR /&gt;  -v              Suppresses display of remote server responses.&lt;BR /&gt;  -n              Suppresses auto-login upon initial connection.&lt;BR /&gt;  -i              Turns off interactive prompting during multiple file&lt;BR /&gt;                  transfers.&lt;BR /&gt;  -d              Enables debugging.&lt;BR /&gt;  -g              Disables filename globbing (see GLOB command).&lt;BR /&gt;  -s:filename     Specifies a text file containing FTP commands; the&lt;BR /&gt;                  commands will automatically run after FTP starts.&lt;BR /&gt;  -a              Use any local interface when binding data connection.&lt;BR /&gt;  -A              login as anonymous.&lt;BR /&gt;  -x:send sockbuf Overrides the default SO_SNDBUF size of 8192.&lt;BR /&gt;  -r:recv sockbuf Overrides the default SO_RCVBUF size of 8192.&lt;BR /&gt;  -b:async count  Overrides the default async count of 3&lt;BR /&gt;  -w:windowsize   Overrides the default transfer buffer size of 65535.&lt;BR /&gt;  host            Specifies the host name or IP address of the remote&lt;BR /&gt;                  host to connect to.&lt;BR /&gt;&lt;BR /&gt;Notes:&lt;BR /&gt;  - mget and mput commands take y/n/q for yes/no/quit.&lt;BR /&gt;  - Use Control-C to abort commands.&lt;BR /&gt;NOTE: 0 records were read from the infile DOFTP.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;      real time           0.06 seconds&lt;BR /&gt;      cpu time            0.03 seconds&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Sep 2020 13:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686045#M208113</guid>
      <dc:creator>senu188</dc:creator>
      <dc:date>2020-09-23T13:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686049#M208115</link>
      <description>&lt;P&gt;We will need to see some code.&amp;nbsp; This error looks like you are getting an FTP manual page.&amp;nbsp; I doubt you will be able to change the port without getting into the code of that macro you are using.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 14:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686049#M208115</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-23T14:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686061#M208120</link>
      <description>Ok sure.&lt;BR /&gt;&lt;BR /&gt;%LET FTPCMDS=\\neovia.prv\..................test.txt;&lt;BR /&gt;&lt;BR /&gt;%LET HOST1=.......;&lt;BR /&gt;%LET PORT=.......;&lt;BR /&gt;&lt;BR /&gt;%LET USERID ='.......';  &lt;BR /&gt;%LET PASSWORD ='.........';                                                            /* TEST SYSTEM USER    */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%macro XFERFILESTONAS1(lfile,rfile,SYSTEM);&lt;BR /&gt;     &lt;BR /&gt;     filename ftpcmds "&amp;amp;ftpcmds";                                     /* Libref to execute the ftp command */&lt;BR /&gt;&lt;BR /&gt;     data _null_;&lt;BR /&gt;           file ftpcmds pad lrecl=326; &lt;BR /&gt;          put 'open ' "&amp;amp;host1" ' ' "&amp;amp;port" ;&lt;BR /&gt;           put 'user ' &amp;amp;USERID ' ' &amp;amp;PASSWORD ;                    /*  UserID and Password  */          &lt;BR /&gt;           put 'cd "/Ford_MMP/outbox"';                                                /*  the files reside in the */&lt;BR /&gt;           put 'lcd "' &amp;amp;rfile '"';&lt;BR /&gt;           put 'get "' &amp;amp;lfile '"';&lt;BR /&gt;           put 'close';&lt;BR /&gt;           put 'quit';                                                     /*  End of FTP commands  */&lt;BR /&gt;           put 'debug';&lt;BR /&gt;     run;&lt;BR /&gt;&lt;BR /&gt;     %IF &amp;amp;SYSTEM='PROD' %THEN %DO;&lt;BR /&gt;           filename doftp pipe "ftp -n -s:&amp;amp;ftpcmds  &amp;amp;host1 &amp;amp;port"; /* FTP Command File */&lt;BR /&gt;           run;&lt;BR /&gt;     %END;&lt;BR /&gt;&lt;BR /&gt;     /* Invoke FTP transfer */&lt;BR /&gt;     data _null_;&lt;BR /&gt;           infile doftp;&lt;BR /&gt;           input;&lt;BR /&gt;           put _infile_;&lt;BR /&gt;     run;&lt;BR /&gt;%mend XFERFILESTONAS1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%XFERFILESTONAS1('......txt','\\NEOVIA.PRV....................','......');&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Sep 2020 14:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686061#M208120</guid>
      <dc:creator>senu188</dc:creator>
      <dc:date>2020-09-23T14:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686067#M208123</link>
      <description>&lt;P&gt;This is an old approach to using FTP in SAS.&amp;nbsp; I would recommend you look into the FTP libname engine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, this code is generating an script for an FTP client, shelling out, and executing the FTP command with that script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am pretty sure you don't want the port in this line.&amp;nbsp; It should stay on the open statement where you already have it.&amp;nbsp; I think you also don't want the host in that line either since you have an open command in the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename doftp pipe "ftp -n -s:&amp;amp;ftpcmds &amp;amp;host1 &amp;amp;port"; /* FTP Command File */&lt;/PRE&gt;
&lt;P&gt;Try this instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename doftp pipe "ftp -n -s:&amp;amp;ftpcmds "; /* FTP Command File */&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Sep 2020 14:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686067#M208123</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-23T14:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686072#M208127</link>
      <description>Hi,&lt;BR /&gt;I tried it, it is running , it is not stoping at all.</description>
      <pubDate>Wed, 23 Sep 2020 14:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686072#M208127</guid>
      <dc:creator>senu188</dc:creator>
      <dc:date>2020-09-23T14:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686080#M208130</link>
      <description>Does this mean it is working, or now it is just hanging?  It it worked, please mark the accepted solution.</description>
      <pubDate>Wed, 23 Sep 2020 15:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686080#M208130</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-23T15:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686082#M208131</link>
      <description>Its hanging</description>
      <pubDate>Wed, 23 Sep 2020 15:06:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686082#M208131</guid>
      <dc:creator>senu188</dc:creator>
      <dc:date>2020-09-23T15:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686089#M208134</link>
      <description>&lt;P&gt;You should see the FTP dialog in your SAS log window.&amp;nbsp; It should help you figure out why.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 15:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686089#M208134</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-23T15:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Connection - How to change port</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686095#M208136</link>
      <description>I modified your subject line to be more descriptive. Please include a descriptive subject line in future messages.</description>
      <pubDate>Wed, 23 Sep 2020 15:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686095#M208136</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-23T15:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686098#M208138</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Nothing is happening . It is writing something else . No use at all. When i saw the text file after running macro the information with ip and port is correct. I think if the below format comes in text file for sas, it will work.&lt;BR /&gt;&lt;BR /&gt;Text File after macro.&lt;BR /&gt;&lt;BR /&gt;open .......Ip ........port                                                                                                                                                                                                                                                                                                                  &lt;BR /&gt;user ......username .......password                                                                                                                                                                                                                                                                                                               &lt;BR /&gt;cd ".... path FTP"                                                                                                                                                                                                                                                                                                                 &lt;BR /&gt;lcd "\\NEOVIA.PRV\............."                                                                                                                                                                                                                                                                                        &lt;BR /&gt;get "...........txt"                                                                                                                                                                                                                                                                                                                  &lt;BR /&gt;close                                                                                                                                                                                                                                                                                                                                 &lt;BR /&gt;quit                                                                                                                                                                                                                                                                                                                                  &lt;BR /&gt;debug &lt;BR /&gt;&lt;BR /&gt;Format looking in sas . I checked in CMD it is working with below format&lt;BR /&gt;&lt;BR /&gt;C:\Users\username&amp;gt;ftp&lt;BR /&gt;ftp&amp;gt; open ..... Ip address ....port</description>
      <pubDate>Wed, 23 Sep 2020 15:37:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-Connection-How-to-change-port/m-p/686098#M208138</guid>
      <dc:creator>senu188</dc:creator>
      <dc:date>2020-09-23T15:37:51Z</dc:date>
    </item>
  </channel>
</rss>

