PreviousNext
Help > Development > Connections
Connections

 A connection is defined in the analysis, or dynamically defined in a program, using HDescribeConnection statement.

 

A connection defined in the analyse is automatically opened, while a file that belongs to the connection is open for the first time.
It can also be explicitly open with
HOpenConnection statement.

 

Server name or address, User ID and Password are sets :

     In the connection description in the analysis,

     Or during HDescribeConnection call,

     Or on HOpenConnection call,

     Or in easycom.ini, file.

Sign in can be automated by using Single Sign On.

Long passwords are supported.

 

Association between files and connections is made in the Analysis, when the connection is defined in the analysis, or using HChangeConnection statement.

 

Each connection is an active JOB in Easycom subsystem on AS/400.

If you have got a user license having limited concurrent sessions, took care when using HChangeConnection. Don’t open too many connections in the same application.

 

An AS/400 file can be declared out of the analysis by using HDeclareExternal statement.

 

When a connection is closed with HCloseConnection, all files opened in the connection are closed.