It may be desirable to invoke existing code in ADS dialogs from COBOL programs.
There is no direct way to invoke an ADS dialog from a COBOL program. However, this is possible for site who have purchased the CA IDMS SQL Option, by creating procedures based on existing ADS dialogs. This is a two-part process:
- The COBOL program can issue an SQL statement which specifies a procedure as a data source in the FROM clause;
- The procedure definition points to an underlying program which can be an ADS dialog.
For more details on how to accomplish this, if it would meet your needs, you can see Chapter 11 of the SQL Reference manual.
Note also that there is an example in Appendix M.