How well does an API strategy work for modernizing or making CICS applications participate in the hybrid cloud? Find out right now by testing it from your browser. You can invoke a real, live CICS API simply by clicking on this URL: After clicking the demo link, you’ll see something like this on your screen:
JSON output of a CICS transaction invoked via an API.This browser screen contains the JSON output from an API call to the HostBridge mainframe where our demo CICS Trader application runs. Trader is a screen-based (3270), BMS share trading CICS demonstration application. The Trader screens look like this:
CICS Trader application 3270 screens.
- The API invokes the Trader CICS application running on our mainframe.
- The API navigates through 16 Trader screens to get all the trading data for the four companies in the demo. The data is retrieved without doing any screen scraping.
- The API returns the results of the transaction sequence in the form of JSON. HB.js APIs also support XML and other output formats.
Sample HB.js code for creating a CICS API.A simple right mouse click in the editor and choosing ‘Execute’ sends this HB.js API script to the host, for syntax checking and execution inside of CICS. To deploy this API for use requires a simple right mouse click and choosing ‘Make’ which compiles and saves this API, making it available to invoke by your hybrid cloud applications, automations, Excel macros, or any other program that needs CICS logic or data.