I wanted to make a ODBC connection from Windows PC to AS/400 DB2 server and I wrote a VBA program. But I got the following error. 

```
Remote port could not be resolved

```

Then, I checked the status of server with **`CWSPING`** and got the result below:

```
I - Verifying connection to system 192.168.1.2...
I - Successfully connected to server application: Central Client
I - Successfully connected to server application: Network File
I - Successfully connected to server application: Network Print
I - Successfully connected to server application: Data Access
I - Successfully connected to server application: Data Queues
I - Successfully connected to server application: Remote Command
I - Successfully connected to server application: Security
E - CWBCO1011 - Remote port could not be resolved
E - CWBCO1008 - Unable to connect to server application DDM, returned 8407
I - Successfully connected to server application: Telnet
W - CWBCO1015 - Connection verified to system 192.168.1.2, but there were warnings

```

This means `DDM` service is not working on the server. ODBC connection requires `DRDA`, which runs upon `DDM` service, so I think running `DDM` service is the key to make ODBC connection. So I tried **`STRTCPSVR *DDM`** command but got the result below

```
*DDM not valid for parameter SERVER

```

And also tried **`CHGDDMTCPA AUTOSTART(*YES) PWDRQD(*YES)`** command, but got an error and I got stuck.

```
Command CHGDDMTCPA in library *LIBL not found

```

Does anyone have an idea of enabling `DDM` server on AS400?

* Server: IBM AS400
* OS version: V4R1