Rocket® Reflection Desktop (formerly a product of Micro Focus or formerly a product of Open Text) documentation that was created prior to Rocket Software's acquisition of certain products from OpenText may contain outdated references to "Micro Focus” or “OpenText”, which are trademarks of OpenText. Rocket Software is not affiliated with Micro Focus or OpenText and has rebranded these products as Rocket® products.
Create a New Session
In This Topic
This sample program creates a completely new host session that is visible in the workspace
To create a new session
- In Visual Studio, create a new Console Application project and add references for
the following Reflection assemblies. (Depending on your version of Visual Studio,
these can be found either on the .NET tab or under Assemblies | Extensions.)
Attachmate.Reflection.Framework
Attachmate.Reflection.Emulation.IbmHosts
Attachmate.Reflection.Emulation.OpenSystems
Attachmate.Reflection - If you are using an ALC, UTS, or T27 terminal, create a session path. This sample
uses the following path IDs:
ALC: UPDFRAD
UTS: INT1_1
T27: TCPA_1 - Replace all the code in the Program.cs file with the following code for the terminal you are using.
- If you are using OpenSystems, change the placeholder value "YourHostName" to the host
name or IP address for your system.
To test this project
- Press F5 to run the project and verify that the session opens.