on 07-10-2012 4:18 AM
HI
Need some help here....
I want to write an UDF function to concatenate a string with Timestamp and pass the same to the Recieiver level......like as below..
TESTFILE_YYYYMMDDHHMMSS
Please help ...if anybody already implemented ...
Thanks
hi sabu,
please seach SCN before posting Question because it's very common Query ...
Thanks,
Sankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
then you just need to use the code to create dynamic configuration as per my blog:
in your UDF (code in the blog)
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
Pls Try this udf.
sValue = Constant Value("TESTFILE")
import java.text.SimpleDateFormat;
import java.util.Date;
public static String concatenate (String sValue){
String DATE_FORMAT = "YYYYMMDDHHMMSS";
Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
return sValue + "_'' + sdf.format(date).toString();
}
Regards
Lucho
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.