deriving Month and Year to seperate columns

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
pxraja
Participant
Posts: 142
Joined: Fri Mar 14, 2008 10:22 am

deriving Month and Year to seperate columns

Post by pxraja »

Hi all,

I am trying to derive from source field whose datatype is varchar2 i.e, for example,

Inlink.field0
Mar 08
Jun 08
Jul 08


Outlink.Field1 Outlink.Field2
MARCH 2008
JUNE 2008
JULY 2008


I am trying to achieve using Oconv & Iconv as column derivation

Oconv(Iconv(UpCase(Inlink.field0),"D MY[A3,2]"),"D M[A]") mapped to Outlink.Field1

Oconv(Iconv(UpCase(Inlink.field0),"D MY[A3,2"),"D Y[]") mapped to Outlink.Field2

while I am running the job no records has been transferred also no error is coming.

Can anyone help me in resolving this

Thanks in Advance
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The only way that no records are transferred is if you have a constraint expression. Please check this.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pxraja
Participant
Posts: 142
Joined: Fri Mar 14, 2008 10:22 am

Post by pxraja »

Hi Ray

Thanks for your reply

No Constraints used direct mapping
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Describe your job design. Explain in detail what "no records has been transferred" means.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply