Hide parameters in Execute Commnad Stage

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
jflandez
Participant
Posts: 6
Joined: Fri Jul 18, 2008 10:40 am

Hide parameters in Execute Commnad Stage

Post by jflandez »

I'm executing an osql command using the Execute Command Stage and i need to hide the -P (Password) parameter. I'm using an Environment Variable but the password shows up in the logs. How can I hide the parameters in the Event Detail Logs?

Thanks,

Jose
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Welcome. :D

You'll probably need to write your own version of the Execute Command as a custom routine to leverage the 'Silent' version of the appropriate Exec function. For example, on UNIX servers there is:

ExecSH
ExecSHSilent


I'm assuming the same is true for a Windows server. If not, you could easily code one, I would wager. Then run it using the Routine Activity stage rather than the Execute Command stage in your Sequence job.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jflandez
Participant
Posts: 6
Joined: Fri Jul 18, 2008 10:40 am

Post by jflandez »

Thanks! I'll give it a try.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Clarification, in case I wasn't clear. For Windows you should have these as equivalents to the UNIX SH(ell) functions:

ExecDOS
ExecDOSSilent


From what I recall... no Windows servers here.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply