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

BODS exec() function and the Flags parameter

Former Member
0 Likes
14,078

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

Use 8 as flag. Also encapsulate exec in print() to print return from command in trace log.

print ( exec( 'del', '[$GV_OUTBOUND_DIR]\\[$RAY_SALES_FILE]' , 8)) ;