Timestamp in sequential 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
mattias.klint
Premium Member
Premium Member
Posts: 43
Joined: Wed Oct 18, 2006 6:03 am

Timestamp in sequential file name.

Post by mattias.klint »

Hello,

I need to get a parameter with a timestamp to be used within the job and to create the file name of a sequential file.

The timestamp can be the time the job started for example and then put into a parameter.

I cant use sequencers, the job is started from SAP-listener. I can use environmental variables though.

//Mattias
mattias.klint
Premium Member
Premium Member
Posts: 43
Joined: Wed Oct 18, 2006 6:03 am

Re: Timestamp in sequential file name.

Post by mattias.klint »

I used the macro (predefined job parameters) #DSJobWaveNo# (increments per-job-run, resets on recompile). in both filename and transformer.

It worked perfectly!
Post Reply