on 06-01-2008 8:36 AM
Hi all,
I am working on a scenerio wherein receiver is a flat file.At output i need 2 files to be created:
file one has the actuall payload and second file should contain the name of first file.
This second file needs to be created with a OS command(after message processing) in file adapter(FTP), Please tell me wat should the command be, so that a file is created in the same location as file1 with the name of file1.
I tried "echo %f >> filename.txt" but no file was created.Please help.
Thankyou.
Edited by: shruthi .. on Jun 2, 2008 7:54 AM
HI,
You need to write Shell script for this kind of requirement,
There is a split command available
SPLIT -- Split a file into fixed-size pieces
Refer below pdf for reference commands
http://www.maths.dundee.ac.uk/software/OSXcommands.pdf
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shruti,
try to give following command in your command line of file adapter
D:\usr\sap\SID\DVEBMGSXX\file_cat\copy.txt %f
thanks
Sunil Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.