Using powercobol 7, I setup dsn and put dbaccess logic on my form. But when I try to execute I get the error "SQL Error State IM010, Data Source Name Too Long". I get the same error when executing sample problems. How do I fix this?
You could try to shorten Data Source Name. If you set up the DSN through Admin Tools, simply go to Data Sources, select your entry, then Configure: rename Data Source. Then, change the same name in your code.
Tried this option. DSN name is "CSS.DSN". I even moved it to the folder C:/DSN/CSS.DSN instead of the default path which is real long. This didn't work. I kind of feel that the message is a little misleading and that there's some configuration or environment issue causing the problem. Any idea?
I suggest you to use the SQLODBCS.EXE utility from the "Program Files\Fujitsu NetCobol for Windows" folder.
When you need to connect a database (MsAccess included) using embedded sql, the runtime read some information from the file generated using this utility.
Then, in the COBOL85.CBR configuration file, put a line like: @ODBC_INF=name_of_inf_file.INF,
The "name_of_inf_file.INF" file is generated using the utility above.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.