• No results found

Using the TFRM36 Command — Examples

In document AS400 Operations Basic (Page 138-141)

Example 1

TFRM36 M36(MYM36)

This command transfers the display station, on which the command is run, to an AS/400 Advanced 36 machine named MYM36. It is located through the library list of the OS/400 job. If the machine allows automatic sign on, the user of the display device is automatically signed on to the AS/400 Advanced 36 machine using the default menu, library, and procedure identified in the user's SSP user profile. | Because a workstation identifier was not specified on the transfer, the system | determines the SSP logical workstation identifier. If the machine does not allow | automatic signon, the SSP signon display for that workstation appears.

If the display device is defined in the AS/400 Advanced 36 machine's configuration (*M36CFG) through either controller or device mapping, the controller, port, and address of the display station in the AS/400 Advanced 36 machine configuration is used to determine the SSP logical display station. For example, if your display station is defined as controller 2, port 3, address 4, then the SSP logical work- station will be the display station that is defined at controller 2, port 3 and address 4 in the SSP master configuration record.

If the display station is not defined in the AS/400 Advanced 36 machine configura- tion, the SSP logical display station is chosen by the system from a list of display stations that are defined in the SSP master configuration record that are not in the AS/400 Advanced 36 machine configuration.

Example 2

TFRM36 M36(\CURLIB/MYM36) WSID(W7)

AUTOSIGNON(\YES) MENU(INV)

LIB(INVAPPL) PRC(INVPREP) IGC(\NO)

This command transfers the display device, on which it is run, to an AS/400 Advanced 36 machine named MYM36, located in the current library of the OS/400 job. The user of the display device is automatically signed on to the AS/400 | Advanced 36 machine if it is configured to allow automatic signons. If the machine | does not allow automatic signon, the SSP signon display for that workstation

| appears.

| The display device is assigned the M36 workstation identifier W7, if it is available for use by this display device. If it is not available, an error message is returned and the transfer request is refused.

If the user can be automatically signed on to workstation W7, the library INVAPPL will be the default library for the user's AS/400 Advanced 36 machine session. Addi- tionally, the procedure INVPREP will be run before the user menu INV is shown on the user's display device. The user is not given an ideographic session. If the requested library, procedure, or menu for the TFRM36 command cannot be found, the System/36 signon display is shown and a message which identifies the error also appears on the signon display. The user has the option of correcting the error and signing on or pressing Cmd7 to return to OS/400.

Example 3

Transferring to M36

This command transfers the display device, on which it is run, to an AS/400 Advanced 36 machine named ADV36, located in a library named JOG. The SSP workstation identifier that is assigned to the display device, is based on whether the display device is currently configured in the AS/400 Advanced 36 machine. The user of the display device must sign on to the AS/400 Advanced 36 machine. | For more information on this command, type the command on an OS/400

| command line and press F1.

|

How to Allow for Automatic Sign-On

| If you decide you want to allow automatic sign-on, set up the AS/400 Advanced 36

| machine as follows:

| 1. Stop the AS/400 Advanced 36 machine.

| For directions, see Chapter 16, “Stopping an AS/400 Advanced 36 Machine.”

| 2. On an OS/400 command line, type

| CHGM36 library-name/machine-name

| where machine-name is the name of the AS/400 Advanced 36 machine and

| library-name is the name of the library that contains the AS/400 Advanced 36

| machine.

| 3. Press F4.

| 4. Change the Automatic sign-on field to *ENABLE.

| 5. Press Enter.

| 6. Start the AS/400 Advanced 36 machine.

| For directions, see Chapter 15, “Starting an AS/400 Advanced 36 Machine” on

| page 15-1.

| 7. On an OS/400 command line, type

| TFRM36 library-name/machine-name

| where machine-name is the name of the AS/400 Advanced 36 machine and

| library-name is the name of the library that contains the AS/400 Advanced 36

| machine.

| 8. Press F4.

| The Transfer to Machine (TFRM36) display appears.

| 9. Make sure the value in the automatic sign-on field is \YES.

| 10. Press Enter.

| Your display station is transferred to the AS/400 Advanced 36 machine and you

| are signed on to the machine.

|

Selecting the Correct User Profile

| When you transfer to an AS/400 Advanced 36 machine using the TFRM36 or | STRM36PRC CL commands, most of the S/36 printed output that is sent to an | OS/400 output queue is owned by the user's OS/400 user profile. However, in the

| case of the following:

| Ÿ Print key output

Transferring to M36

| Ÿ Printed output from evoked jobs

| Ÿ Printed output from NRT programs

| Ÿ Printed output from MRT procedures

| the output that goes to an OS/400 output queue is owned by the user profile asso- | ciated with the AS/400 Advanced 36 machine. Similar processing also applies | when one of the above jobs executes a RUN400 OCL statement. The CL

| command executes under the user profile associated with the AS/400 Advanced 36 | machine. If you want all printed output and all your RUN400 OCL statement jobs | to use your OS/400 user profile, you should change the SSP HOSTUPRF system | value from OFF to ON. The default value is OFF. To change the SSP HOSTUPRF

| value to ON, use the CHGSYSVL procedure:

| CHGSYSVL HOSTUPRF,ON

| This change remains in effect until the SSP HOSTUPRF system value is changed

| to OFF.

| Whether HOSTUPRF is ON or OFF, the M36 server job opens the output queue | and executes the RUN400 CL command for the type of jobs listed in this topic. | The M36 server job might have a different library list or other job attributes than | those of the job which executed the TFRM36 or STRM36PRC command.

| For more information on the SSP HOSTUPRF system value, see the General Infor- | mation for SSP Operating System book, SC21-8299.

Transferring to an AS/400 Advanced 36 Machine Using the

STRM36PRC Command

The Start AS/400 Advanced 36 Procedure (STRM36PRC) CL command transfers control from an OS/400 job to the specified AS/400 Advanced 36 machine and runs the specified SSP procedure. Control returns to OS/400 when the SSP procedure ends.

There are certain restrictions you should be aware of when using the STRM36PRC command. For information on the restrictions, see “Restrictions on Transfers using the TFRM36 and STRM36PRC Commands” on page 14-1.

For more information on the STRM36PRC command, see the CL Reference book, SC41-4722.

Using the STRM36PRC Command

1. On an OS/400 command line or in a CL source program, type STRM36PRC

2. Press F4.

3. Type values in the fields that apply. 4. Press Enter.

Transferring to M36

In document AS400 Operations Basic (Page 138-141)