View previous topic :: View next topic |
Author |
Message |
Narsimha Beginner
Joined: 03 Dec 2002 Posts: 27 Topics: 14
|
Posted: Tue Jan 14, 2003 1:45 am Post subject: Regarding PPT and PCT entries |
|
|
Hi,
If program "A" which calls two subprograms "B" and "C", where "B" is a COBOL/CICS and "C" is a COBOL/DB2, then how the PPT and PCT entries are created? Does every online program(even a validation routine) require a PCT entry?
If program "A" is a non-Db2 program which calls another program which is DB2 program then how the RCT entries were created? Please explain me or send me any link if available.
Thanks,
Narsimha |
|
Back to top |
|
|
Manas Biswal Intermediate
Joined: 29 Nov 2002 Posts: 382 Topics: 27 Location: Chennai, India
|
Posted: Tue Jan 14, 2003 3:32 am Post subject: |
|
|
Hi,
PPT entries are essential for any CICS application program or mapset that you are using. The PPT entry stores the name of the program/mapset alongwith the address of the load for that program. This entry will be used whenever the program/mapset needs to be loaded.
PCT entry is needed whenever you need a transaction id associated with a program. It is basically a XREF between the transaction id and the program name associated with it. Now, you need at least one PCt entry to start an application with a transaction. After that, PCT entries are needed dependign on your requirements. If you are coding everything in pseudo-conversation and sending maps from each program then not having PCT entries for all programs will do(you need to come back to the program having the PCT entry after each send of any map) but will make your coding of the application a little complex.
RCT entries(Referred to as DB2TRAN and DB2ENTRY now-a-days) are basically a XREF between the CICS transaction that you are running and the plan that you are using via a DB2 Thread. You need a DB2TRAN for each transaction that is mapped to a program using SQLs and you need a corresponding DB2ENTRY to map it to the plan.
Hope I am clear to you. Otherwise go through the CICS Application Programming Guide
Regards,
Manas |
|
Back to top |
|
|
vallishar Beginner
Joined: 17 Dec 2002 Posts: 53 Topics: 14 Location: BengaLuru
|
Posted: Fri Jan 17, 2003 6:31 pm Post subject: |
|
|
Quote: |
If you are coding everything in pseudo-conversation and sending maps from each program then not having PCT entries for all programs will do(you need to come back to the program having the PCT entry after each send of any map) but will make your coding of the application a little complex.
|
This sort of architecture is used by PWB - Programmer's Work Bench tool.
Just an additional info. _________________ If you're not failing every now and again, it's a sign you're not doing anything very innovative. |
|
Back to top |
|
|
|
|