Skip to main content

Hola,

He importado un antiguo proyecto en NE (EDISQL.app) a Visual Cobol. que incluye instrucciones de SQL embebido con (DBMAN=ODBC) 

El proyecto en NE funciona correctamente y se compila sin errores, pero cuando lo importo desde VS2019, Archivo,Nuevo,Import NetExpres projet, parece que la importacion la realiza correctamente, pero cuando compilo la solucion por primera vez, en alguno de los programas CBL del proyecto, genera algunos errores en la linea END-EXEC.    

Adjunto panttallazos de uno de los programas que da error.

He configurado las SQL directivas con SQL(DBMAN=ODBC) SQL(BEHAVIOR=OPTIMIZED) SQL(TARGETDB=MSSQLSERVER),

Como puedo solucionarlo?.

Gracias

Hola,

He importado un antiguo proyecto en NE (EDISQL.app) a Visual Cobol. que incluye instrucciones de SQL embebido con (DBMAN=ODBC) 

El proyecto en NE funciona correctamente y se compila sin errores, pero cuando lo importo desde VS2019, Archivo,Nuevo,Import NetExpres projet, parece que la importacion la realiza correctamente, pero cuando compilo la solucion por primera vez, en alguno de los programas CBL del proyecto, genera algunos errores en la linea END-EXEC.    

Adjunto panttallazos de uno de los programas que da error.

He configurado las SQL directivas con SQL(DBMAN=ODBC) SQL(BEHAVIOR=OPTIMIZED) SQL(TARGETDB=MSSQLSERVER),

Como puedo solucionarlo?.

Gracias

I believe this error is because you do not have an INTO phrase in your SELECT.


I believe this error is because you do not have an INTO phrase in your SELECT.

Hi,

The SELECT INTO statement copies data from one table into a new table.

And why, if I compile the program in NE, it does not give error and when compiling with VC8, it does. It requires a special parameterization or directive in VC8.


Hi,

The SELECT INTO statement copies data from one table into a new table.

And why, if I compile the program in NE, it does not give error and when compiling with VC8, it does. It requires a special parameterization or directive in VC8.

It does compile in Net Express but the statement doesn't do anything that I can tell. What are you using this for?

The SELECT INTO can be used as a singleton select and it is used to retrieve a single row from the database and place the data in the corresponding host variables specified in the INTO phrase.

If you do not have the INTO specified then what exactly is the statement doing in Net Express? How is it retrieving data or are you just expecting the sqlcode to be updated after the operation?