The command generates message definition files (*.mxsd), according to a set of import options specified in an option file. The generated files are placed in the specified message set folder.
The mqsicreatemsgdefs command takes as a parameter a directory where source files of various types, for example, C and COBOL, are located (in addition to various other parameters) and invokes the appropriate operation based on the extensions to the files.
All relevant files located in any sub folders under the source files folder are scanned and imported.
The workspace location is also the default location for projects. Relative paths are interpreted as being relative to the directory from which the command was started.
You can copy the default options file and customize it to create an options file for your environment.
If you specify -log without the report file path name, or a path name that is not valid, the command issues an error message and stops.
The following example creates or uses the message set project newproject in the source file c:\myproject\source and replaces the existing message project and message definition files of the same name.
mqsicreatemsgdefs -p newproject -d c:\myproject\source -rmp -rmd