Invoke an ADS dialog from DC COBOL using an SQL procedure
searchcancel
Invoke an ADS dialog from DC COBOL using an SQL procedure
book
Article ID: 20571
calendar_today
Updated On: 06-12-2024
Products
IDMSIDMS - DatabaseIDMS - ADS
Issue/Introduction
There is no direct way to invoke an ADS dialog from a COBOL program. However, this is possible using the IDMS SQL Option.
Environment
Release: All supported releases. Component: ADS, SQL.
Resolution
Create an SQL procedure 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, see Defining and Using Procedures.