Use the mqsicreatemsgdefs command to create message definition files in a message set.
The mqsicreatemsgdefs command generates message definition files (*.mxsd), according to a set of import options that are specified in an option file. The generated files are placed in the specified message set folder.
The command takes as a parameter a directory where source files of various types, for example, C and COBOL source files, are located (in addition to various other parameters), and starts the appropriate operation based on the extensions to the files.
>>-mqsicreatemsgdefs-- -p --MessageSetProjectName---------------> >-- -d --Pathname of source files folder------------------------> >-- -data --WorkspacePath---------------------------------------> >--+-------------------------------------------------------+----> '- -base --baseMessageSetProjectName\baseMessageSetName-' >--+--------+--+--------+--+-------+--+--------+----------------> '- -rmp -' '- -rmd -' '- -ns -' '- -msg -' >--+-----------------+--+------+--------------------------------> '- -opt --xxx.xml-' '- -v -' >--+----------------------------+------------------------------>< '- -log --ReportFilePathName-'
All relevant files that are 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 with a path name that is not valid, the command issues an error message and stops.
If you do not run the command from a privileged environment, you are asked to confirm that you want to continue. When you click OK, a new privileged command console is created and the command completed, but all responses are written to the privileged environment and are lost when that console closes when the command completes.
On other platforms, no specific authority is required to run this command.
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