Page 1 of 1

Parallel Processing

Posted: Mon Oct 01, 2018 2:59 pm
by mmulconry
Is it possible to execute multiple file transmissions to the same mainframe host in parallel? In other words can I do something like:

cozcontrol start -t
todsn //DATA.SET.ONE < &
todsn //DATA.SET.TWO < file.two &
<wait until the todsn commands are done >
cozcontrol stop

(note: the above is just for illustration)

Mark Mulconry

Re: Parallel Processing

Posted: Mon Oct 01, 2018 4:05 pm
by dovetail
Sure. Have you tried it and had a problem?

You can use multiple concurrent processes in all kinds of ways.
For example:
cozcontrol start -t -ssh
fromdsn // | grep "something" | todsn //
This is running fromdsn, grep, and todsn in three separate processes concurrently, connected by a pipe.

Re: Parallel Processing

Posted: Tue Oct 02, 2018 7:30 am
by mmulconry
We're trying it, the issues we've run into were from issuing the cozcontrol stop before the forked processes were finished. We found a way to do that now so we're redoing our script and will continue testing.

Just wanted to make sure there weren't any issues from the product perspective...

Thanks for the prompt reply!