You can run two “Hello World” examples: HelloWorld and
HelloCICSWorld. The HelloWorld example uses only Java services and
HelloCICSWorld uses JCICS.
Here is a summary of the examples:
- HelloWorld
- This is the standard Java application that uses only Java services.
It uses the following Java class:
- HelloWorld (PROGRAM name DFJ$JHE1)
and the following C language CICS® program:
Note: DFH$JSAM is a standard CICS program that could be written
in any of the CICS-supported languages. If, for example, you do not
have a C compiler, you could write a COBOL version of DFH$JSAM and
use it in place of the supplied C version. Alternatively, you could
bypass DFH$JSAM altogether by changing the JHE1 TRANSACTION definition
to run program DFJ$JHE1. However, if you do this bear in mind that
the Java program does not write anything to the terminal; so your
only indication that the application has run successfully is the message
in the stdout file.
Run the JHE1 CICS transaction
to execute the Java standard application. You should receive the following
message from JHE1 on
System.out:
Hello from a regular Java application
- HelloCICSWorld
- This is the JCICS application. It uses the following Java class:
- HelloCICSWorld (PROGRAM name DFJ$JHE2)
Run the JHE2 transaction to execute the JCICS application.
You should receive the following message from JHE2 on
Task.out:
Hello from a Java CICS application