hello,
I want to create a table in cobol, can someone tell me what's wrong?...
000100 IDENTIFICATION DIVISION.
000200 PROGRAM-ID. cvsMaakTabel.
ENVIRONMENT DIVISION.
DATA DIVISION.
working-storage section.
01 einde pic 9 value 0.
01 verder pic x.
PROCEDURE DIVISION.
Pgm.
perform dbconnect
EXEC SQL
CREATE TABLE AAA (ProductName, ProductDate)
end-exec.
display "done"
accept verder
perform dbdisconnect
stop run.
dbconnect.
exec SQL
connect to "jdbcdbcriver={Microsoft Access Driver (*.mdb)};
DBQ=C:\sDoc\testje.mdb"
DRIVER "sun.jdbc.odbc.JdbcOdbcDriver"
end-exec
exec SQL
set transaction write only
end-exec
dbdisconnect.
exec SQL
close cur
end-exec.
exec SQL
commit
disconnect
end-exec.
I want to create a table in cobol, can someone tell me what's wrong?...
000100 IDENTIFICATION DIVISION.
000200 PROGRAM-ID. cvsMaakTabel.
ENVIRONMENT DIVISION.
DATA DIVISION.
working-storage section.
01 einde pic 9 value 0.
01 verder pic x.
PROCEDURE DIVISION.
Pgm.
perform dbconnect
EXEC SQL
CREATE TABLE AAA (ProductName, ProductDate)
end-exec.
display "done"
accept verder
perform dbdisconnect
stop run.
dbconnect.
exec SQL
connect to "jdbcdbcriver={Microsoft Access Driver (*.mdb)};
DBQ=C:\sDoc\testje.mdb"
DRIVER "sun.jdbc.odbc.JdbcOdbcDriver"
end-exec
exec SQL
set transaction write only
end-exec
dbdisconnect.
exec SQL
close cur
end-exec.
exec SQL
commit
disconnect
end-exec.