Job Name
Moderators: chulett, rschirm, roy
Job Name
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 ...)
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 ...)
Thibault Hamel
Nanterre - France
Nanterre - France
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
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?
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
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)
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)
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
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.
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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.