Rational Developer for System z

Copying and pasting an element from the same message file

This topic describes how to copy and paste an element within the same message file on the Advanced tab of the flow message editor.

Copying and pasting a primary element from the same message file

Copying a primary element from a folder and then copying it back into the same folder is supported for types, groups, and global attributes and elements, but not for messages. A primary element can be pasted only into the same folder from which it was copied.
Table 1. Copying and pasting a primary element on the Advanced tab
Type of primary element: Copy from folder: Paste into folder:
Message Messages Not supported.
Type Types Types
Group Groups Groups
Global element or attribute Elements and Attributes Elements and Attributes
To copy and paste a type, a group, or a global element or attribute from the same message file:
  1. On the Advanced tab, right-click the primary element.
  2. Click Copy.
  3. Right-click the folder containing the primary element.
  4. Click Paste.
Quicker method:
  1. Click the primary element and press Ctrl-C.
  2. Click the target folder and press Ctrl-V.

The flow message editor creates a new element of the same kind, gives it a default name, and adds it to the end of the folder. The new element has the same structure and attributes as the source element.

Note: This is a shallow copy (see Shallow copying and deep copying).

Copying and pasting a subordinate element from the same message file

In general, a subordinate element can be pasted into any type of element that is capable of containing it, in any of the four folders of the message file.

To copy and paste a subordinate element from the same message file:
  1. On the Advanced tab, right-click the subordinate element.
  2. Click Copy.
  3. Right-click the element into which you want to paste the subordinate element. This is the target element.
  4. Click Paste.
Quicker method:
  1. Click the source element and press Ctrl-C.
  2. Click the target element and press Ctrl-V.

The flow message editor creates a new element of the same kind, gives it a default name, and adds it to the end of the target element. The new element has the same structure and attributes as the source element. If the new element is a variable, it has the same type as the source element.

Note: This is a shallow copy (see Shallow copying and deep copying).

Feedback