DL/I returns this status code if the segment being retrieved
contains an invalid pointer and the application program has a processing
option of GOT or GON.
This can occur when update activity in the database is going on ncurrently with your program's processing.
It is better ides to terminate program abnormally else it is possible that your program may give incorrect results. If you want to continue then can do it by allowing GG status code in your program logic. Please note that the request that resulted in the GG status code might be successful if you issue it again.
So if GG staus code occured then try the same for one more time and if still it is failing then terminate the program.