1.  Attempt a connection using the parameters as passed in.

2.  If DBTC = Y, attempt a trusted connection.

3.  Attempt Logging on using the User ID and Password supplied, if any. This is for backward compatibility.

4.  If it's a PC Other File, prompt the user repeatedly until a connection is successfully made or the dialog is cancelled. (This applies only to interactive LANSA processes running on Microsoft Windows.)

5.  Fatal error.