How to make file name unique

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ekareem
Participant
Posts: 17
Joined: Wed Aug 27, 2003 7:10 pm

How to make file name unique

Post by ekareem »

I need to make some sequential files in the job have unique names.
Unique in the sense that allows multiple copies of the job to run at the same time and also unique across different jobs.

I tried to use something like this:

#DSJobName#DSJobInvocationId#

But the macros are not working on the file name entry field

Any suggestions? Thanks.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The macros ought to work, but I think you have missed one "#" in your code, it should read

Code: Select all

#DSJobName##DSJobInvocationId# 
ekareem
Participant
Posts: 17
Joined: Wed Aug 27, 2003 7:10 pm

Post by ekareem »

OOPS! You are correct.

However, after I corrected the mistake, I expected to get the job name followed by some numeric value for SJobInvocationId - But I only get the job name - Any suggestions?
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Run it and supply an invocation id, don't run the base job. You won't get a number, you'll get what you used as the invocation id.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
ekareem
Participant
Posts: 17
Joined: Wed Aug 27, 2003 7:10 pm

Post by ekareem »

Good, thanks.
Post Reply