Using MONTH.TAG in the Transformer Stage

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
nilaytewari
Participant
Posts: 2
Joined: Tue Jul 25, 2006 3:14 am

Using MONTH.TAG in the Transformer Stage

Post by nilaytewari »

Hi
I was trying to use the MONTH.TAG in the transformer stage. I am taking the input from a db thru a link and then putting it after transformation to a sequential file.
I am using the DS transform and selecting the MONTH.TAG(%Arg% as Date) as MONTH.TAG and providing the Date as the input for the Argument.
I have also changed the definition of the Date column in the sequential file and made data element to MONTH.TAG and data type as char and length as 7.

Still the date format remains yyyy-mm-dd instead of yyyy-mm in the Sequential file.
Can someone please help in this regard. I am a beginner in DS.
dsnovice
Participant
Posts: 38
Joined: Thu Jul 22, 2004 11:56 pm
Location: Mclean, VA
Contact:

Post by dsnovice »

I would try Oconv(Iconv(%Arg%,"D-YMD"),"D-YM[4,2]") .

IHTH,

Novice
Post Reply