Creating application programs and application program descriptors dynamically
Use the type-2 command CREATE PGM to dynamically create an application program. Use the type-2 command CREATE PGMDESC to create an application program descriptor. Use the Program Creation user exit routine (PGMCREAT) to dynamically create an application program that is scheduled in a BMP or JBP dependent region.
You can reference existing application programs or application program descriptors to use as a model by specifying the LIKE() parameter.
The PGMCREAT user exit routine, the CREATE PGM command, and the CREATE PGMDESC command are valid in DB/DC, DBCTL, and DCCTL systems.
In a shared EMH queues environment, CREATE PGM creates a program even if there are messages on the shared EMH queues for the program. If the messages were placed on the shared EMH queues because the program was defined as Fast Path in another IMS system, but the program being created is defined as non Fast-Path, the IMS system in which the new program is being defined will be unable to access the messages on the shared EMH queues.