Naming a hash file based on the Invocation id
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 3
- Joined: Wed Sep 17, 2008 12:25 am
- Location: Chennai
Naming a hash file based on the Invocation id
Hi,
is it possoible to name files based on invocation id? If so how to implement that .
we are running a multi instance job and passing the invocation id from script ,we want to name the files created by the multiple instacne job like filename .invocation id.
Thanks
Vinoth
is it possoible to name files based on invocation id? If so how to implement that .
we are running a multi instance job and passing the invocation id from script ,we want to name the files created by the multiple instacne job like filename .invocation id.
Thanks
Vinoth
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 3
- Joined: Wed Sep 17, 2008 12:25 am
- Location: Chennai
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 9
- Joined: Tue Sep 20, 2005 2:10 am
So just add a parameter with the invocation-id in the job and use that in the filename.Sainath.Srinivasan wrote:You can create the hashed file with a parameter value as its name. ...
You can also extract the invocation-id in a job from DSJobname, but I see no way in using that in the Filename property.
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 9
- Joined: Tue Sep 20, 2005 2:10 am
According to the Help (under Defining Hashed File Input Data ) you can use macros in the file name property, which in thought you couldn't.Sainath.Srinivasan wrote:Why can't you use in file name ? apart from the business reasons. ...Plagvreugd wrote:but I see no way in using that in the Filename property.
Quote:
The name of the file the data is written to. You can use a job parameter or macro to specify the file created during run time, or choose the file from the File name drop-down list.
I didn't know you could use a macro like DSJobName at such a place, simply by enclosing it by #'s, just like with parameters. If I put #DSJobName# in the file name property, a hash file with the name of the job (including Invocation ID) is created.
Anybody got any idea whether (and if so, how) you can use other functions/routines in the file name property? My guess is that it's not possible, because the Help explicitly mentions parameters and macros, not functions or routines.
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom