I have to rebuild COBOL embedded programs from ORACLE sql to MS SQL-server SQL.
1) For ORACLE we had a translation for the codes :
* ORACLE sqlcodes.
01 C01-SQL.
03 OK VALUE ZERO PIC S9(04) BINARY.
03 NOT-FOUND VALUE 1403 PIC S9(04) BINARY.
03 ALREADY-EXIST VALUE -0001 PIC S9(04) BINARY.
03 MORE-ROWS VALUE -2112 PIC S9(04) BINARY.
03 NULL-FOUND VALUE -1405 PIC S9(04) BINARY.
I have to convert these values to the MS SQL-server values.
OK is very simple to translate.
Has anyone of the forum a translation for me.
2) Are there more specific aspects, for example the length or other, to pay attention for ?
3)
I also get a message 0000000001.
There is not written in the INTO column :
EXEC SQL
SELECT MAX(log.DT_MUT)
INTO :S01-LOG-MUT
FROM LOG
S01-LOG-MUT is pic X(23) and put in the EXEC SQL BEGIN DECLARE SECTION END-EXEC.
What is wrong (see attachment)




