If you are looking for a macro, a job can find out what is 'calling' it using the DSJobController macro. Same as via the DSGetJobInfo() function using the DSJ.JOBCONTROLLER Info Type.
-craig
"You can never have too many knives" -- Logan Nine Fingers
chulett wrote:If you are looking for a macro, a job can find out what is 'calling' it using the DSJobController macro. Same as via the DSGetJobInfo() function using the DSJ.JOBCONTROLLER Info Type. ...
The DSJobController macro that Craig mentioned will give you the runtiem information for a job - meaning that it will return the job or sequence name that called it for a given run.
I've been using V8, which has extended metadata reporting capabilities, so cannot give you the exact method to use a V7, but someone will certainly jump in later and post information.
Check the online documentation for 'Macros'. At a high level, just... use it. We'd need more specifics about what exactly you are trying to do to give more specific advice.
-craig
"You can never have too many knives" -- Logan Nine Fingers