DSExport non interactive and supress warnings
Moderators: chulett, rschirm, roy
DSExport non interactive and supress warnings
We have a requirement to export all the jobs as XML and we have created a bat script to export it. But in case of warnings It waits for user input to proceed further. Is there a way to ignore these warning messages or any other alternative approach? We get the jobs list from XMETA and use that to create the DSEXPORT batch scripts
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Try redirecting stdin from NUL to supply an infinite number of Enter presses.
Code: Select all
dscmdexport -options project < .\NUL
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 1044
- Joined: Wed Sep 29, 2004 3:30 am
- Location: Nottingham, UK
- Contact:
I don't think it's possible. Well, everything's possible given a broad definition of "possible", but you know what I mean. I remember trying to do this myself, and I gave up and went with DSX exports instead. And if I can't do it easily, it isn't possible.
Perhaps you could try some sort of Windows automation software like AutoIt, write a little script that runs in the background looking for a particular window title and sending a click event to the Close or OK button. I did this to get rid of a bunch of import dialog boxes that were warning me about referenced jobs.
Or, write a DSX to XML converter...
![Razz :P](./images/smilies/icon_razz.gif)
Perhaps you could try some sort of Windows automation software like AutoIt, write a little script that runs in the background looking for a particular window title and sending a click event to the Close or OK button. I did this to get rid of a bunch of import dialog boxes that were warning me about referenced jobs.
Or, write a DSX to XML converter...
Phil Hibbs | Capgemini
Technical Consultant
Technical Consultant