RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
2 | * Description : Create UDF to concatenate two input strings. | ||||
3 | * Expected Res : Success | ||||
4 | * Date : Sep 5th 2012 | ||||
5 | */ | ||||
6 | |||||
7 | drop dataverse test if exists; | ||||
8 | create dataverse test; | ||||
9 | |||||
10 | write output to nc1:"rttest/cross-dataverse_udf22.adm"; | ||||
11 | |||||
12 | create function test.getFullName($fname,$lname){ | ||||
13 | string-concat([$fname,$lname]) | ||||
14 | } | ||||
15 | |||||
16 | let $fn := "Bob" | ||||
17 | let $ln := "Harbus" | ||||
18 | return test.getFullName($fn,$ln) |