Page 1 of 1

initcap

Posted: Mon Dec 18, 2006 12:06 am
by dr46014
hi all
is there any initcap function in DataStage.How can i do initcap in DataStage..

Posted: Mon Dec 18, 2006 12:23 am
by chulett
Yes.

First suggestion would be to check the BASIC section of the online Help. There's a part where it lists functions based on what kind of operation you need to do. You would have found your answer there.

Direct answer is there is an OConv conversion code to do this, but I don't recall it off the top of my head. Biggest reason for that is because I don't need to - there are Transforms that make it easier to use and self-documenting. The one you are looking for is Capitals and I suggest you open it up in the Manager and see how it was defined, perhaps even read up on on the conversion code, rather than just type it in and use it.

Teach a man to fish...

Posted: Mon Dec 18, 2006 12:26 am
by ajith
There is no initcap function in PX Transformer as such. I think you have to write a parallel routine for that.

Thanks,
Ajith

Posted: Mon Dec 18, 2006 12:34 am
by chulett
Just for you, I logged into work to get the gory details on helping you help yourself. :wink:

Turns out this particular 'task' isn't listed where I pointed you, although many others are. However, going to transforms (server jobs) in the Index does turn it and its brethren up in the string sub-category.

Suggest you read through all of the transforms as they can come in rather handy. :wink:

Posted: Mon Dec 18, 2006 12:35 am
by chulett
ajith wrote:There is no initcap function in PX Transformer as such. I think you have to write a parallel routine for that.
Posted as a 'Server' question, hence my answer.

Posted: Mon Dec 18, 2006 12:43 am
by ajith
chulett wrote:
ajith wrote:There is no initcap function in PX Transformer as such. I think you have to write a parallel routine for that.
Posted as a 'Server' question, hence my answer.
My Mistake , You are right

:roll: :roll:

Posted: Mon Dec 18, 2006 8:40 am
by DSguru2B
The ICONV/OCONV conversion code that gets this done is "MCT".