[IBM i]

CVTMQMDTA (Convert MQ Data Type)

Where allowed to run
All environments (*ALL)
Threadsafe
Yes

The Convert MQ Data Type (CVTMQMDTA) command produces a fragment of code to perform data conversion on data type structures, for use by the data-conversion exit program.

For information on how to use the data-conversion exit, see the IBM® MQ Application Programming Guide.

Support is provided for the C programming language only.

Parameters

Table 1. Command parameters
Keyword Description Choices Notes
FROMFILE Input file Qualified object name Required, Positional 1
Qualifier 1: Input file Name
Qualifier 2: Library Name, *LIBL, *CURLIB
FROMMBR Member containing input Name Required, Positional 2
TOFILE File to receive output Qualified object name Required, Positional 3
Qualifier 1: File to receive output Name
Qualifier 2: Library Name, *LIBL, *CURLIB
TOMBR Member to receive output Name, *FROMMBR Optional, Positional 4
RPLTOMBR Replace to member *YES, *NO Optional, Positional 5

Input file (FROMFILE)

Specifies the qualified name of the file, in the form LIBRARY/FILE, that contains the data to convert.

The possible values are:

*LIBL
The library list is searched for the file name.
*CURLIB
The current library is used.
from-library-name
Specify the name of the library to be used.
from-file-name
Specify the name of the file containing the data to convert.

Member containing input (FROMMBR)

Specifies the name of the member containing the data to be converted.

The possible values are:

from-member-name
Specifies the name of the member containing the data to convert.

File to receive output (TOFILE)

Specifies the qualified name of the file, in the form LIBRARY/FILE, that contains the converted data.

The possible values are:

*LIBL
The library list is searched for the file name.
*CURLIB
The current library is used.
to-library-name
Specify the name of the library to be used.
to-file-name
Specify the name of the file to contain the converted data.

Member to receive output (TOMBR)

Specifies the name of the member containing the converted data.

The possible values are:

*FROMMBR
The from-member name is used.
to-member-name
Specify the name of the member containing the converted data.

Replace to member (RPLTOMBR)

Specifies whether the converted data replaces the existing member.

The possible values are:

*YES
The converted data replaces the existing member.
*NO
The converted data does not replace the existing member.