cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BODS exec() function and the Flags parameter

Former Member
0 Likes
14,075

Does anybody have experience using the exec() function in BODS to execute commands like 'move', 'delete', and 'copy'? I am curious about what the flags parameter refers to (in bold below):

Syntax:
exec( [in] FileName As varchar, [in] Arguments As varchar, [in] Flags As int ) As varchar

The way I am using the command is as follows, I just don't know what I should use for the flag parameter:

exec('cmd','del [$GV_OUTBOUND_DIR]\\[$RAY_SALES_FILE])', ???)

I believe it is supposed to be an integer between 0 and 8, I'm just not sure what the different flags do.  Any ideas?

Thanks!

View Entire Topic
Former Member
0 Likes

HI Anthony,

The exec() function sends a command to OS and returns a message back with a Flag. Usually we give 8 as the Flag but you can also try other options. Please refer to DS reference guide

Regards

Arun Sasi