We are a batch system that is converting from NetExpress 5.1 to Visual Cobol 2022. When compiling we are getting errors with the file name and assign name being the same. This compiles without an errors in NetExpress.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SPECIAL-NAMES.
C01 IS H-O-F.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT G05 ASSIGN TO G05
FILE STATUS IS GT-STATUS
ACCESS IS SEQUENTIAL.
DATA DIVISION.
FILE SECTION.
FD G05
BLOCK CONTAINS 0 RECORDS
LABEL RECORDS ARE STANDARD.
01 CODE-REC.
The error is COBCH0005, User-name G05 not unique
the error is on the SELECT G05 Assign to G05 line. Do we have to make the file name and assign names different or is there another way?