cancel
Showing results for 
Search instead for 
Did you mean: 

File creation using OS command

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

sunil_singh13
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi sunil,

Thanks for your reply but Please explain me this command. "D:\usr\sap\SID\DVEBMGSXX\file_cat\copy.txt %f"

Thanks

shruthi

Edited by: shruthi .. on Jun 3, 2008 5:42 AM