Value from DSMacro to Environmental variable

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
kogads
Premium Member
Premium Member
Posts: 74
Joined: Fri Jun 05, 2009 5:36 pm

Value from DSMacro to Environmental variable

Post by kogads »

Is it possible to use a value returned by a DSMacro and update a Env Variable dynamically, without using shellscript??

what i want to do exactly is, get the DSJobStartTimestamp and use next time job runs and extract data greater than that timestamp.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Dynamically No. You would need to land it somewhere else, maybe a file or a database and read it the next time, you run the job.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A DataStage macro can only be run from within a job.

However you can do this with a routine, using DataStage API calls (specifically DSAttachJob(), DSGetJobInfo() and DSDetachJob() functions), but you'd need to do this before starting the job itself.
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