In my COBOL program I have the following statement:
SET MYSELF (STATUS) TO -1.
What this statement does? I don't understand the MYSELF and STATUS words. It seems that the it gives the status parameter the value -1, am I right? What MYSELF means?
MYSELF is a reserved word that enables a compiler-supplied task item to refer to the attributes of its own process. So you are setting STATUS in your own process to -1.
COBOL ANSI-74 Programming Reference Manual (PDF Link)