Programming in C++

C++ supports object-oriented programming and you can use this language in the same way as you would use the C language. You must specify that the translator is to translate C++ using the CPP option.

C++ programs must also be defined with the LANGUAGE(LE370) option. See Language Environment for information about this environment.

Restrictions

C++ uses ‘//’ for single line comments. Do not put a comment in the middle of an EXEC CICS® command. For instance, this example does not work:

EXEC CICS SEND TEXT FROM(errmsg)
          LENGTH(msglen)  // Send error message to screen
          RESP(rcode)
          RESP2(rcode2);

These examples are valid:

EXEC CICS SEND TEXT FROM(errmsg)
          LENGTH(msglen)
          RESP(rcode)
          RESP2(rcode2);     //Send error message to screen

EXEC CICS SEND TEXT FROM(errmsg)
          LENGTH(msglen)     /* Send error message to screen */
          RESP(rcode)
          RESP2(rcode2);
[[ Contents Previous Page | Next Page Index ]]