Default User Space

The default user space is used by the CRTxxxLIST, ChgUsrSpace, DltUsrSpace procedures as well as several other RPG cTools. The default user space is created in the QTEMP library. The name of the default user space may vary from release to release. In addition, different areas of the xTools may use distinctive default user space names in order to avoid a data conflict and name collision.

When an xTools procedure is called with an asterisk (*) for the user space name, the default user space name is used. For example, the following generates a list of fields for the CUSTMAST file in the OELIB library. This field list is stored in the default user space in the QTEMP library.

.....CSRn01..............OpCode(ex)Extended-factor2+++++++++++++++++++++++++++
     C                   CallP     CrtFldList('*' : 'OELIB/CUSTMAST' )

The default user space is provided as an ease-of-use feature so that programmers do not have to come up with a unique name for a user space. This provides an easier to use interface when calling some of the RPG xTools.

Note that there is only one default user space. If a second xTool is called and the default user space is requested, any existing data in the default user space is overwritten with the new data.