Support for error feedback during SCLM build for C

The SCLM Attachment supports error feedback for C programs in connection with an SCLM build. Allocate the error feedback file as a member of a PDS file in a build translator. Use the REXX procedure TAUSCPLA for this purpose.

Unlike COBOL, PLI or Assembler, the language C doesn't provide a compiler exit which can be used to support error feedback. Therefore it is necessary to call the C compiler from a REXX script which calls the error feedback routine after the compiler has been executed.

The SCLM Attachment includes a REXX sample TAUSCXCC which can be used as SCLM translator to support error feedback for C.

To support error feedback for C it is necessary to use the /EVENTS compiler option and to allocate a temporary SYSEVENT dataset.

          FLMTRNSL   CALLNAM='ERRORFB',                                C
               FUNCTN=BUILD,                                           C
               CALLMETH=ISPLNK,                                        C
               COMPILE=SELECT,                                         C
               VERSION=1.0,                                            C
               GOODRC=0,                                               C
               PDSDATA=Y,                                              C
               PORDER=1,                                               C
               OPTIONS='CMD(TAUSCPLA @@FLMMBR) NEST'
          FLMTRNSL   CALLNAM='C     ',                                 C
               FUNCTN=BUILD,                                           C
               CALLMETH=ISPLNK,                                        C
               COMPILE=SELECT,                                         C
               VERSION=1.0,                                            C
               GOODRC=0,                                               C
               PDSDATA=Y,                                              C
               PORDER=1,                                               C
               OPTIONS='CMD(TAUSCXCC /EVENTS,SSCOM,SO,LO,NOMAR,RENT) NEC
               ST'
...
           FLMALLOC  IOTYPE=W,RECFM=VB,LRECL=255,RECNUM=1000,          C
               DDNAME=SYSEVENT
...