Operating System - OpenVMS
1828349 Members
3050 Online
109976 Solutions
New Discussion

Re: Using input file with FTP

 
SOLVED
Go to solution
Martin Slimmer
Advisor

Using input file with FTP

I'm attempting to use the following VMS command:

FTP STEAM /USERNAME=uname /PASSWORD=pswd /INPUT=node01_GetFiles.txt

The Node01_getfiles.txt file contains "get" commands:

get dir:file1.txt dir2:file01.txt
get dir:file2.txt dir2:file02.txt
get dir:file3.txt dir2:file03.txt
get dir:file4.txt dir2:file04.txt

All works fine if file1.txt exists. However, if file1.txt does NOT exist, then the rest of the "get" commands do not execute. I'm fairly sure the resolution is pretty simple, but I'm stumped as to what it might be. Can anyone assist me? Please keep your replies "simple", as I'm not a VMS guru by any means. It's also possible that file 3 or file 4 might not exist either, but I do want to get any of the file indicated that *do* exist.

Thanks,
- Martin
4 REPLIES 4
Arch_Muthiah
Honored Contributor
Solution

Re: Using input file with FTP

Martin,

Set the error/warinig tolerence level from the FTP prompt.
There are couple of error toloerance level can be set for all the FTP commands.

ERROR - FTP tolerates errors and warnings and keep continue to the next commands.

Warning - FTP tolerates warning

SUCCESS -- default (in your case), FTP does not tolerate any kind of error, it exits immly.

This is the command to set the ERROR level.

FTP> SET ERROR_LEVEL ERROR

Then you can execute your FTP procedure

or

Add the above SETB command in your Node01_getfiles.txt as the first command.

Bye
Archunan
Regards
Archie
Martin Slimmer
Advisor

Re: Using input file with FTP

Excellent -- the SET ERROR_LEVEL ERROR command was exactly what I needed! :)
Hein van den Heuvel
Honored Contributor

Re: Using input file with FTP

An other happy customer :-)

Welcome to the OpenVMS ITRC forum Martin.

Be sure to checkout:

http://forums1.itrc.hp.com/service/forums/helptips.do?#28

You may want to 'lock' this topic later today or tomorrow.

Cheers,
Hein
( 0 points for this reply please)
Martin Slimmer
Advisor

Re: Using input file with FTP

Solution discovered -- needed the command

FTP> set error_level error