Date from File name...

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
mallireddibalaji
Participant
Posts: 24
Joined: Wed Mar 19, 2008 1:13 am

Date from File name...

Post by mallireddibalaji »

Hi,

we are replacing our old system(PROC) by datastage jobs.
In old system, for date field we are getting date from file name itself.
That file name format like this:A01yymmdd0.dat

In our data stage how we can handle this one?


Thanks in advance...
M.BALAJI
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Would need more information on how you are using the date, but basically you can substring the 'yymmdd' portion out of the filename, then use functions to convert it, if need be.
-craig

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