cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameters to Functions in BODS

Former Member
0 Kudos

Hi Experts,

Can you explain the purpose of passing parameters to Function in BODS scripts?

And also about the significance of return parameters.

Thanks in advance!!

Accepted Solutions (0)

Answers (1)

Answers (1)

rajan_burad
Active Participant
0 Kudos

Hello Harish,

Parameters are the values that are passed to a particular function. These parameters then manipulate the data and return the result.

Consider the below example:

replace_substr() accepts 3 parameters as input values.

Consider $ROOT_FILE = 'RAJAN' as the input string. User want to replace letter 'A' with 'Z', since the function requires 3 parameters: Input String which needs to be manipulated, which character/value needs to be modified, what value should be replaced in the input.

So in the above string 'A' needs to be replaced with 'Z'.

Upon execution:

About return parameters, the function returns some output value. Here the returned string is 'RZJZN'.

Hope it helps!

Thanks.