Example 3

Figure 1 shows the execution of the following command:
VMLINK  PRODA ( KEEP INVOKE EXEC SAYHI
The characteristics are:
  • The entries declared for PRODA are in effect, as are the entries for PRODC.
  • This is an example of how the corequisite invocation EXEC defined in a NAMES entry is treated. No VMLINK CONTROL control file was activated in order to keep the output of the VMLINK command as clear as possible.
  • The SAYHI EXEC is a simple EXEC intended just to demonstrate the activation of the VMLINK INVOKE exit through the VMLINK command.
Figure 1. VMLINK PRODA with Invoke EXEC
vmlink proda ( keep invoke exec sayhi
 
DMSVML2060I Linking Product A Mdisk 191 ... linked MR as 800 file mode G
DMSVML2060I Linking Product C Mdisk 193 ... linked RR as 200 file mode X
 
Hi there... Everything ok?
 
Ready; T=0.09/0.11 12:59:25

The following occurred:

  1. VMLINK linked and accessed the PRODA 191 minidisk with virtual address 800 and file mode G, as declared in its NAMES entry.
  2. VMLINK linked and accessed the PRODC 193 minidisk with virtual address 200 and file mode X, as declared in its NAMES entry.
  3. No minidisks were detached because the option KEEP was used.
  4. The SAYHI EXEC, which is shown in Figure 2, was executed as the last task of this VMLINK command.
Figure 2. SAYHI EXEC Example
/*                                                                   */
/*     A simple exec to be used with the INVOKE option on the        */
/*                      VMLINK command.                              */
/*                                                                   */
 
say
say "Hi there... Everything ok?"
say