HowToCheck Whether File contain today’s date in its name?

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
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Yes, you can do this in DataStage. This assumes you use a Sequence to get the filename or list of filenames and then you can process this to extract the date.

p.s. Please don't use ASAP in a post, it usually will cause any answers to be much slower. ASAP and URGENT are for paid services and usually carry quite a premium
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If the file name is a job parameter you can make this test in a simple expression if all you want to test for is "contains eight contiguous digits". If you want to check that they form a valid date then you will need a Routine.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply