AFT: Disposition of Source on FTP of a Directory

Everything about Control-M Control Modules
Post Reply
User avatar
fbladmin
Nouveau
Nouveau
Posts: 15
Joined: 28 Apr 2009 12:00
Location: Iowa

AFT: Disposition of Source on FTP of a Directory

Post by fbladmin » 01 Sep 2009 8:23

We've got a request to FTP the files in a specific directory on a Linux server. They would like to have the files sent deleted at completion.

Does anyone know how that can be accomplished without deleting the directory?

Any experiences will be appreciated.

User avatar
th_alejandro
Nouveau
Nouveau
Posts: 188
Joined: 26 Nov 2008 12:00
Location: Bogotá

if you are...

Post by th_alejandro » 01 Sep 2009 10:18

If you are using Job type AFT, click on FILETRANS, click on ADVANCED button. Select DELETED checkbox in 'After the completion of a successfull file transfer the source will be :' and specify in Filename : /path/$$AFTFILE_ALL$$

User avatar
fbladmin
Nouveau
Nouveau
Posts: 15
Joined: 28 Apr 2009 12:00
Location: Iowa

Post by fbladmin » 09 Sep 2009 6:43

I'm finally moving forward with testing this. What I'm finding is that when "delete" is checked, the "filename" field isn't available for edit so I'm not sure exactly how to implement this suggestion.

I'm sure I've missed something on this. Any ideas?

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 10 Sep 2009 1:32

+ Job started at '0910 13:24:02:069' orderno - '032p1' runno - '00006'
Number of transfers - 2
+ Host1 'sapteus2'[Unix-LOCAL] username 'aftuser2' - Host2 'ctmtest2'[Unix-FTP] username 'aftuser1'
Local host is: sapteus2 - SunOS 5.8 Generic_117350-23 sun4u - SUNW,Sun-Fire-15000 sparc
+ ********** Starting transfer #1 out of 2 ***************
Connection to FTP server on host ctmtest2 was established
Transfer #1 transferring
Src file: '/var/aftuser2/data/Synchro_ControlmEM_OUT.12201' on host 'sapteus2'
Dst file: '/var/aftuser1/data/Synchro_ControlmEM_OUT.12201' on host 'ctmtest2'
Open data connection for command: STOR Synchro_ControlmEM_OUT.12201
ftp reply --->150 Binary data connection for Synchro_ControlmEM_OUT.12201 (10.126.116.95,35521).
Transferred: 0 Elapsed: 0sec Percent: 0 status: In Progress
Transferred: 1196 Elapsed: 0sec Percent: 100 status: Ended OK
Source file 'Synchro_ControlmEM_OUT.12201' deleted successfully Transfer #1 completed successfully

+ ********** Starting transfer #2 out of 2 ***************
Open data connection for command: RETR Synchro_ControlmEM_OUT.12201
ftp reply --->150 Binary data connection for Synchro_ControlmEM_OUT.12201 (10.126.116.95,35539) (1196 bytes).
Transfer #2 transferring
Src file: '/var/aftuser1/data/Synchro_ControlmEM_OUT.12201' on host 'ctmtest2'
Dst file: '/var/aftuser2/data/Synchro_ControlmEM_OUT.12201' on host 'sapteus2'
Transferred: 0 Elapsed: 0sec Percent: 0 status: In Progress
Transferred: 1196 Elapsed: 0sec Percent: 100 status: Ended OK
Source file 'Synchro_ControlmEM_OUT.12201' deleted successfully
Transfer #2 completed successfully

Job executed successfully. exiting.

Job ended at '0910 13:24:02:717'
Elapsed time [0sec] CPU usage [0.0sec]


i don't really know where is the problem ...
could you explain a little more ?

regards
philmalmaison

Post Reply