Visual cobol to db2 connectivity

Hi

I am using visual COBOL , I want to know exactly how to connect to db2 database and start using

$SET DB2(DBMAN = ODBC)

exec sql
connect to ODBC DSN Name
end-exec

Is it enough or do I need to add anything in my visual cobol