Find out how smart businesses are turning COVID-19 from a challenge into an opportunity

Tell me more
2008 Posted by James Gill

TWS – Export and Import

I had to set up 10 TWS batch schedules this week, and baulked a bit at the idea of going through the admin tool and clicking them all in. Following a discusion with a colleague, I came across a TWS utility called “composer” which I hadn’t previously known about. This allows you to export job and schedule definitions to a file, and then re-import them again. Using this, I was able to create the first set of jobs and schedule and then export to a file using:

    composer create file.txt from job=WORKSTATION#JOBNAME


   composer create file2.txt from sched=WORKSTATION#SCHEDNAME

Then, using some dodgy shell, sed and awk scripting, I cloned all of these for each of the environments and reloaded them using:

   composer replace file.txt

What could be simpler? The text files produced are fairly self explanatory, although – no doubt – with a little rummaging there’s bound to be a manual somewhere about the syntax.

« Previous | Next »
Have a Question?

Get in touch with our expert team and see how we can help with your IT project, call us on +44(0) 870 2411 550 or use our contact form…