Is this because i am trying to update the key field in the file.
Below is the code:-
FILE GMSM VS(UPDATE)
GMSM-ORG 1 03 N
GMSM-SCHEME-ID 22 05 A
*
JOB INPUT NULL
*-----------------
GET GMSM
IF GMSM-ORG = 000 999
GOTO JOB
END-IF
MOVE 'T1CCC' TO GMSM-SCHEME-ID
WRITE GMSM UPDATE
STOP.
*
Here the file is already catalouged and the field i try to update is the key part of the file.