Concat inserted parameter values into Arguments of Sequenc

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
dylsing
Participant
Posts: 35
Joined: Thu May 04, 2006 9:56 pm

Concat inserted parameter values into Arguments of Sequenc

Post by dylsing »

Hi,

I have a email routine which I am activating in a Job Sequence using Routine Activity.

Because the routine requires me to input the email message as an argument, I would like to concat certain parameter values and a standard string.

For example (FILENAME and DATE are job parameters):
"The file name that was output is " + FILENAME + ", " + DATE

I have searched the forums and the help files and it really seems like it is not possible.
  • -Can I do something similar to the above in the argument value expression?
    -If not, how can I achieve the same effect?
Thanks!
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The DataStage server concatenation operator is the colon ":" character, not the plus "+" sign.
dylsing
Participant
Posts: 35
Joined: Thu May 04, 2006 9:56 pm

Post by dylsing »

ArndW wrote:The DataStage server concatenation operator is the colon ":" character, not the plus "+" sign. ...
Hi hi,

thanks for the reply. I am aware of using the colon character ":" however does this mean that if I use this I am able to use the colon character in the Sequence Argument value expression to concat my string with the parameters?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

In almost all cases where you can specify a parameter you can use the concatenation operator to put together constants and variables. You haven't specified exactly where and how you are doing this, so I can only answer that "yes, probably it will work".
dylsing
Participant
Posts: 35
Joined: Thu May 04, 2006 9:56 pm

Post by dylsing »

ArndW wrote:In almost all cases where you can specify a parameter you can use the concatenation operator to put together constants and variables. You haven't specified exactly where and how you are doing this, so I can only answer that "yes, probably it will work".
1) I am doing a job sequence and in it there is JOB1 followed by a Routine Activity stage.

Sequence
----------------
JOB1 -> Email Routine Activity (contains an argument EmailContent)

2) If JOB1 succeeds, I will use the Routine Activity stage to call my email routine (generic one which I am required to use) to send out a particular message.
3) The argument EmailContent should contain a fixed string concatenated with the parameters.

- So the main question, will I be able to use this colon character in the value expression of EmailContent?
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

Yes, that's what Arnd has mentioned.
You can have somthing like
Arg1 : Arg2 : Arg3 in the value expression.
Success consists of getting up just one more time than you fall.
dylsing
Participant
Posts: 35
Joined: Thu May 04, 2006 9:56 pm

Post by dylsing »

Hihi,

I just realised this is possible when I tried tinkering around with another sequence I created.

Not a great question I must admit :oops: so thanks for bothering to answer my question!
Post Reply