Has anyone had this "simple" problem before? Below is the relevant portion of my code the, the FD statement. Is there someone there who can tell me what I'm doing wrong? The problem is with LETFILE. I get an error message saying that the FD for it (line 25 in the listing) has no RECORD defined for it, which you see I do define in line 29. The whole program is only about 100 lines long. If anyone can help with this I would be very grateful. Thanks.
000010 SELECT DISKFILE ASSIGN TO DISK
000011 ORGANIZATION SEQUENTIAL ACCESS SEQUENTIAL
000012 FILE STATUS IS FILE-STATUS
000013 RECORD DELIMITER IS STANDARD-1.
000014 SELECT LETFILE ASSIGN TO DISK
000015 ORGANIZATION SEQUENTIAL ACCESS SEQUENTIAL
000016* FILE STATUS IS FILE-STATUS
000017 RECORD DELIMITER IS STANDARD-1.
000019 DATA DIVISION.
000020 FILE SECTION.
000021 FD DISKFILE
000022 LABEL RECORD IS STANDARD
000023 VALUE OF ID IS "SKELFIL4.TXT"
000024 DATA RECORD IS FLD1.
000025 FD LETFILE
000026 BLOCK CONTAINS 1 RECORD
000027 RECORD CONTAINS 15 CHARACTERS
000028 LABEL RECORD IS STANDARD
000029 DATA RECORD IS LETVAL
000030 VALUE OF ID IS "LETFILE.TXT".
000031 01 FLD1.
000032 02 FLD2 PIC A(15) OCCURS 15 TIMES.
000033 01 LETVAL.
000034 05 LET15 PIC X(15).
000036 WORKING-STORAGE SECTION.
000037 01 ALPHAVAL.
000038 05 LETFIELD PIC X OCCURS 15 TIMES INDEXED BY NT.
I don't know if I can assign a difficulty. I think I'm probably making a very simple, stupid error that I just don't see.