To verify you can connect to a remote server, perform a simple passthrough statement to a remote server to check your connectivity and remote login configuration.
For example:
FORWARD TO testiq {select @@version}
See SQL Anywhere Server - SQL Usage > Remote data and bulk operations > Accessing remote data > Troubleshooting remote data access > Connectivity tests.