<?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: File not found failure on ftp in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666676#M50610</link>
    <description>Ian&lt;BR /&gt;Many thanks for this suggestion. I have thought to amend the DCL to do this sort of thing, but my DCL skills are very limited. If you have any code snippets, this would be very much appreciated. The reason we initiate the ftp from the mainframe is that it easily provides the return code indicating sccess or otherwise back to the mainframe job. I guess this could be done from the VAX side. &lt;BR /&gt;&lt;BR /&gt;On another note, the ONLY reason we run the script is because we need the files to be in fixed length format, but as far as we are aware, when transferred using ftp, the files are in stream format and therefore variable length. I could not see any way around this, hence the DCL scripts. Can anyone confirm this limitation (ie. variable length on ftp send to VAX) ?&lt;BR /&gt;Many thanks, Alex</description>
    <pubDate>Tue, 08 Nov 2005 11:30:00 GMT</pubDate>
    <dc:creator>Alex Tough</dc:creator>
    <dc:date>2005-11-08T11:30:00Z</dc:date>
    <item>
      <title>File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666667#M50601</link>
      <description>Hi,&lt;BR /&gt;We're running VAX/VMS version V5.5-2H4. We recently started to ftp a number of files from our IBM mainframe, and have put together a DCL script which converts from variable length to fixed length format. We have a delay of 1 minute after completing the ftp before we run the script. Very occasionally we see :&lt;BR /&gt;%CONV-F-OPENIN, error opening GENÂ£DISK:[WAREHOUSE.FINE.LIVE.MISC.DTF_RX]PICK_S&lt;BR /&gt;CONV-F-OPENIN, error opening GEN7Â£DISK:[WAREHOUSE.FINE.LIVE.MISC.DTF_RX]PICK_S&lt;BR /&gt;UMM.DAT; as input&lt;BR /&gt;UMM.DAT; as input&lt;BR /&gt;-RMS-E-FNF, file not found.&lt;BR /&gt;This is even though the file has just been successfully transferred.&lt;BR /&gt;I have altered the script to write a directory listing before attempting to convert the files. I guess we could also have a larger delay. Has anyone seen this type of issue, or have better suggestions as to how to troubleshoot the problem. I've attached the script if this is of any help.&lt;BR /&gt;Many thanks, Alex&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Nov 2005 06:55:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666667#M50601</guid>
      <dc:creator>Alex Tough</dc:creator>
      <dc:date>2005-11-08T06:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666668#M50602</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;only odd thing I can see is 'Ã Â£' characters instead of '$'. Are they in log file as well, or is it just badly translated in forum? If they are in log file, then system cannot find such device and so the files.&lt;BR /&gt;&lt;BR /&gt;Mike&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Nov 2005 09:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666668#M50602</guid>
      <dc:creator>Mike Reznak</dc:creator>
      <dc:date>2005-11-08T09:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666669#M50603</link>
      <description>Mike&lt;BR /&gt;Many thanks for getting back to me. The bad characters are my fault and should all appear as $. The DCL script is initiated by rexec from our IBM mainframe system, and the output is seen back on the mainframe. I have cut and paste this output, which can lead to some conversion problems. To confirm, the script normally completes successfully, only occasionally do we see this problem, and in every case, we can see that the file has been transferred successfully, and the script will rerun successfully some minutes later. It appears that the file is somehow locked by the ftp process, and it is this that I need some assistance with. &lt;BR /&gt;Any assstance is much appreciated.&lt;BR /&gt;regards, Alex</description>
      <pubDate>Tue, 08 Nov 2005 10:13:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666669#M50603</guid>
      <dc:creator>Alex Tough</dc:creator>
      <dc:date>2005-11-08T10:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666670#M50604</link>
      <description>&amp;gt; VAX/VMS version V5.5-2H4&lt;BR /&gt;&lt;BR /&gt;That's fresh.  It might help to know which&lt;BR /&gt;TCP/IP product and version you run, too.&lt;BR /&gt;&lt;BR /&gt;If the problem always clears itself, you&lt;BR /&gt;could add a wait loop which tries to open the&lt;BR /&gt;file.  If the open fails, wait a bit, then&lt;BR /&gt;retry.  If it succeeds, (close the file and)&lt;BR /&gt;continue. Depending on how exotic you want to&lt;BR /&gt;get, you could also limit the retries by time&lt;BR /&gt;and/or number, send e-mail when it fails, or&lt;BR /&gt;any number of other clever things.  It's only&lt;BR /&gt;programming.</description>
      <pubDate>Tue, 08 Nov 2005 10:40:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666670#M50604</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2005-11-08T10:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666671#M50605</link>
      <description>Alex,&lt;BR /&gt;&lt;BR /&gt;you can easily test IF the file locked IS your issue:&lt;BR /&gt;&lt;BR /&gt;$testing:&lt;BR /&gt;$ if f$file_att(targetfilespec,"LCK")&lt;BR /&gt;$ then&lt;BR /&gt;$    ! maybe report?&lt;BR /&gt;$    wait 0:0:5 ! or whatever is reasonable&lt;BR /&gt;$    goto testing&lt;BR /&gt;$ else&lt;BR /&gt;$     ! file can now be processed&lt;BR /&gt;$ endif&lt;BR /&gt;&lt;BR /&gt;If you still run into problems, at least you _KNOW_ it is not because of file_locked!&lt;BR /&gt;&lt;BR /&gt;Success.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Tue, 08 Nov 2005 10:41:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666671#M50605</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-11-08T10:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666672#M50606</link>
      <description>Thanks to everyone for your sggestions. The admission I have to make (which you may have already guessed) is that I work in technical support for the IBM mainframe, and know little about VAX/VMS, but I'm having to learn ! I'll try out the suggestions about putting in the loop (many thanks for the code snippet). How do I determine the version of TCP/IP we use ?&lt;BR /&gt;Many thanks, Alex</description>
      <pubDate>Tue, 08 Nov 2005 10:50:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666672#M50606</guid>
      <dc:creator>Alex Tough</dc:creator>
      <dc:date>2005-11-08T10:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666673#M50607</link>
      <description>Hi Alex,&lt;BR /&gt;&lt;BR /&gt;$ TCPIP&lt;BR /&gt;TCPIP &amp;gt; show version  &lt;BR /&gt;&lt;BR /&gt;! This displays your TCPIP version&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Tue, 08 Nov 2005 11:07:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666673#M50607</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-11-08T11:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666674#M50608</link>
      <description>Hi Archunan&lt;BR /&gt;this doesn't work on our system, maybe I don't have authority to run this command ?&lt;BR /&gt;&lt;BR /&gt;$ tcpip&lt;BR /&gt;%DCL-W-IVVERB, unrecognized command verb - check validity and spelling&lt;BR /&gt; \TCPIP\&lt;BR /&gt;$ TCPIP &amp;gt; SHOW VERSION&lt;BR /&gt;%DCL-W-IVVERB, unrecognized command verb - check validity and spelling&lt;BR /&gt; \TCPIP\&lt;BR /&gt;Thanks, Alex&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Nov 2005 11:12:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666674#M50608</guid>
      <dc:creator>Alex Tough</dc:creator>
      <dc:date>2005-11-08T11:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666675#M50609</link>
      <description>Hello Alex,&lt;BR /&gt;&lt;BR /&gt;Would it be possible to REXEC a small DCL script on the VAX which searches for the files and returns a status. Your IBM code could then check the stdout and stderr streams and determine whether or not to invoke the conversion script.&lt;BR /&gt;&lt;BR /&gt;I'm also wondering whether it would make any difference if your IBM REXEC initiated the FTP command on the VAX itself.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Ian&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Nov 2005 11:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666675#M50609</guid>
      <dc:creator>Ian McKerracher_1</dc:creator>
      <dc:date>2005-11-08T11:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666676#M50610</link>
      <description>Ian&lt;BR /&gt;Many thanks for this suggestion. I have thought to amend the DCL to do this sort of thing, but my DCL skills are very limited. If you have any code snippets, this would be very much appreciated. The reason we initiate the ftp from the mainframe is that it easily provides the return code indicating sccess or otherwise back to the mainframe job. I guess this could be done from the VAX side. &lt;BR /&gt;&lt;BR /&gt;On another note, the ONLY reason we run the script is because we need the files to be in fixed length format, but as far as we are aware, when transferred using ftp, the files are in stream format and therefore variable length. I could not see any way around this, hence the DCL scripts. Can anyone confirm this limitation (ie. variable length on ftp send to VAX) ?&lt;BR /&gt;Many thanks, Alex</description>
      <pubDate>Tue, 08 Nov 2005 11:30:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666676#M50610</guid>
      <dc:creator>Alex Tough</dc:creator>
      <dc:date>2005-11-08T11:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666677#M50611</link>
      <description>Make that ucx show version.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 08 Nov 2005 11:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666677#M50611</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2005-11-08T11:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666678#M50612</link>
      <description>TCPIP SHOW VERSION works if you have a recent&lt;BR /&gt;version of the DEC/Compaq/HP product, but&lt;BR /&gt;there are others.  For older versions of the&lt;BR /&gt;same product, you could also try:&lt;BR /&gt;&lt;BR /&gt;UCX SHOW VERSION&lt;BR /&gt;&lt;BR /&gt;When that fails, you might try some commands&lt;BR /&gt;like:&lt;BR /&gt;SHOW LOGICAL *TCP*&lt;BR /&gt;SHOW LOGICAL *MULTINET*&lt;BR /&gt;SHOW LOGICAL *TWG*&lt;BR /&gt;and so on, and look for any suspicious hits.&lt;BR /&gt;Be creative, if necessary.&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Nov 2005 11:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666678#M50612</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2005-11-08T11:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666679#M50613</link>
      <description>Alex,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;because we need the files to be in fixed length format, but as far as we are aware, when transferred using ftp, the files are in stream format and therefore variable length. I could not see any way around this, hence the DCL scripts. Can anyone confirm this limitation (ie. variable length on ftp send to VAX) ?&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Yeah,&lt;BR /&gt;welcome to the wonderful cripple shortsighted Unix world  :-(&lt;BR /&gt;&lt;BR /&gt;This is an precisely defined behavior of FTP, inherited from its U*X basiscs:&lt;BR /&gt;_ALL_ files are _ALWAYS_ and _ONLY_ stream_lf.&lt;BR /&gt;&lt;BR /&gt;Some OSses have special extensions (I know about VMS, might well also exist for IBM) that, IF the connection is setup between 2 VMS systems, using the same TCP stack, it can be specified to use extra functions, and retain (or actually: restore) the file structure.&lt;BR /&gt;I definitely do NOT expect such to exist between two different non-UX OSses.&lt;BR /&gt;&lt;BR /&gt;So, what remains is what you have already got: add the knowledge yourself into the script, and reconstruct things.&lt;BR /&gt;&lt;BR /&gt;Sorry, no better news.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Nov 2005 05:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666679#M50613</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-11-09T05:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666680#M50614</link>
      <description>&lt;BR /&gt;If the file is fixed-length records , then You could transfer in FTP BINARY mode, and it will be FIXED-512 on the receiving VMS side, and You would just have to set the record length correctly (set file/attr=(lrl:n)) instead of converting.&lt;BR /&gt;&lt;BR /&gt;Second, the script can test if the file exists by&lt;BR /&gt; f$search(file), and if the result is empty string, jump to error exit:&lt;BR /&gt; if f$search(file).eqs."" then goto not_found.&lt;BR /&gt;&lt;BR /&gt;The question as to why the file doesn't (or not yet) exist after "successfull" FTP :could it be  for some reason the FTP server on the VMS side has not yet finished, i.e. not yet closed the file ? Check it next time on the VMS side: do a "show system" and see if an ftp server process is still there.&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Nov 2005 07:44:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666680#M50614</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-11-09T07:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: File not found failure on ftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666681#M50615</link>
      <description>Joseph&lt;BR /&gt;Sorry, i should have made this clearer. We cannot use binary mode because we have to convert from EBCDIC (IBM mainframe code tables) to ASCII, so binary is not an option.&lt;BR /&gt;regards, Alex</description>
      <pubDate>Thu, 10 Nov 2005 11:22:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-not-found-failure-on-ftp/m-p/3666681#M50615</guid>
      <dc:creator>Alex Tough</dc:creator>
      <dc:date>2005-11-10T11:22:41Z</dc:date>
    </item>
  </channel>
</rss>

