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

BODS exec() function and the Flags parameter

Former Member
0 Likes
14,079

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

Thanks everybody.  I found the answer in the DS Reference Guide:

I went with 8 for the flag in the script I was writing.

former_member187605
Active Contributor
0 Likes

That's where it so often is .