IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP Delete returns RC=0008


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mrgnndhmk

New User


Joined: 01 Feb 2006
Posts: 51
Location: India

PostPosted: Sat Jun 23, 2012 2:40 am
Reply with quote

Hi All,

Is there any option to use MDELETE in FTP PROC used? FTP is not able to recognize the command MDELETE.

Also, if a file is not found in FTP directory and DELETE command is issued, the step returns RC=0008.

Can we suppress this error when a file is not found?

Regards,
Muruganandham k
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Jun 23, 2012 3:38 am
Reply with quote

Yes, MDELETE is most certainly supported in the z/OS Communications Server FTP program:

5.40 MDelete subcommand--Delete multiple files.

Have you tried using the EXIT= parameter to force a zero completion code?
Back to top
View user's profile Send private message
mrgnndhmk

New User


Joined: 01 Feb 2006
Posts: 51
Location: India

PostPosted: Sat Jun 23, 2012 3:53 am
Reply with quote

My bad. I missed the information that I am in a VSE environment and Server is a VM Server.

Are these commands supported in VSE/VM?

It says EXIT is an unidentified parameter.

// EXEC PROC=FTP
// EXEC FTP,PARM='IP=XXX.XXX.XXX.XXX,EXIT'
USER ID
PSWD
TCP/IP USER ID
TCP/IP PSWD
CD TEST
DELETE XXX.TXT
QUIT
/*
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Jun 23, 2012 5:26 am
Reply with quote

Code:
// EXEC FTP,PARM='IP=XXX.XXX.XXX.XXX,EXIT'
would be
Code:
// EXEC FTP,PARM='XXX.XXX.XXX.XXX (EXIT'
on a z/OS machine; I don't know about VSE though.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
No new posts volume mass delete RMM JCL & VSAM 2
Search our Forums:

Back to Top