Date and time setup for sequential file stageYYYYMMDDHH24

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
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Date and time setup for sequential file stageYYYYMMDDHH24

Post by mandyli »

Hi


I am creating one flat file with following format from Oracle table.

This is simple and direct mapping job.

The File format is abc_YYYYMMDDHH.txt.

In the sequential file stage how will i integrate file name with current date and time.
Thanks in advance
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Either pass the "date time" in as a Job Parameter and #include# it in the filename or create a static filename and rename it after job to include that information.
-craig

"You can never have too many knives" -- Logan Nine Fingers
skbodla
Premium Member
Premium Member
Posts: 1
Joined: Wed Nov 12, 2008 8:08 pm
Location: Charlotte nc

how to set date time to job parameter in 8.0

Post by skbodla »

how to set date time to job parameter in 8.0

chulett wrote:Either pass the "date time" in as a Job Parameter and #include# it in the filename or create a static filename and rename it after job to include that information. ...
BSK
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Same way as in any other version - typically, a routine that gets and formats the time. A Routine Activity in a Sequence job can then easily pass it to the job. @DATE, @TIME, TimeDate() etc can be used to get this information.
-craig

"You can never have too many knives" -- Logan Nine Fingers
seshikumar
Participant
Posts: 44
Joined: Fri Mar 16, 2007 5:51 am

Re: Date and time setup for sequential file stageYYYYMMDDHH2

Post by seshikumar »

i have done same requiremnt by passing the parameters throw shell scripts....i
seshu
Post Reply