View previous topic :: View next topic
|
Author |
Message |
rohanatl
New User
Joined: 21 Oct 2005 Posts: 22
|
|
|
|
I'm doing an FTP from server(Input) to mainframe(Output) and the job is working fine, is there any way to delete the file present on the server after the FTP step? |
|
Back to top |
|
|
XungoPejcao
New User
Joined: 04 Sep 2008 Posts: 5 Location: EspaƱa
|
|
|
|
You can use the command FTP "delete" that delete remote file.
Code: |
get FILE_UNIX.TXT
delete FILE_UNIX.TXT
close
end
|
|
|
Back to top |
|
|
Srinivasa Rao
New User
Joined: 21 Jun 2005 Posts: 75
|
|
|
|
Hi,
I am not unix person... but I did not see delete command in UNIX.
rm is used for removing file...
You can use
get file.txt
rm file.txt
quit |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
FTP is not UNIX. You can use the DELETE (or even DIR) command in FTP and get the expected results. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Clarification: DIR works in FTP just like LS -- check the Communications Server User's Guide manual for all the FTP commands. But don't think they are UNIX commands! |
|
Back to top |
|
|
Srinivasa Rao
New User
Joined: 21 Jun 2005 Posts: 75
|
|
|
|
Sorry my mistake...
As Robert said these are not unix commands.
We are using windows servers and FTPing data to and from windows servers.
Please ignore my previous posting...
In windows we are using as below
IP Address
User Id
Password
cd /path name
PWD
type a
GET file name 'dataset name' (replace
delete file name
quit
Not sure about unix part... |
|
Back to top |
|
|
Vasukip Currently Banned New User
Joined: 17 Jun 2008 Posts: 48 Location: Chennai
|
|
|
|
Normally in z/os mainframe we are using the following
Code: |
(EXIT
servername
username
password
Type
locsi ( lrecl and file type)
GET Server_ file_ Name 'Mainframe File Name' (REPLACE
DELETE Server_ file_ Name
quit |
|
|
Back to top |
|
|
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
Hi Robert
can you post the link for Communications Server User's Guide manual. i tried it but could not find that manual.. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
Back to top |
|
|
|