Skip to content

Commit f443fdd

Browse files
authored
Terminal sample (#6)
* Initial drop. * Add of CSD definitions. * Update of README for terminal sample. * Code clean.
1 parent adb33f4 commit f443fdd

File tree

17 files changed

+280
-0
lines changed

17 files changed

+280
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Java source code for the following classes is provided in the corresponding Ecli
2626
performing all of the codepage conversion manually. This avoids the pre-req of CICS TS V5.1, but is slightly more work to code in Java.
2727
* TDQExample3 - A more complex example that writes structured records to a TDQ and then reads them back.
2828

29+
### Project com.ibm.cicsdev.terminal
30+
31+
* TerminalExample1 - A simple class to demonstrate receiving arguments from a terminal in a JCICS environment.
32+
2933

3034
### Project com.ibm.cicsdev.tsq
3135

@@ -56,6 +60,8 @@ The following Eclipse CICS bundle projects are provided to support deployment of
5660
* Project com.ibm.cicsdev.serialize.resources.cicsbundle - CICS bundle project containing transaction and program definitions for the com.ibm.cicsdev.serialize sample
5761
* Project com.ibm.cicsdev.tdq.cicsbundle - CICS bundle project for deploying the com.ibm.cicsdev.tdq samples
5862
* Project com.ibm.cicsdev.tdq.resources.cicsbundle - CICS bundle project containing transaction and program definitions for the com.ibm.cicsdev.tdq sample
63+
* Project com.ibm.cicsdev.terminal.cicsbundle - CICS bundle project for deploying the com.ibm.cicsdev.terminal sample
64+
* Project com.ibm.cicsdev.terminal.resources.cicsbundle - CICS bundle project containing transaction and program definitions for the com.ibm.cicsdev.terminal sample
5965
* Project com.ibm.cicsdev.tsq.cicsbundle - CICS bundle project for deploying the com.ibm.cicsdev.tsq samples
6066
* Project com.ibm.cicsdev.tsq.resources.cicsbundle - CICS bundle project containing transaction and program definitions for the com.ibm.cicsdev.tsq sample
6167
* Project com.ibm.cicsdev.vsam.cicsbundle - CICS bundle project for deploying the com.ibm.cicsdev.vsam samples

etc/Terminal/DFHCSD.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
DEFINE PROGRAM(JAVATRM1) GROUP(JCICSAMP)
3+
DESCRIPTION(Java terminal sample)
4+
CONCURRENCY(REQUIRED) API(CICSAPI) DYNAMIC(NO)
5+
JVM(YES) JVMSERVER(DFHJVMS) DATALOCATION(ANY)
6+
JVMCLASS(com.ibm.cicsdev.terminal.TerminalExample1)
7+
8+
DEFINE TRANSACTION(JTM1) GROUP(JCICSAMP) PROGRAM(JAVATRM1)
9+
DESCRIPTION(Java terminal sample)
10+
TASKDATALOC(ANY)
11+
12+
DEFINE BUNDLE(JCICTERM) GROUP(JCICSAMP)
13+
DESCRIPTION(JCICS terminal sample)
14+
BUNDLEDIR(/u/cics1/com.ibm.cicsdev.terminal.cicsbundle_1.0.0)
15+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>com.ibm.cicsdev.terminal.cicsbundle</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.ibm.cics.bundle.ui.bundlebuilder</name>
10+
<arguments>
11+
<dictionary>
12+
<key>bundleID</key>
13+
</dictionary>
14+
<dictionary>
15+
<key>majorVersion</key>
16+
</dictionary>
17+
<dictionary>
18+
<key>microVersion</key>
19+
</dictionary>
20+
<dictionary>
21+
<key>minorVersion</key>
22+
</dictionary>
23+
</arguments>
24+
</buildCommand>
25+
</buildSpec>
26+
<natures>
27+
<nature>com.ibm.cics.bundle.ui.bundlenature</nature>
28+
</natures>
29+
</projectDescription>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
encoding//META-INF/cics.xml=UTF-8
3+
encoding/com.ibm.cicsdev.terminal.osgibundle=UTF-8
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<manifest xmlns="http://www.ibm.com/xmlns/prod/cics/bundle" id="com.ibm.cicsdev.terminal.cicsbundle" bundleMajorVer="1" bundleMinorVer="0" bundleMicroVer="0" bundleVersion="1" bundleRelease="0" build="IntB-201511072132">
3+
<meta_directives>
4+
<timestamp>2016-11-04T15:15:33.327Z</timestamp>
5+
</meta_directives>
6+
<import name="DFHJVMS" type="http://www.ibm.com/xmlns/prod/cics/bundle/JVMSERVER" optional="false" warn="false"/>
7+
<define name="com.ibm.cicsdev.terminal" type="http://www.ibm.com/xmlns/prod/cics/bundle/OSGIBUNDLE" path="com.ibm.cicsdev.terminal.osgibundle"/>
8+
</manifest>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<osgibundle symbolicname="com.ibm.cicsdev.terminal" version="1.0.0" jvmserver="DFHJVMS"/>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>com.ibm.cicsdev.terminal.resources.cicsbundle</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.ibm.cics.bundle.ui.bundlebuilder</name>
10+
<arguments>
11+
<dictionary>
12+
<key>bundleID</key>
13+
<value>com.ibm.cicsdev.terminal.resources.cicsbundle</value>
14+
</dictionary>
15+
<dictionary>
16+
<key>majorVersion</key>
17+
<value>1</value>
18+
</dictionary>
19+
<dictionary>
20+
<key>microVersion</key>
21+
<value>0</value>
22+
</dictionary>
23+
<dictionary>
24+
<key>minorVersion</key>
25+
<value>0</value>
26+
</dictionary>
27+
</arguments>
28+
</buildCommand>
29+
</buildSpec>
30+
<natures>
31+
<nature>com.ibm.cics.bundle.ui.bundlenature</nature>
32+
</natures>
33+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding//META-INF/cics.xml=UTF-8
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="UTF-8"?><cicsdefinitionprogram xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int" concurrency="REQUIRED" datalocation="ANY" description="Java terminal sample" execkey="CICS" jvm="YES" jvmclass="com.ibm.cicsdev.terminal.TerminalExample1" jvmserver="DFHJVMS" name="JAVATRM1"/>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="UTF-8"?><cicsdefinitiontransaction xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int" description="Java terminal sample" localq="N_A" name="JTM1" program="JAVATRM1" taskdataloc="ANY"/>

0 commit comments

Comments
 (0)