It's easy to write a REXX script that a COBOL program can invoke. What's hard is changing SDSF to support a direct call from a COBOL program with equivalent functionality.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Paul Gilmartin <0000000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Monday, June 3, 2019 3:32 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: SDSF API question -- why only REXX & Java? On Mon, 3 Jun 2019 17:23:35 +0000, Seymour J Metz wrote: >No, I mean that SDSF would have to accept a parameter for the associative >array and have some way to update it. Only after IBM implements can can they >provide for calling SDSF from COBOL. The hard part is updating SDSF. > Or bridge code to invoke SDSF with the (documented) Rexx interface; use IRXEXCOM to extract the values it sets and either set the corresponding COBOL variables or return a canonical form such as XML that COBOL could parse to populate an associative array. SMOP, but no update to SDSF. I did something like that decades ago on CMS: I simulated a call from Rexx to SQL/DS; extracted values with EXECCOMM; and populated values in a Mainsail main program. Mainsail was very friendly -- compiled in debug mode it made its symbol table (and compiler!) available to its foreign language, making it easy to use source language constructs to set host variables. Alas, when I last looked, Mainsail's domain name was for sale. ________________________________________ >From: Clark Morris >Sent: Sunday, June 2, 2019 5:12 PM > >I assume you mean that a COBOL has to be able to CALL 'X' with a USING >or RETURNING phrase that has the right pointers to a associative array >and that COBOL has to be able to set up that array for either the >USING phrase of the call or the RETURNING phrase of the CALL. ... -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN