Connect macros run automatically each time you connect to a host. For example, the connect macro could contain commands to enter a User ID and password, choose menu items, and open a host application. You can distribute to your users macros that automatically log them on and take them to the correct host application.
For a connect macro to work, the communications interface must be properly configured, and the macro must be saved from within the profile with which it is to be used.
Disconnect macros run automatically each time you disconnect from the host. For example, the disconnect macro could run another program on the connected host before logging out. It is important to note that, if you have a disconnect macro defined, you do not disconnect from the host until after the macro has been performed. If you are disconnected from the host because the physical connection has been broken, then the disconnect macro does not run.