Operating System - OpenVMS
1753404 Members
7010 Online
108793 Solutions
New Discussion юеВ

How to delete file without version or wildcard

 
Nick Garroch
New Member

How to delete file without version or wildcard

I know this flies in the face of OVMS standards but, I am using BizTalk server 2004 and I trying to get the FTP adapter to work. Unfortunately OVMS is not supported because when it attempts to delete the file it doesn't add an ";" ";1" or "." and OVMS rejects the delete. In does this using a the raw ftp command DELE. This means you are trapped in the FTP procedure and cannot do anything clever in login.com.
Does anyone know of a way to delete a file in OVMS without a version number or wildcard?
8 REPLIES 8
Ian Miller.
Honored Contributor

Re: How to delete file without version or wildcard

The BizTalk server is communicating with a ftp server and issues a DELE command - is that correct? Which ftp server?
____________________
Purely Personal Opinion
Karl Rohwedder
Honored Contributor

Re: How to delete file without version or wildcard

You can try another FTP server, e.g. the FTP server from Hunter Goatley (HGFTP). It can replace your standard server or you can run it in parallel using another port.
It allows deletion of the highest version without specifying a versionnumber.

Example:

FTP> dele TDC$SAP01$050623102008.LOG
250 Delete file BO_USER_1:[ROHWEDDER]TDC$SAP01$050623102008.LOG;1, completed.

For the kit see http://www.process.com/openvms/index.html.

regards Kalle
Jan Schollaert
Advisor

Re: How to delete file without version or wildcard

Hi,

Try this :

$ DEFINE /SYSTEM TCPIP$FTP_NO_VERSION 1

Restart ftp service...

Example ftp from Windows XP to VMS:

C:\>ftp xxxxx
Connected to xxxxx.
220 xxxxx FTP Server (Version 5.4) Ready.

ftp> del q.com
250 File USER1:[SCHOLLAERT]Q.COM;1 deleted.
ftp>

Cheers,

Jan
Karl Rohwedder
Honored Contributor

Re: How to delete file without version or wildcard

Jan,

this does not work here (TCPIP V5.5-Eco1) and acc. to the documentation the logical name TCPIP$FTP_NO_VERSION suppresses version numbers to be sent using the LS or MGET commands.

Log:

(LNM$SYSTEM_TABLE)

"TCPIP$FTP_NO_VERSION" = "1"

FTP> dele vuw30.trace
550-Failed to delete file vuw30.trace
550 The file specification must contain a version number (even if wildcarded).
FTP>
Ian Miller.
Honored Contributor

Re: How to delete file without version or wildcard

I think its the ftp server that is complaining. The logical mentioned affects display of information only.

HG FTP may do what you want.
ftp://ftp.process.com/vms-freeware/fileserv/hgftp.zip
____________________
Purely Personal Opinion
Jan van den Ende
Honored Contributor

Re: How to delete file without version or wildcard

Nick,

I know nothing of BizTalk, and more importantly, I do not know how much control you can get over the VMS environment, but yout question

Does anyone know of a way to delete a file in OVMS without a version number or wildcard?

in itself IS solvable, if you can somehow get a logical name defined:

$ DEFINE ;0

and then DELETE

Notice the that is appended to

Now, how you can manage to define that logical bocomes another problem, and I have not the faintest idea about the (im-)possibility of that, but, at least, it IS anoher possible road to a solution.

hth.

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Jan Schollaert
Advisor

Re: How to delete file without version or wildcard

Carl,

My example is the output of a test I just did. That proves it works...

Important is that I started the ftp session from a Windows client. When I start the session from a VMS system, I get the error...

Jan
Jan Schollaert
Advisor

Re: How to delete file without version or wildcard

Hi Karl,

Also 5.5 on VMS 8.2 work for me. But don't forget to stop/start the ftp service....

220 xxxx FTP Server (Version 5.5) Ready.
User (xxxx:(none)): schollaert
331 Username schollaert requires a Password
Password:
230 User logged in.
ftp> del z.z
250 File USER1:[SCHOLLAERT]Z.Z;1 deleted.
ftp>Best regards,

Jan