PASSPORT Knowledge Base
Miscellaneous

Date Published: July 28, 2003
Date Updated: March 10, 2008

Title

Message To Display Before Session

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

Is it possible to display a message to users before a session starts?

Solution

For PASSPORT PC to Host:

You can create a macro which contains the message and assign the macro to the session

as a startup macro.

  1. Copy the following text into Notepad:

    Sub ZMain()
    MsgBox "Message",,"Title"
    End Sub
  2. Modify the Message and Title with your custom message and title.
  3. Save the file with a .zmc extension
  4. Open your session profile and choose the Miscellaneous tab.
  5. Enable the Startup Macro option and choose the macro that was created above from the drop-down list.

For PASSPORT Web to Host:

Write a simple HTML document which contains the message with a hyperlink at the bottom.

Users would be directed to the new HTML file and the hyperlink would point to the

PASSPORT session,
 

or

 

Create a macro which contains the message and assign the macro to the session as

a startup macro. Follow the steps below:

  1. Start the PASSPORT Web to Host Administrator.
  2. Expand 3270 Display, 5250 Display or VT Display (depending on the emulation type you are using)
  3. Right-click Macros and choose New.
  4. Copy the following into the Add Macro window:

    Sub ZMain()
    MsgBox "Message",,"Title"
    End SubModify the Message and Title with your custom message and title.
  5. Close the Add Macro window, save and name the new macro.
  6. Open your session profile and choose the Miscellaneous tab.
  7. Enable the Startup Macro option and choose the macro that was created above from the drop-down list.
  8. Select OK to save or Connect to test.

More Information

  1. Writing a Macro

  2. Scheduling a Macro to Run at a Specific Time

Keywords

macro, message, start, startup