<?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: Checking for errors within a VMS batch job in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898043#M80236</link>
    <description>A technique that I have used in the past is for the sender to copy the file with a file type dedicated to 'files being copied' perhaps .tmp and then to rename the file after the copy is complete.</description>
    <pubDate>Wed, 15 Nov 2006 04:49:33 GMT</pubDate>
    <dc:creator>Peter Barkas</dc:creator>
    <dc:date>2006-11-15T04:49:33Z</dc:date>
    <item>
      <title>Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898039#M80232</link>
      <description>Greetings,&lt;BR /&gt;&lt;BR /&gt;I have this FTP batch job running on my VMS server.  The batch job is written to do just that.  However, I would like to insert an error check point incase the file was locked from uploading from another server.  I am not sure how to do this.  I am welcome for any suggestions to this subject.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Jorge</description>
      <pubDate>Tue, 14 Nov 2006 10:00:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898039#M80232</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-11-14T10:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898040#M80233</link>
      <description>If you are using the HP TCPIP Services for OpenVMS product then using the COPY/FTP command should return a error to your DCL process if the ftp transfer fails.&lt;BR /&gt;&lt;BR /&gt;$ COPY/FTP ....&lt;BR /&gt;$ IF .NOT. $STATUS THEN ....</description>
      <pubDate>Tue, 14 Nov 2006 10:12:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898040#M80233</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-11-14T10:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898041#M80234</link>
      <description>&lt;!--!*#--&gt;$! Files arriving are via Decnet COPY.  A race condition can exist when the file hasn't&lt;BR /&gt;$! been fully copied and this procedure "finds it".  Test - if we can't OPEN it, we can't FTP it.&lt;BR /&gt;$ OPEN /READ /WRITE /ERROR=LOCKED_FILE FILE 'FILE_TO_SEND'&lt;BR /&gt;$ CLOSE FILE&lt;BR /&gt;$ GOTO ACCESS_OK&lt;BR /&gt;&lt;BR /&gt;Works for me,&lt;BR /&gt;Art</description>
      <pubDate>Tue, 14 Nov 2006 10:14:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898041#M80234</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2006-11-14T10:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898042#M80235</link>
      <description>Hi  Jorge&lt;BR /&gt;For a similar question I use a test for locked status of file. The command waits until target file is unlocked and after executes ftp.&lt;BR /&gt;&lt;BR /&gt;$set noon&lt;BR /&gt;$fil="target_file"&lt;BR /&gt;$do:&lt;BR /&gt;$!Check if file is locked or opened&lt;BR /&gt;$att=f$file_attributes("''fil'","eof")&lt;BR /&gt;$if $status .eqs. "%X00000800" !File open&lt;BR /&gt;$then&lt;BR /&gt;$ wait 00:03&lt;BR /&gt;$ goto do&lt;BR /&gt;$endif&lt;BR /&gt;$ftp &lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;Saludos.&lt;BR /&gt;Daniel.</description>
      <pubDate>Wed, 15 Nov 2006 04:24:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898042#M80235</guid>
      <dc:creator>Daniel Fernandez Illan</dc:creator>
      <dc:date>2006-11-15T04:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898043#M80236</link>
      <description>A technique that I have used in the past is for the sender to copy the file with a file type dedicated to 'files being copied' perhaps .tmp and then to rename the file after the copy is complete.</description>
      <pubDate>Wed, 15 Nov 2006 04:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898043#M80236</guid>
      <dc:creator>Peter Barkas</dc:creator>
      <dc:date>2006-11-15T04:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898044#M80237</link>
      <description>Hi Jorge&lt;BR /&gt;&lt;BR /&gt;We have a mixture of ftp jobs, not all vms 2 vms, other o/s involved so..&lt;BR /&gt; &lt;BR /&gt;I'd recommend that the application/job that sends the file(s) sends a "completed" 1  block file afterwards and that you check for the presence of this file.&lt;BR /&gt;&lt;BR /&gt;Using this method ensures that the file transfer has completed (one or more files) and that you have all the data. You could end up with a situation where the file transfers dies part way through due to unexpected error (network, sending sever fails, diskquota exceeded etc) you could end up processing a partial copied file.&lt;BR /&gt;&lt;BR /&gt;Your dcl code would just check for the completed file, continue if present or wait and loop around a number of times if not present (i.e. consider giving up waiting after so many loops).&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Wed, 15 Nov 2006 07:23:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898044#M80237</guid>
      <dc:creator>John Abbott_2</dc:creator>
      <dc:date>2006-11-15T07:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898045#M80238</link>
      <description>I would keep a log of what FTP said. After the FTP read it, parse it and compare it with a good ftp. Error as soon as something is missing or given extra.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 15 Nov 2006 07:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898045#M80238</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-11-15T07:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898046#M80239</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The file being generated on the Wintel server and FTPed down to the VMS server at a scheduled time.  From the VMS server I will check for this file and FTP up to our client FTP site.  The reason I like to do the error checking due to the repeat of this FTP process every 15 minutes interval.&lt;BR /&gt;&lt;BR /&gt;I will update my FTP batch job and post it online for your review.  Please review it and give me your suggestion.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Jorge&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Nov 2006 10:30:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898046#M80239</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-11-15T10:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898047#M80240</link>
      <description>You may find FTSO of interest - its' free&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/freeware/freeware70/ftso/" target="_blank"&gt;http://h71000.www7.hp.com/freeware/freeware70/ftso/&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Nov 2006 12:25:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898047#M80240</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-11-15T12:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898048#M80241</link>
      <description>Ian,&lt;BR /&gt;&lt;BR /&gt;Thanks for the link.  By the way, how do you use these programs?  There was a readme file but nothing for installation intructions.&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Wed, 15 Nov 2006 12:48:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898048#M80241</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-11-15T12:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898049#M80242</link>
      <description>Automate your ftp session as follows:&lt;BR /&gt;&lt;BR /&gt;1. Before calling ftp, set sys$output to a file (to trap ftp output).&lt;BR /&gt;2. Call ftp using /input to give ftp your copy (put) command.&lt;BR /&gt;3. After the ftp command, check the output file for a sucess string. (The success string might vary; check your output file to be certain).&lt;BR /&gt;&lt;BR /&gt;$ def/user sys$output ftp.output&lt;BR /&gt;$ ftp 192.168.1.1 /user="username" /pass="password" /input=ftp.input&lt;BR /&gt;$ sea/noout ftp.output "226 Transfer complete"&lt;BR /&gt;$ if $STATUS .ne. 1 then write sys$output "FTP failed."&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Nov 2006 06:20:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898049#M80242</guid>
      <dc:creator>Shlomo Berlinger</dc:creator>
      <dc:date>2006-11-27T06:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for errors within a VMS batch job</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898050#M80243</link>
      <description>Great!!  I will give it try and let you know how it went.&lt;BR /&gt;&lt;BR /&gt;Sometime, I wish I can assign more points than the usual 10 pts deal.&lt;BR /&gt;&lt;BR /&gt;Have a great day!!&lt;BR /&gt;&lt;BR /&gt;Jorge</description>
      <pubDate>Mon, 27 Nov 2006 19:07:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/checking-for-errors-within-a-vms-batch-job/m-p/3898050#M80243</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-11-27T19:07:24Z</dc:date>
    </item>
  </channel>
</rss>

