CDS556

Clear/Save/Restore View Manager Global Variables

Last Revised: 05/26/12

The Dynamo Tools View Manager CDS550 and Key Segment Entry program CDS552 use global variable to improve performance of File Maintenance and other applications that use these tools.  This routine is called during Data Dictionary Maintenance (FMS) so that any changes made to the data dictionary will become effective without needing to log out or enter XX at a menu.  This routine can be called or run by other applications when it is desirable to clear these globals.  CDS556 can also be called to save and later restore global variables used by the Application Menu Processor (SW100) and the View Manager (CDS550) when a T type external routine calls a routine that ultimately calls SW100 or CDS550 again.

Note that CDS037 calls CDS556 with the PUSH and POP options, so an application program only needs to call CDS556 when not using CDS037.

Calling Formats:

CALL "CDS556" or RUN "CDS556" Clears View Manager Global variables when changes have been made to the Data Dictionary.  The View Manager will rebuild these global variables from the revised Data Dictionary the next time CDS550 is called.
CALL "CDS556::PUSH" Pushes certain global variables onto a stack, and clears them to prevent problems with recursion.
CALL "CDS556::POP" Pops the global variables previously pushed onto a stack, restoring their values.
Example: This code is within a T Type External Routine, which calls the Application Menu Processor (SW100) or the View Manager (CDS550) directly, or indirectly.
1540 CALL "CDS556::PUSH"

1550 CALL "SW100",Y$,Y5$,SO40$,CW04$,CW04ALL$,SW100$

1560 CALL "CDS556::POP"