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
 

 

Getting Delete error using REXX and FTP from Server

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Getting Delete error using REXX and FTP from Server
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

Moderator Team Head


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

PostPosted: Sat Feb 18, 2012 2:01 am    Post subject: Reply to: Getting Delete error using REXX and FTP from Serv
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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