Need to pass DSProjectName macro as a parameter to Before jo

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
vneelap
Participant
Posts: 6
Joined: Mon Oct 13, 2008 12:16 am

Need to pass DSProjectName macro as a parameter to Before jo

Post 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vneelap
Participant
Posts: 6
Joined: Mon Oct 13, 2008 12:16 am

Post 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..
vneelap
Participant
Posts: 6
Joined: Mon Oct 13, 2008 12:16 am

Post 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..
vneelap
Participant
Posts: 6
Joined: Mon Oct 13, 2008 12:16 am

Post 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..
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What value does it get in the script?
vneelap
Participant
Posts: 6
Joined: Mon Oct 13, 2008 12:16 am

Post 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!!
vneelap
Participant
Posts: 6
Joined: Mon Oct 13, 2008 12:16 am

Post 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!!
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
Post Reply