+

Search Tips | Advanced Search

Object names on IBM i

A queue manager has an associated queue manager library that has a unique name. Queue manager names and object names might need to be transformed to meet the requirements of the IBM® i Integrated File System (IFS).

When a queue manager is created, IBM MQ associates a queue manager library with it. This queue manager library is given a unique name, no more than 10 characters long, largely based on the user defined queue manager name. Both the queue manager, and the queue manager library are placed in to a directory that is also based on the queue manager name with the prefix /QIBM/UserData/mqm. An example of a queue manager, queue manager library, and directory follows: All queue manager names and queue manager library names are written to stanzas in the file /QIBM/UserData/mqm/mqs.ini.


IBM MQ IFS directories and files

The IBM i Integrated File System (IFS) is used extensively by IBM MQ to store data. For more information about the IFS see the Integrated File System Introduction.

Each IBM MQ object, for example, a channel or a queue manager, is represented by a file. Because object names are not necessarily valid file names, the queue manager converts the object name into a valid file name where necessary.

The path to a queue manager directory is formed from the following:

This process is referred to as name transformation.


IFS queue manager name transformation

In IBM MQ, we can give a queue manager a name containing up to 48 characters.

For example, we can name a queue manager QUEUE/MANAGER/ACCOUNTING/SERVICES. In the same way that a library is created for each queue manager, each queue manager is also represented by a file. Because of variant codepoints in EBCDIC, there are limitations to the characters that can be used in the name. As a result, the names of IFS files representing objects are automatically transformed to meet the requirements of the file system.

Use the example of a queue manager with the name queue/manager, transforming the character / to &, and assuming the default prefix, the queue manager name in IBM MQ for IBM i becomes /QIBM/UserData/mqm/qmgrs/queue&manager.


Object name transformation

Object names are not necessarily valid file system names, so the object names might need to be transformed. The method used is different from that for queue manager names because, although there only a few queue manager names for each machine, there can be a large number of other objects for each queue manager. Only process definitions, queues, and namelists are represented in the file system; channels are not affected by these considerations.

When a new name is generated by the transformation process, there is no simple relationship with the original object name. We can use the DSPMQMOBJN command to view the transformed names for IBM MQ objects.