- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Checking for errors within a VMS batch job
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2006 02:00 AM
тАО11-14-2006 02:00 AM
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.
Thank you in advance.
Jorge
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2006 02:12 AM
тАО11-14-2006 02:12 AM
Re: Checking for errors within a VMS batch job
$ COPY/FTP ....
$ IF .NOT. $STATUS THEN ....
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2006 02:14 AM
тАО11-14-2006 02:14 AM
Solution$! been fully copied and this procedure "finds it". Test - if we can't OPEN it, we can't FTP it.
$ OPEN /READ /WRITE /ERROR=LOCKED_FILE FILE 'FILE_TO_SEND'
$ CLOSE FILE
$ GOTO ACCESS_OK
Works for me,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2006 08:24 PM
тАО11-14-2006 08:24 PM
Re: Checking for errors within a VMS batch job
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.
$set noon
$fil="target_file"
$do:
$!Check if file is locked or opened
$att=f$file_attributes("''fil'","eof")
$if $status .eqs. "%X00000800" !File open
$then
$ wait 00:03
$ goto do
$endif
$ftp
....
Saludos.
Daniel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2006 08:49 PM
тАО11-14-2006 08:49 PM
Re: Checking for errors within a VMS batch job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2006 11:23 PM
тАО11-14-2006 11:23 PM
Re: Checking for errors within a VMS batch job
We have a mixture of ftp jobs, not all vms 2 vms, other o/s involved so..
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.
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.
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).
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2006 11:29 PM
тАО11-14-2006 11:29 PM
Re: Checking for errors within a VMS batch job
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2006 02:30 AM
тАО11-15-2006 02:30 AM
Re: Checking for errors within a VMS batch job
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.
I will update my FTP batch job and post it online for your review. Please review it and give me your suggestion.
Thank you in advance.
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2006 04:25 AM
тАО11-15-2006 04:25 AM
Re: Checking for errors within a VMS batch job
http://h71000.www7.hp.com/freeware/freeware70/ftso/
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2006 04:48 AM
тАО11-15-2006 04:48 AM
Re: Checking for errors within a VMS batch job
Thanks for the link. By the way, how do you use these programs? There was a readme file but nothing for installation intructions.
J