Filter condition based on value in field

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
raji33
Premium Member
Premium Member
Posts: 151
Joined: Thu Sep 23, 2010 9:21 pm
Location: NJ

Filter condition based on value in field

Post by raji33 »

Hi

I have a requirement where i need to schedule jobs once a month. And if the day falls on weekend then i need to run the jobs on monday. For this i chose the below approach .

we have a date dim table and i am comparing current day with isodate in date dim and getting the day and writing into a csv file. Now in sequence i have added this job and i want to get the day field from csv file want to add a filter if the day is 'SAT' or 'SUN' do not run the next job. How should i implement this in datastage?

I would also welcome if any other approaches are possible for this scenario.

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

An Execute Command stage can read the sequential file via cat and then trigger expressions can check the value and branch accordingly. Alternately, use a Nested Condition stage to perform the check and branching after reading in the file.
-craig

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