I was wondering if there is an option with the UpCase function that would only upper case the first letter of a name field. I know I can do this with UpCAse and DownCase by upper casing the the first character and down casing the rest and concatinate them… Is there an easier way to do this? Thanks

Hi,

I agreed with Siva’s solution.

If your source database is oracle then
write user defined SQL query using initcap() function
for example.

In emp table employee name first character is capital rest of all is small
then select empno,initcap(ename),sal,mgr, hiredate,comm,deptno from emp;

Hi Friends,

Greetings!!!

If we want to change the letters with in string, then we can use field
function.

But, here we want to change the first letter to uppercase. So, for this
initcap() is available in Oracle. But, this type of function is available or
not in Datastage, I don’t know exactly.

I agreed with Ramesh’s solution for this…
By using Function’s in Transformer
upcase(column[1,1]:downcase(column[2,len(col)] then we got output…

Hi,

By using Function’s in Transformer
upcase(column[1,1]:downcase(column[2,len(col)] then we got output…

Regards,
Ramesh

I think field function is only way to change uppercase and lowercase.

I am not using a Server job. And I only need the first initial Capitalized… I can do it just as I explained.

Hi,

In Datastage 8.1 there is a transform called CAPITALS that to this using server job.
You can find it in Designer, folder :
Transform / Built-In / String /

You just have to add:
" CAPITALS ( name field ) "
in a transformer of your server job

Regards,

Ghislaine Ndeutchi