Page 1 of 1

Job Name

Posted: Tue Mar 07, 2006 8:54 am
by Thibal
Hi,

my question is very sample :
In a Job Server, is there a variable containing the Job Name ?
I don't find it in system variables ...

I just want to avoid to use a parameter to get it.

Thanks !


(sorry but when I search for "Job Name", results aren't relevant ...)

Posted: Tue Mar 07, 2006 8:57 am
by DSguru2B
go to macros, and then choose DSJobName.

Posted: Tue Mar 07, 2006 9:12 am
by Thibal
Thanks, I've never used macro in Transformer before ... :oops:

But if I want to use Job Name in a Sequential File Name, parameters between # is the only solution ?

Posted: Tue Mar 07, 2006 9:17 am
by I_Server_Whale
I think that is a good solution. Why? What is stopping you from using the parameter within #'s as a part of the sequential file name? :?:

Posted: Tue Mar 07, 2006 9:21 am
by DSguru2B
if you want to use it in a job name then i would say yes, no other choice but to use a job parameter.
Maybe the DS gurus know of some other way, as far as my knowledge, you have to use a job parameter (variable between two #'s)

Posted: Tue Mar 07, 2006 9:27 am
by Thibal
naveendronavalli wrote:I think that is a good solution. Why? What is stopping you from using the parameter within #'s as a part of the sequential file name? :?:
Nothing. I wasn't sure I wasn't doing something stupid.

Thanks you both. :D

Posted: Tue Mar 07, 2006 9:30 am
by DSguru2B
hey, Thibal, waitup
i did a search and found a reply by vmcburney, i knew the DSgurus would know,
this is his reply
"It's easy, macros can be treated just like job parameters, you can use DSJobInvocationID in your file paths and file names surrounded by # characters. I've done this in the past using macros for project name and job name in file names. "

apparantly you can use macros within #'s and it will work. Try it.
do this
specify the path name and add this /#DSJobName#.txt
that should work.
cheers.

Posted: Tue Mar 07, 2006 9:32 am
by DSguru2B
Yup it works gracefully. I just ran a test on it.
Your all set Thibal. :lol:

Posted: Tue Mar 07, 2006 12:45 pm
by Thibal
Thanks !! I'll try it ... again.

I don't know where is my mistake :?

I'll tell you tomorrow :wink:

Posted: Wed Mar 08, 2006 2:07 am
by Thibal
You're right Image

Thanks Image

My mistake was testing #'s with system variables (@WHO, @LOGNAME), in that case, it doesn't work.