I have a piece of code which have been running fine in Net Express. When compiling the same in visual COBOL for IDE I am getting some error.
The error are :
COBCH0071S PROCEDURE DIVISION missing or unknown statement
and
COBCH0082S COBOL Division or Section header encountered in incorrect order
Below is the part of the code with the lines highlighted which is giving me error.
file-control.
001100 select temp-b-sec-in-file assign to ut-s-insort.
001100 select sort-file assign to ut-s-sortwk01.
001200 select temp-b-sec-out-file assign to ut-s-outsort.
006900 i-o-control.
007000 apply write-only on temp-b-sec-out-file.
002700 data division.
002800 file section.
012400 fd temp-b-sec-in-file
012500 recording mode is v
012600 block contains 0 records
012700 record contains 202 to 30704 characters
012800 label records are standard
012900 data records are temp-b-sec-rec-in-a,
013000 temp-b-sec-rec-in-b.