Separate two command in "After Job Subroutine"

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
Umbix62
Participant
Posts: 79
Joined: Mon Jan 16, 2006 2:47 pm

Separate two command in "After Job Subroutine"

Post by Umbix62 »

Hi

just a little and stupid question. I have to execute two subsequent DOS command in the "After Job subroutine".

Does anybody remember the character to use to separate the MsDos command? I remeber ";" but it doesn't work.

Thank you in advance

Umberto

P.S. I don't know if it is important but the version of the OS is windows 2003 Server in English language (US)
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Here, reference thispost. Ray has a few options for you.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Umbix62
Participant
Posts: 79
Joined: Mon Jan 16, 2006 2:47 pm

Post by Umbix62 »

DSguru2B wrote:Here, reference thispost. Ray has a few options for you.
I just tried one of the solution suggested by Ray. I used semicolon to separate the commands but it doesn't work.

How can I do that? I would avoid the script.....
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Did you try && ?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Consider using an After-Stage subroutine call also. Maybe on the last link writing to the last Passive stage. Add a Transformer if necessary to do this. You do have After-Stage subroutine calls that are exactly the same as After-Job subroutine calls. Put one command in the stage, the other in the job after routine calls.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

Use &&. It works perferctly. I have used it before. The second command executes only if first command is executed successfully.
Kris

Where's the "Any" key?-Homer Simpson
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Semi-colon should work. It's the fundamental command separator in every UNIX shell of which I am aware. Please post your exact syntax.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Windows server, DOS commands. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Doesn't matter. The semi-colon is also the unconditional command separator in the DOS shell.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I know... only mentioned it because you said the 'U' word.
-craig

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