Assigning Date

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
gopskrish
Participant
Posts: 37
Joined: Thu Mar 31, 2005 7:42 am

Assigning Date

Post by gopskrish »

Hi,

I am using Parameter file to get parameters for my jobs in the sequence. In that I am using from date and to date parameters. I am generating the dates using Unix scripts. Now i want to elliminate that and directly assign sysdate to the date parameters in datastage without using the file.
Throw me some light on that.

Best Regards,
Gopal
I am verymuch interested to learn an ETL tool and i find datastage as the best one to do so.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Use @date instead of the parameter.

Note - Pl post in the appropriate forum.
gopskrish
Participant
Posts: 37
Joined: Thu Mar 31, 2005 7:42 am

Post by gopskrish »

Hi Sai,

Thanks a lot for your immediate reply.
I will post it in correct forum hereafter.

Thanks again.

Best Regards,
gopal
I am verymuch interested to learn an ETL tool and i find datastage as the best one to do so.
chucksmith
Premium Member
Premium Member
Posts: 385
Joined: Wed Jun 16, 2004 12:43 pm
Location: Virginia, USA
Contact:

Post by chucksmith »

There is also the macro DSJobStartTimestamp that I use, since the data and time are constant for the run.
sasi_kumarreddy
Participant
Posts: 27
Joined: Thu Aug 25, 2005 6:33 am

yah

Post by sasi_kumarreddy »

u can user an function
iconv(date() ,'d ymd')
Post Reply