Determine Which Condition Codes are Set

Start of instruction setTo determine which condition codes are set

  1. Mark the Condition codes field in the Optional Parameters window.

  2. Press PF2 (retrn).

    The Generation main menu is displayed.

  3. Generate the module.

After generation is complete, the Condition Codes Trace window is displayed, showing the condition codes set for the current module. For example:

 CSGCTRAC                 Natural Construct                  CSGCTRC0
 Jan 13                 Condition codes Trace                  1 of 1
                                                                     
    Condition codes                    Condition codes               
    ------------------------------     ------------------------------
 1  X MULTIPLE-ENTITIES             14   DB2-TIMESTAMP               
 2  X KEY-NOT-DEFINED-AS-UQ         15   CONFINED-KEY-PREFIX         
 3    KEY-IS-ALPHA                  16   RESET-REDEFINES             
 4    KEY-IS-LOGICAL                17   LOGGING-UPDATES             
 5    HOLD-FIELD-EQ-TIME            18   DB2-REFERENTIAL-INTEGRITY   
 6  X PRIME-FILE-IS-ADABAS          19   DB2-INTRA-CASCADE-DELETE    
 7    PRIME-FILE-IS-DB2             20   KEY-IS-REDEFINED            
 8    CLAUSE-IS-DB2-SPECIFIC        21   DERIVED-DATA                
 9    PRIME-FILE-IS-IMS             22   NAT-REFACTORING             
 10   PRIME-FILE-IS-VSAM            23 X GET-BY-ISN                  
 11   KEY-IS-A-SUPER                24 X HASH-LOCKING                
 12 X USE-MSG-NR                    25   NAT4-OR-HIGHER              
 13   KEY-IS-PRIME

Tip:
If the condition code is not marked, ensure that the code is being generated in a Natural V4 (Natural V6 on open systems) or higher environment and that the option is set to True in the CSXDEFLT subprogram. CSXDEFLT is installed in the SYSCSTX library. To use the code, compile the subprogram in the SYSCST library and then copy the object code to the SYSLIBS library. For information on CSXDEFLT, see Use CSXDEFLT Overrides in Natural Construct Administration and Modeling.