Handling date in a sqeuence

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
fadle
Participant
Posts: 11
Joined: Wed Oct 22, 2008 7:09 am

Handling date in a sqeuence

Post by fadle »

I have a parameter in the sequence indicating a date. This parameter is in a String format "YYYYY-MM-DD". one parallel job inside the sequence need the day before the date of this parameter. I created a parameter in the sequence to change the date that will be sent to the job, but I'm having trouble with the functions that can deal with this date in the sequence.
Fadle
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Re: Handling date in a sqeuence

Post by betterthanever »

once the parameter is passed to the job, where do you want to calculate the previous day for that date?? in a transformer??? or in a where clause??
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

IConv and OConv
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

Sainath.Srinivasan wrote:IConv and OConv
I don't think we have Iconv()/Oconv() in parallel jobs.
hi sam here
fadle
Participant
Posts: 11
Joined: Wed Oct 22, 2008 7:09 am

Post by fadle »

once the parameter is passed to the job, it is used to read a file with CFF. The file name is name#date# where date should be the date retreived from the sequence.
Fadle
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

The requirement is in the sequencer and not in the job.
vinothkumar
Participant
Posts: 342
Joined: Tue Nov 04, 2008 10:38 am
Location: Chennai, India

Post by vinothkumar »

Place a User Variable stage in the sequencer and do the calculations on date. Once you have calculated the previous date you can pass this value for that parallel job as job parameter
Post Reply