Running the Program Control samples

The COMMAREA sample
This sample uses the following Java classes:
  • ProgramControl.ClassOne (PROGRAM name DFJ$JPC1)
  • ProgramControl.ClassTwo (PROGRAM name DFJ$JPC2)
and the following C language program:
  • DFH$LCCA
Run the JPC1 CICS transaction to execute the sample. You should receive the following messages on Task.out:
    Entering ProgramControlClassOne.main()
    About to link to C program
    Leaving ProgramControlClassOne.main()
If you now clear the screen, you should see:
Entering ProgramControlClassTwo.main()
data received correctly
Leaving ProgramControlClassTwo.main()
The channel sample
This sample uses the following Java classes:
  • ProgramControl.ClassThree (PROGRAM name DFJ$JPC3)
  • ProgramControl.ClassFour (PROGRAM name DFJ$JPC4)
and the following C language program:
  • DFH$LCCC
Run the JPC3 CICS transaction to execute the sample. You should receive the following messages on Task.out:
Entering ProgramControlClassThree.main() 
About to link to C program 
Leaving ProgramControlClassThree.main()
If you now clear the screen, you should see:
Entering ProgramControlClassFour.main()
ProgramControlClassFour invoked with Container "IntData         " 
ProgramControlClassFour invoked with Container "StringData      " 
ProgramControlClassFour invoked with Container "Response        " 
Leaving ProgramControlClassFour.main()
Note that the messages that list the containers may appear in a different order from that shown above.
Note: DFH$LCCA and DFH$LCCC are standard CICS programs that could be written in any of the CICS-supported languages. If, for example, you do not have a C compiler, you could write COBOL versions of DFH$LCCA and DFH$LCCC and use them in place of the supplied C versions.