Parameterize Fastname in APT Config file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
synsog
Premium Member
Premium Member
Posts: 232
Joined: Sun Aug 01, 2010 11:01 pm
Location: Pune

Parameterize Fastname in APT Config file

Post by synsog »

Is there a way where we can parameterize fastname in apt config file based on the server name on which the DS job is running?

I tried using uname -n in the fastname "" but it does not seem to be working. Even assigning a variable the value of uname -n and then recalling it also does not work. Has anyone tried this before?

E.g.
{
node "node1"
{
fastname "`uname -n`"
pools ""
resource disk "/usr/appl/datasets" {pools ""}
resource scratchdisk "/usr/appl/scratch" {pools ""}
}

}
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No. The configuration file is simply read when job execution is requested. No resolution of parameters or shell techniques is supported.

You could, of course, script something to rewrite the configuration file but, since it's only ever changed once per server, why would you bother?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

What are you basically trying to do? Load balance your jobs across multiple boxes?
Post Reply