CISC PROGRAM TO CALL BY CTG COBOL PROGS
CISC PROGRAM TO CALL BY CTG COBOL PROGS
(OP)
The problem is:
Invoke by Java-CTG e CICS program and by this prog call other cobol programs.
The java part is solved.
The problem is how to build a unique CICS program Driver to call other cobol progs:
This is the CICS Driver PRog:
LINKAGE SECTION.
01 DFHCOMMAREA.
02 PROG-NAME PIC X(8).
02 PROG-AREA-LEN PIC 9(5).
02 PROG-AREA PIC X(32000).
PROG-NAME is the name of cobol program to CALL
PROG-AREA-NAME is the size of COMMAREA of PROG-NAME
How to call PROG-TO-CALL using the PROG-AREA with size PROG-AREA-LEN ???
this is not working:
CALL NOME-PROGRAMMA USING AREA-PROGRAMMA(1:LEN-AREA-PROGRAMMA)
what to do ?
thanks...
Invoke by Java-CTG e CICS program and by this prog call other cobol programs.
The java part is solved.
The problem is how to build a unique CICS program Driver to call other cobol progs:
This is the CICS Driver PRog:
LINKAGE SECTION.
01 DFHCOMMAREA.
02 PROG-NAME PIC X(8).
02 PROG-AREA-LEN PIC 9(5).
02 PROG-AREA PIC X(32000).
PROG-NAME is the name of cobol program to CALL
PROG-AREA-NAME is the size of COMMAREA of PROG-NAME
How to call PROG-TO-CALL using the PROG-AREA with size PROG-AREA-LEN ???
this is not working:
CALL NOME-PROGRAMMA USING AREA-PROGRAMMA(1:LEN-AREA-PROGRAMMA)
what to do ?
thanks...
RE: CISC PROGRAM TO CALL BY CTG COBOL PROGS
Possible ideas:
1) Recode the driver program to handle specific programs. But if you do that, you might as well have the main code call the COBOL programs instead of the CICS one.
2) Play around with the idea of passing pointers. I haven't done this with COBOL, but with other languages you pass the pointer, and the subprogram has to resolve that to its known data block. But that kind of obfuscates things and the other group/team members might not like it.
3) Probably the most straight forward and acceptable to most solution if the main has to have a CICS program is to write a stub program which takes the data and then passes it to the COBOL sub and then handles the data on return (if necessary). Not much dev time (copy/paste), but probably a catalogue nightmare if you have very many of these COBOL subroutines.
Good luck, sounds like you could use it.
It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
RE: CISC PROGRAM TO CALL BY CTG COBOL PROGS
CODE
01 WS-PROG-AREA PIC X(32000).
LINKAGE SECTION.
01 DFHCOMMAREA.
02 PROG-NAME PIC X(8).
02 PROG-AREA-LEN PIC 9(5).
02 PROG-AREA PIC X(32000).
MOVE PROG-AREA (1:PROG-AREA-LEN) TO WS-PROG-AREA
CALL PROG-NAME USING WS-PROG-AREA
MOVE WS-PROG-AREA TO PROG-AREA (1:PROG-AREA-LEN)
www.moldyoldy.com/VBComparedemo - free online Compare/Diff of snippets
RE: CISC PROGRAM TO CALL BY CTG COBOL PROGS