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

Getting Delete error using REXX and FTP from Server


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srj1957

New User


Joined: 15 Dec 2005
Posts: 72
Location: RALEIGH NC, USA

PostPosted: Sat Feb 18, 2012 1:49 am
Reply with quote

I can retrieve files using the wild card asterisk
Code:
PCFILA = "clinic*.csv"                         
MFFILA = "'ABC.DBF.XYZ'"       
QUEUE "GET" PCFILA MFFILA   

This works fine...

When I try to delete it

Code:
pcfila = "clinic*.csv"
queue "delete" pcfila



I get this error
Code:
EZA1701I >>> DELE clinic*.csv         
450 Deletion failed   


I can delete it if I put the full filename

Code:

pcfila = "clinic_20100214.csv"
queue "delete" pcfila 


Works perfect


Does anyone know how to resolve this
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 Feb 18, 2012 2:01 am
Reply with quote

Bear in mind that I know nothing about your site or what kind of FTP server you're communicating with, but when I logon to my site's Windows FTP Server, and issue a HELP DELE command, it clearly indicates that it has to be a full filename. When I issue a HELP MDEL, it indicates that it can be any part of a filename.

As an EDI and Data Transmission Specialist, I highly recommend that you steer clear of using any wildcard-supported commands, like MGET, MPUT, or MDEL, and instead use the specific commands for specific filenames only (GET, PUT, DELE).
Back to top
View user's profile Send private message
srj1957

New User


Joined: 15 Dec 2005
Posts: 72
Location: RALEIGH NC, USA

PostPosted: Thu Feb 23, 2012 8:26 pm
Reply with quote

Ok Thanks for the reply....
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts DELETE SPUFI DB2 1
No new posts Error when install DB2 DB2 2
Search our Forums:

Back to Top