A sample CICS program, COBOL TRADERPL, has a statement to call an external API, getTradeWeather.
Where I can find "getTradeWeather" JavaScript source in the Sample Trader Application ?
GET-WEATHER SECTION.
MOVE 'hbscript' TO TEMP1.
EXEC CICS PUT CONTAINER('_REPOSITORY') CHANNEL('HBJS')
FROM( TEMP1 )
FLENGTH(8)
END-EXEC.
MOVE 'getTraderWeather' TO TEMP1.
EXEC CICS PUT CONTAINER('_SERVICE')
CHANNEL( 'HBJS' )
FROM( TEMP1 )
FLENGTH(16)
END-EXEC.
Release : 8.0
”getTradeWeather" JavaScript sources is attached to the KD.
It also calls another API "t007" in the script . "t007" JavaScript sources is also attached to the KD.
* Create the BMS Map copybooks, in and out
*/
var t007Factory = require('t007', 'hbscript');
var t007in = new t007Factory.t007i({initialize : true});
var t007out = new t007Factory.t007o({initialize : true, initCharacter : '\x00'});