Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP Delete returns RC=0008

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
mrgnndhmk

New User


Joined: 01 Feb 2006
Posts: 49
Location: India

PostPosted: Sat Jun 23, 2012 2:40 am    Post subject: FTP Delete returns RC=0008
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

Moderator Team Head


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

PostPosted: Sat Jun 23, 2012 3:38 am    Post subject: Reply to: FTP Delete
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: 49
Location: India

PostPosted: Sat Jun 23, 2012 3:53 am    Post subject: Reply to: FTP Delete
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Sat Jun 23, 2012 5:26 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts Delete VSAM File Records amitc23 CICS 6 Sun Apr 10, 2016 10:10 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us