Ik krijg de volgende foutmeldingen bij mijn programma, kan iemand mij helpen om deze fouten eruit te halen? Of aangeven wat er niet klopt in mijn code?
*** DIT ZIJN DE FOUTMELDINGEN:
line 3: Warning '.' expected. Numeric literal found.
Data Division
line 3: Procedure expected. Numeric literal found.
line 3: Warning '.' expected. Numeric literal found.
Procedure Division
line 3: Identifier expected
Missing Panal section (geloof dat dat er stond!)
Can't recover, good bye
*** DIT IS MIJN PROGRAMMACODE:
IDENTIFICATION DIVISION.
PROGRAM-ID. OPGAVE 14.
AUTHOR. REMO KROL.
DATA-WRITTEN. 10-04-2002.
DATA-COMPILED.
ENVIROMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. IBM-LA.
OBJECT-COMPUTER. IBM-LA.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT MODEM ASSIGN TO DISK
ORGANIZATION IS LINE SEQUENTIAL.
SELECT BESTEL ASSIGN TO DISK
ORGANIZATION IS LINE SEQUENTIAL.
SELECT PERSONEN ASSIGN TO DISK
ORGANIZATION IS LINE SEQUENTIAL.
SELECT OPG14-1 ASSIGN TO DISK
ORGANIZATION IS LINE SEQUENTIAL.
SELECT PERSSORT ASSIGN TO DISK
ORGANIZATION IS INDEXED
RECORDKEY IS PERSNUMMER
ACCES MODE IS RANDOM.
DATA DIVISION.
FILE SECTION.
FD MODEM.
LABEL RECORDS STANDARD
DATA RECORD MODEM-RECORD
VALUE IF FILE-ID “MODEM.SEQ”.
01 MODEM-RECORD.
03 M-PERSNUMMER PIC 9 (04).
03 M-BBSNUMMER PIC 9 (04).
03 M-MODCOUNT PIC 9 (02).
03 M-MODTIM PIC 9 (05).
03 M-MODDOWNLOAD PIC 9 (04).
FD BESTEL.
LABEL RECORDS STANDARD
DATA RECORD BESTEL-RECORD
VALUE IF FILE-ID “BESTEL.SEQ”.
01 BESTEL –RECORD.
03 B-BESTDATUM PIC X (08).
03 B-PERSNUMMER PIC 9 (04).
03 B-ARTNUMMER PIC 9 (04).
03 B-BESTAANTAL PIC 9 (02).
FD PERSONEN.
LABEL RECORDS STANDARD
DATA RECORD PERSONEN-RECORD
VALUE IF FILE-ID “PERSONEN.SEQ”.
01 PERSONEN –RECORD.
03 P-PERSNUMMER PIC 9 (04).
03 P-PERSNAAM PIC X (21).
03 P-PERSVOORN PIC X (11).
03 P-PERSSTRAAT PIC X (22).
03 P-PLAATS PIC X (20).
03 P-ABNUMMER PIC 9 (07).
FD OPG14-1.
LABEL RECORDS STANDARD
DATA RECORD OPG14-1-RECORD
VALUE IF FILE-ID “OPG14-1.SEQ”.
01 OPG14-1-RECORD.
03 O-PERSNUMMER PIC 9 (04).
03 O-PERSNAAM PIC X (21).
SD PERSSORT.
01 PERSSORT-RECORD.
03 PS-PERSNUMMER PIC 9 (04).
03 PS-PERSNAAM PIC X (21).
03 PS-PERSVOORN PIC X (11).
03 PS-PERSSTRAAT PIC X (22).
03 PS-PLAATS PIC X (20).
03 PS-ABNUMMER PIC 9 (07).
WORKING-STORAGE SECTION.
PROCEDURE DIVISION.
MAIN SECTION.
M001.
SORT PERSSORT-RECORD ASCENDING KEY P-PERSNUMMER
GIVING PERSSORT
STOP RUN.
M999.
EXIT.
SEARCHPERSONEN SECTION.
SP001.
OPEN INPUT PERSONEN.
OPEN OUTPUT OPG14-1.
SP010.
READ PERSONEN AT END
CLOSE PERSONEN
CLOSE OPG14-1
STOP RUN.
PERFORM SEARCH PERSNUMMER.
GO TO SP010.
SP999.
EXIT.
SEARCHBESTEL SECTION.
SB001.
OPEN INPUT BESTEL.
SB010.
READ BESTEL AT END
CLOSE BESTEL
GO TO SB999.
IF B-PERSNUMMER = P-PERSNUMMER
PERFORM SEARCH MODEM
CLOSE BESTEL
GO TO SB999.
GO TO SB010.
SB999.
EXIT.
SEARCHMODEM SECTION.
SM001.
OPEN INPUT MODEM.
SM010.
READ MODEM AT END
CLOSE MODEM
GO TO SM999.
IF M-PERSNUMMER = P-PERSNUMMER
PERFORM WRITE TO OPG14-1
CLOSE MODEM
GO TO SM999.
GO TO SM010.
SM999.
EXIT.
WRITETOOPG14-1 SECTION.
W001.
MOVE P-PERSNUMMER TO O-PERSNUMMER.
MOVE P.PERSNAAM TO O-PERSNAAM.
WRITE OPG14-1.
W999.
EXIT.
Alvast bedankt!
Mvg,
Remo
*** DIT ZIJN DE FOUTMELDINGEN:
line 3: Warning '.' expected. Numeric literal found.
Data Division
line 3: Procedure expected. Numeric literal found.
line 3: Warning '.' expected. Numeric literal found.
Procedure Division
line 3: Identifier expected
Missing Panal section (geloof dat dat er stond!)
Can't recover, good bye
*** DIT IS MIJN PROGRAMMACODE:
IDENTIFICATION DIVISION.
PROGRAM-ID. OPGAVE 14.
AUTHOR. REMO KROL.
DATA-WRITTEN. 10-04-2002.
DATA-COMPILED.
ENVIROMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. IBM-LA.
OBJECT-COMPUTER. IBM-LA.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT MODEM ASSIGN TO DISK
ORGANIZATION IS LINE SEQUENTIAL.
SELECT BESTEL ASSIGN TO DISK
ORGANIZATION IS LINE SEQUENTIAL.
SELECT PERSONEN ASSIGN TO DISK
ORGANIZATION IS LINE SEQUENTIAL.
SELECT OPG14-1 ASSIGN TO DISK
ORGANIZATION IS LINE SEQUENTIAL.
SELECT PERSSORT ASSIGN TO DISK
ORGANIZATION IS INDEXED
RECORDKEY IS PERSNUMMER
ACCES MODE IS RANDOM.
DATA DIVISION.
FILE SECTION.
FD MODEM.
LABEL RECORDS STANDARD
DATA RECORD MODEM-RECORD
VALUE IF FILE-ID “MODEM.SEQ”.
01 MODEM-RECORD.
03 M-PERSNUMMER PIC 9 (04).
03 M-BBSNUMMER PIC 9 (04).
03 M-MODCOUNT PIC 9 (02).
03 M-MODTIM PIC 9 (05).
03 M-MODDOWNLOAD PIC 9 (04).
FD BESTEL.
LABEL RECORDS STANDARD
DATA RECORD BESTEL-RECORD
VALUE IF FILE-ID “BESTEL.SEQ”.
01 BESTEL –RECORD.
03 B-BESTDATUM PIC X (08).
03 B-PERSNUMMER PIC 9 (04).
03 B-ARTNUMMER PIC 9 (04).
03 B-BESTAANTAL PIC 9 (02).
FD PERSONEN.
LABEL RECORDS STANDARD
DATA RECORD PERSONEN-RECORD
VALUE IF FILE-ID “PERSONEN.SEQ”.
01 PERSONEN –RECORD.
03 P-PERSNUMMER PIC 9 (04).
03 P-PERSNAAM PIC X (21).
03 P-PERSVOORN PIC X (11).
03 P-PERSSTRAAT PIC X (22).
03 P-PLAATS PIC X (20).
03 P-ABNUMMER PIC 9 (07).
FD OPG14-1.
LABEL RECORDS STANDARD
DATA RECORD OPG14-1-RECORD
VALUE IF FILE-ID “OPG14-1.SEQ”.
01 OPG14-1-RECORD.
03 O-PERSNUMMER PIC 9 (04).
03 O-PERSNAAM PIC X (21).
SD PERSSORT.
01 PERSSORT-RECORD.
03 PS-PERSNUMMER PIC 9 (04).
03 PS-PERSNAAM PIC X (21).
03 PS-PERSVOORN PIC X (11).
03 PS-PERSSTRAAT PIC X (22).
03 PS-PLAATS PIC X (20).
03 PS-ABNUMMER PIC 9 (07).
WORKING-STORAGE SECTION.
PROCEDURE DIVISION.
MAIN SECTION.
M001.
SORT PERSSORT-RECORD ASCENDING KEY P-PERSNUMMER
GIVING PERSSORT
STOP RUN.
M999.
EXIT.
SEARCHPERSONEN SECTION.
SP001.
OPEN INPUT PERSONEN.
OPEN OUTPUT OPG14-1.
SP010.
READ PERSONEN AT END
CLOSE PERSONEN
CLOSE OPG14-1
STOP RUN.
PERFORM SEARCH PERSNUMMER.
GO TO SP010.
SP999.
EXIT.
SEARCHBESTEL SECTION.
SB001.
OPEN INPUT BESTEL.
SB010.
READ BESTEL AT END
CLOSE BESTEL
GO TO SB999.
IF B-PERSNUMMER = P-PERSNUMMER
PERFORM SEARCH MODEM
CLOSE BESTEL
GO TO SB999.
GO TO SB010.
SB999.
EXIT.
SEARCHMODEM SECTION.
SM001.
OPEN INPUT MODEM.
SM010.
READ MODEM AT END
CLOSE MODEM
GO TO SM999.
IF M-PERSNUMMER = P-PERSNUMMER
PERFORM WRITE TO OPG14-1
CLOSE MODEM
GO TO SM999.
GO TO SM010.
SM999.
EXIT.
WRITETOOPG14-1 SECTION.
W001.
MOVE P-PERSNUMMER TO O-PERSNUMMER.
MOVE P.PERSNAAM TO O-PERSNAAM.
WRITE OPG14-1.
W999.
EXIT.
Alvast bedankt!
Mvg,
Remo