Use a group job

Read this topic to find out about using Telnet, alternate jobs, and group jobs to work with multiple systems.

You can use Telnet and the alternate job to connect to multiple systems from your home system. Consider the following example:


Figure depicts relationships between New York system,
Chicago system, and

Telnet establishes a session from New York to Chicago. You also want to go to the Los Angeles system and remain connected to the Chicago system. You can start an alternate job on the New York system, using System Request option 11. Use the Telnet command to establish a session to the Los Angeles system. You can get to another system (Houston, for example) by starting another Telnet session from the Chicago system or the Los Angeles system.

An alternative to using the alternate job is to use a group job. A group job is one of up to 16 interactive jobs that are associated in a group with the same workstation device and user. To set up a group job, follow these steps:

  1. Change the current job to a group job by using the Change Group Attributes (CHGGRPA) command.
    CHGGRPA GRPJOB(home)
  2. Start a group job for the Chicago system by using the Transfer to Group Job (TFRGRPJOB) command.
    TFRGRPJOB GRPJOB(CHICAGO) INLGRPPGM(QCMD)
  3. Establish a Telnet session to the Chicago system.
    Telnet CHICAGO
  4. Return to your home system by pressing the ATTN key. Pressing the ATTN key shows you the Send Telnet Control Functions menu.
  5. In the character-based interface for the Send Telnet Control Functions menu, type:
    TFRGRPJOB GRPJOB(home)

    This returns you to your original job.

You can start other group jobs and Telnet sessions similarly.

You can use the TFRGRPJOB GRPJOB(*SELECT) command to select which group job you want. For example, if group jobs with the names CHICAGO, LOSANGELES, HOUSTON, and TOKYO start, the TFRGRPJOB GRPJOB(*SELECT) command shows the following display:

+--------------------------------------------------------------------------------+
|                 Transfer to Group Job                                          |
|                                                           System: SYS198       |
|Active group job . . . : HOME                                                   |
|Text . . . . . . . . . :                                                        |
|Type option, press Enter.                                                       |
|     1=Transfer to group job                                                    |
|           ----------------------Suspended Group Jobs-----------------------    |
|Opt  Group Job   Text                                                           |
|_          TOKYO                                                                |
|_          HOUSTON                                                              |
|_          LOSANGELES                                                           |
|_          CHICAGO                                                              |
|Bottom F3=Exit F5=Refresh F6=Start a new group job F12=Cancel                   |
+--------------------------------------------------------------------------------+

You can then use Telnet to establish a session with each system from the appropriate job. The following example shows a group job scenario:


System A in New York contains Home Group job on System A, with bidirectional
arrows down a chain connecting to, in order: System B group job on System
A, System C group job on System A, System D group job on System A, and System
E group job on System A. Each System group job on A has an arrow pointing
to the correlating remote system (B, C, D, and E).

When you want to end the group job, use the End Group Job (ENDGRPJOB) command.

To switch to another group job while in a Telnet session:

  1. Press the ATTN key.
  2. Type TFRGRPJOB in the character-based interface.