Can I use job parameters with the XML output stage

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
Lori999
Participant
Posts: 2
Joined: Wed Oct 28, 2009 1:33 pm

Can I use job parameters with the XML output stage

Post by Lori999 »

I need the ability to direct my XML output file to different locations and would like to use a job parameter. Is there a way to use a job parameter with the XML output stage?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sure! You'll need to enter it manually enclosed in pound/hash signs but it will work just fine. You can even hard-code some portion and parameterize another:

/this/that/Big_old_file_#P_XML_FILENAME#_name.xml

Where P_XML_FILENAME is a Job Parameter's name. As a general rule of thumb, we parameterize the directory 'basename' portion and the actual filename in two parameters. FYI.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Lori999
Participant
Posts: 2
Joined: Wed Oct 28, 2009 1:33 pm

Post by Lori999 »

Perfect....Thank You :D
Post Reply