Home
Defining a process
Use the DEFINE PROCESS command to create a process definition. A process definition defines the application to be used to process messages from the application queue. The application queue definition names the process to be used and thereby associates the application queue with the application to be used to process its messages. This is done through the PROCESS attribute on the application queue MOTOR.INSURANCE.QUEUE. The following MQSC command defines the required process, MOTOR.INSURANCE.QUOTE.PROCESS, identified in this example:
DEFINE PROCESS (MOTOR.INSURANCE.QUOTE.PROCESS) + DESCR ('Insurance request message processing') + APPLTYPE (UNIX) + APPLICID ('/u/admin/test/IRMP01') + USERDATA ('open, close, 235')Where:
- MOTOR.INSURANCE.QUOTE.PROCESS
- Is the name of the process definition.
- DESCR ('Insurance request message processing')
- Describes the application program to which this definition relates. This text is displayed when you use the DISPLAY PROCESS command. This can help you to identify what the process does. If you use spaces in the string, you must enclose the string in single quotation marks.
- APPLTYPE (UNIX)
- Is the type of application to be started.
- APPLICID ('/u/admin/test/IRMP01')
- Is the name of the application executable file, specified as a fully qualified file name. In Windows systems, a typical APPLICID value would be c:\appl\test\irmp01.exe.
- USERDATA ('open, close, 235')
- Is user-defined data, which can be used by the application.
Parent topic:
Managing objects for triggering
fa11540_
Home