I have a problem with the command that hilite playing tricks on me.
When I positioned HI cob cobol in a cobol's member, the color is right. But if, in the same PDS, I open a JCL's member containing JCL, it displays the coloration cobol ! And vice versa !
The highlighting is determined by the type of library (third qualifier of three); it has nothing to do with the content of a member (which would be far too difficult and time-consuming to determine with even marginal reliability). Edit FOO.BAR.COBOL(anything), and it will be highlighted as
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day