Hi,
I have cobol code like below.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
FILE-CONTROL.
SELECT ABC_FILE ASSIGN TO 'ABC_FILE'
ORGANIZATION IS INDEXED
RECORD KEY IS XXX OF ABC_FILE
ALTERNATE RECORD KEY IS ZZZ OF ABC_FILE
ACCESS MODE IS DYNAMIC
FILE STATUS IS FILE_STATUS.
DATA DIVISION
FILE SECTION.
FD ABC_FILE EXTERNAL
LABEL RECORDS ARE STANDARD.
01 ABC_PLAN_RECORD.
02 XXX.
ETC....
ETC....
IN THIS CODE MY RECORD LAYOUT GOT CHANGE SO I CREATED A NEW RECORD LAYOUT WITH NAME NEW_ABC_PLAN_RECORD AND IN MY CODE I JUST REPLACE FD PORTION TO BELOW
FD ABC_FILE EXTERNAL
LABEL RECORDS ARE STANDARD.
01 NEW_ABC_PLAN_RECORD.
02 XXX.
ETC....
ETC....
QUESTION: WHAT ELSE I NEED TO CHANGE. B'COS WHEN I RUN THE PROGRAM IT IS NOT SHOWING ANY RECORD. PREVIOUSLY IT WAS SHOWING RECORDS. i HAVE NOT CHANGED THE NAME OF DATA FILE. IT IS SAME AND ON THE SAME LOCATION AND SHOWN BY LOGICAL "ABC_FILE".
pLEASE TELL ME WHERE I AM DOING MISTAKE....
I have cobol code like below.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
FILE-CONTROL.
SELECT ABC_FILE ASSIGN TO 'ABC_FILE'
ORGANIZATION IS INDEXED
RECORD KEY IS XXX OF ABC_FILE
ALTERNATE RECORD KEY IS ZZZ OF ABC_FILE
ACCESS MODE IS DYNAMIC
FILE STATUS IS FILE_STATUS.
DATA DIVISION
FILE SECTION.
FD ABC_FILE EXTERNAL
LABEL RECORDS ARE STANDARD.
01 ABC_PLAN_RECORD.
02 XXX.
ETC....
ETC....
IN THIS CODE MY RECORD LAYOUT GOT CHANGE SO I CREATED A NEW RECORD LAYOUT WITH NAME NEW_ABC_PLAN_RECORD AND IN MY CODE I JUST REPLACE FD PORTION TO BELOW
FD ABC_FILE EXTERNAL
LABEL RECORDS ARE STANDARD.
01 NEW_ABC_PLAN_RECORD.
02 XXX.
ETC....
ETC....
QUESTION: WHAT ELSE I NEED TO CHANGE. B'COS WHEN I RUN THE PROGRAM IT IS NOT SHOWING ANY RECORD. PREVIOUSLY IT WAS SHOWING RECORDS. i HAVE NOT CHANGED THE NAME OF DATA FILE. IT IS SAME AND ON THE SAME LOCATION AND SHOWN BY LOGICAL "ABC_FILE".
pLEASE TELL ME WHERE I AM DOING MISTAKE....