Hello, this is just a simple test code, but it doesnt work.. What's worong?
000100 IDENTIFICATION DIVISION.
000200 PROGRAM-ID. cvsSchrijf.
ENVIRONMENT DIVISION.
DATA DIVISION.
file section.
working-storage section.
01 einde pic 9 value 0.
01 verder pic x.
01 teller pic 999 value 0.
PROCEDURE DIVISION.
pgm.
perform dbconnect
exec SQL
INSERT INTO student_csv
(
dbkode,
dbstamnummer,
dbnaamstu,
dbvoornaam_stu
)
VALUES
(
'lsdjfk',
'lsqjdf',
'lsdkjf',
'mlksqdjf'
)
end-exec.
perform dbdisconnect
stop run.
dbconnect.
exec SQL
connect to "jdbcdbcriver={Microsoft Access Driver (*.mdb)};
DBQ=C:\sDoc\Stage.mdb"
DRIVER "sun.jdbc.odbc.JdbcOdbcDriver"
end-exec.
exec SQL
set transaction read only
end-exec.
dbdisconnect.
exec SQL
commit
disconnect
end-exec.
000100 IDENTIFICATION DIVISION.
000200 PROGRAM-ID. cvsSchrijf.
ENVIRONMENT DIVISION.
DATA DIVISION.
file section.
working-storage section.
01 einde pic 9 value 0.
01 verder pic x.
01 teller pic 999 value 0.
PROCEDURE DIVISION.
pgm.
perform dbconnect
exec SQL
INSERT INTO student_csv
(
dbkode,
dbstamnummer,
dbnaamstu,
dbvoornaam_stu
)
VALUES
(
'lsdjfk',
'lsqjdf',
'lsdkjf',
'mlksqdjf'
)
end-exec.
perform dbdisconnect
stop run.
dbconnect.
exec SQL
connect to "jdbcdbcriver={Microsoft Access Driver (*.mdb)};
DBQ=C:\sDoc\Stage.mdb"
DRIVER "sun.jdbc.odbc.JdbcOdbcDriver"
end-exec.
exec SQL
set transaction read only
end-exec.
dbdisconnect.
exec SQL
commit
disconnect
end-exec.