CONNECT statements have no effect on preprocessor connections to Vantage.
For examples you can easily adapt to the CONNECT statement, see LOGON Examples.
Alternatively, to learn how the preprocessor can connect to Vantage without using CONNECT or LOGON statements, see Teradata® Preprocessor2 for Embedded SQL Programmer Guide, B035-2446.