Here's what I found in the COBOL 5 compiler (5.1.1 & 5.2.0):
Invocation parameters:
...TEST(S,EJPD)
results in:
Options in effect:
...
TEST(NOEJPD,SOURCE)
...
I didn't expect the NOEJPD, I expected EJPD.
Using TEST(EJPD,S) works fine, the result: TEST(EJPD,SOURCE).
Seems like the 'S' (and 'NOS') when used as the first sub-option, sets the TEST sub-option EJPD to its default: NOEJPD.
RenéBeurskens