Page 1 of 1

Need to pass DSProjectName macro as a parameter to Before jo

Posted: Mon Oct 13, 2008 1:20 am
by vneelap
Hi,

I need to pass DSProjectName macro to a before job shell script from the job.

Before shell script routine is:: abc.sh #par1# #par2# DSProjectName

how to pass this.

Thanks in advance

Posted: Mon Oct 13, 2008 7:43 am
by chulett
Have you tried what you posted? Macros stand alone in some areas and in others need to be wrapped in hash/pound signs. If that didn't work, try #DSProjectName# instead.

Posted: Tue Oct 14, 2008 5:05 am
by vneelap
Thanks for reply..!!

I have tried what i posted and also which u have suggested. But they are not working instead they are giving the same values which ever we send in the before script.

I mead if we pass #DSProjectName# it is displaying same data inthe script. But it is not getting the actual project name..

Thanks..

Posted: Tue Oct 14, 2008 5:07 am
by vneelap
Thanks for reply..!!

I have tried what i posted and also which u have suggested. But they are not working instead they are giving the same values which ever we send in the before script.

I mead if we pass #DSProjectName# it is displaying same data inthe script. But it is not getting the actual project name..

Thanks..

Posted: Tue Oct 14, 2008 5:32 am
by vneelap
Thanks for reply..!!

I have tried what i posted and also which u have suggested. But they are not working instead they are giving the same values which ever we send in the before script.

I mead if we pass #DSProjectName# it is displaying same data inthe script. But it is not getting the actual project name..

Thanks..

Posted: Tue Oct 14, 2008 5:40 am
by ArndW
What value does it get in the script?

Posted: Thu Oct 16, 2008 5:19 am
by vneelap
It is displaying the same value that what we pass.

If we pass #DSProjectName#, in the script it is displaying "#DSProjectName#" which is supposed to be the AFRS

Thanks so much!!

Posted: Thu Oct 16, 2008 5:20 am
by vneelap
It is displaying the same value that what we pass.

If we pass #DSProjectName#, in the script it is displaying "#DSProjectName#" which is supposed to be the AFRS

Thanks so much!!

Posted: Thu Oct 16, 2008 5:26 am
by ArndW
I just did a dummy test job with ExecSH of "echo #DSProjectName#" and that output my project name correctly. This was at V8.