Appending sysdate to seq 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
mekrreddy
Participant
Posts: 88
Joined: Wed Oct 08, 2008 11:12 am

Appending sysdate to seq file name

Post by mekrreddy »

Hello,

I have to append sysdate to a reject file file name (capturing reject records) which runs everyday Seq_xxxx_11/01/2009.txt , Can i do that in parallel job.? please give your thoughts.

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

Post by chulett »

You basically have three ways:

1. Use one of the date macros
2. Use a job parameter, feed in the date
3. Write to a fixed filename and rename after job

The answer can be driven by how enamored you are of that particular date format.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Slashes in a file name are probably illegal, as they are interpreted as pathname delimiters. You may want to rethink the format of your requirement.

I would always counsel the "create the file with the base name and rename it to include the data subsequently" approach.
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