You can create User and System Data Sources using the dbdsn utility. You can not create File Data Sources in this way. System Data Sources are limited to Windows operating systems only, and you can use the ODBC Administrator to create File Data Sources.
Open a command prompt.
Enter a dbdsn command, specifying the connection parameters you want to use.
For example, the following command creates a data source for the sample database. The command must be entered on one line:
dbdsn -w "My DSN" "UID=DBA;PWD=sql;DBF=samples-dir\demo.db"
For information about samples-dir, see Samples directory.
For more information on the dbdsn utility, see Data Source utility (dbdsn).