cancel
Showing results for 
Search instead for 
Did you mean: 

OS command before msg processing: In sender FTP

Former Member
0 Kudos

hi all,

i have a file-to-file scenario.Now i have to pick the latest file from FTP folder based on timestamp.All the files are named in yyyymmdd format .I came to know that i can run an OS command before message processing to delete the old files and keep the latest file in the folder.

But i do know know how to write the script for this particular requirement.Can anybody please help me out with the code???

regards,

Nisheeta

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

If you want to delete filenames from Adapter use the following sample code:

File adapter OS Command: D://server_dir//subdir//myCMDfile.bat %F

Batch file:

del %1 new_filename_with_path

OR

Please see the below links

/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching

Hope this solves your problem.

Regards

Chilla..

Former Member
0 Kudos

If you need or want to execute specific OS command via FTP you can use this guide:

http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/rzaiq/rzaiqrcmd.htm

But the support of OS command depends from with FTP server you are connecting to.

Regards,

Sandro

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

See this thread very usefull.

Regards

Chilla..