Language element control
None.
Allows comments to be specified by two slashes (//), which supports C++ style comments in C code.
When the SSCOMM option is in effect, it instructs the C compiler to recognize two slashes (⁄⁄) as the beginning of a comment, which terminates at the end of the line. It will continue to recognize /* */ as comments.
When the NOSSCOMM compiler option is in effect, /* */ is the only valid comment format.
NOSSCOMM
For LANGLVL(STDC99) and LANGLVL(EXTC99), the default is SSCOMM.
When using the xlc command in z/OS® UNIX System Services, the equivalent option for SSCOMM is -qcpluscmt.
None.
//COMPILE.SYSIN DD DATA,DLM=@@
#include <stdio.h>
void main(){
// z/OS XL C comment
printf("hello world\n");
// A nested z/OS XL C /* */ comment
}
@@
//* JCL comment