BODS Scripting: Select
BODS Scripting: Select
Select:
Update:
Delete:
Truncate:
Ifthenelse in script :
IF ( 1 = 1)
Begin
End
Else
Begin
end
While loop :
begin
begin
Print('############### The
FILENAME_[$G_Region]_UPDATE_[$G_ZIP_SYSDATE].zip file exist in InDir
folder');
end
$G_Count = $G_Count+1;
sleep($G_Sleep_Time);
end
Functions:
1 .Aggregate functions:
Ex : Current_system_configuration()
Ex: file_exists(<file_path>)
Ex : gen_row_num_by_group(field name)
Ex: gen_row_num()
Ex : ifthenelse (1=1,’A’,’B’)
Ex : length(field)
12. lookup_ext : we can extract multiple column values from look up table.
13. lpad : lpad(<input_string>,<size>,'<pad_string>')
Ex: lpad('Tanaka', 15, ' ') – Here we are doing lpad with space (‘’)
Result ( Tanaka)
Ex: rpad('Tanaka', 15, ' ') – Here we are doing rpad with space (‘’)
Ex: raise_exception(<error_msg>)
18. sleep : Suspends the execution of the calling data flow or work flow.
Ex : sleep(<num_millisecs>)
19. sysdate() : it will generate the current system date.
Ex: sysdate()
22. Word_ext :
Returns the word identified by its position in a delimited string.
Ex : input – 123,345,456