Mocha TN3270 Help

Parameters

Menu - Tools - Save shortcut includes a tool to define parameters for TN3270

Mocha TN3270 can be started with a set of parameters.

  • /H "host" : make a connection to host on program start.
  • /P "port" : do not use default TN3270 port 23 on the host, but number ‘port’
  • /S : Secure mode. Not possible to save the configuration on exit.
  • /R : Selection of host to connect is restricted. Use /H option to define the host name.
  • /N "name" : Name will be displayed at first position of the title. As default the Host session name is displayed.
  • /SSL : Use SSL. (should be used with /P , as to select the correct port)
  • /C "Session name" : Use a configuration defined with this name. See menu - file - new session for a list of names in use.
  • /M : run without a menu bar
  • /T : run without a tool bar
  • /Z configfile : copy configuration file to the users private configuration folder, and exit
  • /X configfile : as /Z , but also start a tn3270 window
  • /Y configfile : as /X but also write changes made to the configuration back to the configfile.

Example:

/H "192.168.2.4" /N ""SuperStore order system" /R

This will make a session to an IBM Mainframe with IP address 192.168.2.4, the title will show "SuperStore order system" and it will only be possible to connect to this specific Mainframe.

Installation with a standard configuration

The installation file tn3270.msi can also be started with a configuration file as a parameter. Install tn3270 on a PC, and use menu - tools - configuration - export, to export a configuration file.

On another PC, reuse the configuration running

tn3270.msi CONFIG=c:\user.config /quiet

if the configuration file was saved in c:\

The parameter /quit is optional and will run the installation without user interaction.