retrun value from Execute command to shell

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
seanc217
Premium Member
Premium Member
Posts: 188
Joined: Thu Sep 15, 2005 9:22 am

retrun value from Execute command to shell

Post by seanc217 »

I have a shell script that calls dsjob to execute a sequence job that has an execute command stage in it. The execute command stage runs another script that returns me a temporary table name. Is there any way to return this table name back to the calling shell script?

Hope that's clear.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Well the way I see it, you can do it in two different ways
A) Call the second script from within your master script.
B) Let your second script spit out the table name to a file. cat the file from your master script.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply