GDDM V3R2 Base Application Programming Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Specifying when trace is to be invoked

GDDM V3R2 Base Application Programming Guide
SC33-0867-01



You can confine the GDDM trace to occurrences of an individual call in the program, an ASREAD for example, by coding the default statements like this:


              ADMMDFT TRCESTR='IF API THEN'
              ADMMDFT TRCESTR='   IF (1 GR+4)%%=X''C100000'' THEN PARMSF'

The single call is checked for by checking the contents of a register for the hexadecimal value of the call's request control parameter (RCP) code, in this case, X'C100000' for ASREAD. The RCP codes of all GDDM Base calls, and full information about the defaults mechanism are given in the GDDM Base Application Programming Reference book.

Or, if you want to trace a call only every nth time that a particular set of conditions occurs, these statements, for example, trace every fourth occurrence of ASREAD:


              ADMMDFT TRCESTR='IF API THEN                        '
              ADMMDFT TRCESTR='   IF (1 GR+4)%%=X''C100000'' THEN '
              ADMMDFT TRCESTR='      IF COUNT(4) THEN PARMSF      '

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012