Skip to content

Commit b1bc98f

Browse files
committed
Further tweaks
1 parent b9dd46f commit b1bc98f

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

docs/pages/cdp/cdp-Deploying-into-zospt-cics-region.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,45 @@ folder: cdp
99
toc: true
1010
---
1111

12-
The [z/OS Provisioning Toolkit](https://developer.ibm.com/mainframe/products/zospt/) (z/OS PT) provides a command line utility provision CICS regions and other development environment on z/OS. This tutorial requires z/OS PT version 1.1.5 or above to be installed.
12+
The [z/OS Provisioning Toolkit](https://developer.ibm.com/mainframe/products/zospt/) (z/OS PT) provides a command line utility to provision CICS regions and other development environment on z/OS. This tutorial requires z/OS PT version 1.1.5 or above to be installed.
1313

1414
### Prepare a z/OS PT image
1515

16-
A z/OS PT image contains the configuration and files necessary to provision the CICS region. This is typically prepared by the CICS system programmer for use by many developers. The configuration should include:
16+
A z/OS PT image contains the configuration and files necessary to provision the CICS region. This is typically prepared by the CICS system administrator for use by many developers. The [configuration properties](https://www.ibm.com/support/knowledgecenter/en/SSXH44E_1.0.0/zospt/cics/zospt-cics-properties.html) for the CICS image should include:
1717

1818
| zosptfile entry                      | Usage |
1919
| --- | -- |
20-
| `FROM cics_55` | Build a CICS TS V5.5 region |
21-
| `ENV DFH_NODE_HOME=` | Specify the directory for IBM SDK for Node.js - z/OS |
22-
| `ENV DFH_CICS_TYPE=MAS` | Specify the CICS region should be managed by CPSM |
23-
| `ENV DFH_CICSPLEX=` | Specify the name of the CICSplex |
20+
| `FROM cics_55` | Provision a CICS TS V5.5 region |
21+
| `ENV DFH_CICS_TYPE=MAS` | The CICS region should be managed by CPSM |
22+
| `ENV DFH_CICSPLEX=` | The name of the CICSplex |
23+
| `ENV DFH_NODE_HOME=` | The directory for IBM SDK for Node.js - z/OS |
2424
| `COPY bundles bundles` | Create an empty bundles directory in the provisioned file system to contain CICS bundles |
2525

26-
For example, to create the z/OS PT image source directory and configuration file, and build it ready for developers to provision a CICS region:
26+
For example, to create the z/OS PT image source directory and configuration file, and build it ready for developers to provision CICS regions:
2727

2828
```console
2929
export ZOSPTIMAGE=~/zosptimages/cics_55_nodejs
3030

3131
mkdir -p $ZOSPTIMAGE/bundles
3232

33-
cat > $ZOSPTIMAGE/zosptfile << EOF
33+
iconv -f IBM1047 -t UTF-8 > $ZOSPTIMAGE/zosptfile << EOF
3434
FROM cics_55
35-
ENV DFH_NODE_HOME=/usr/lpp/IBM/cnj/IBM/node-latest-os390-s390x
3635
ENV DFH_CICS_TYPE=MAS
3736
ENV DFH_CICSPLEX=ZOSPTINT
37+
ENV DFH_NODE_HOME=/usr/lpp/IBM/cnj/IBM/node-latest-os390-s390x
3838
COPY bundles bundles
3939
EOF
4040

41-
cat $ZOSPTIMAGE/zosptfile | iconv -f IBM1047 -t UTF8 > $ZOSPTIMAGE/zosptfile
42-
4341
chtag -tc UTF-8 $ZOSPTIMAGE/zosptfile
4442

4543
zospt build $ZOSPTIMAGE -t cics_55_nodejs
4644
```
4745

4846
### Provision your CICS region and deploy a Node.js application
4947

50-
1. Update your user `.profile` file on z/OS.
48+
1. Update your user `.profile` file on z/OS to run z/OS PT.
5149

52-
Add the path to the `zospt` command to your PATH, and add the following environment variables as described in [Configuring z/OS Provisioning Toolkit](https://www.ibm.com/support/knowledgecenter/en/SSXH44E_1.0.0/zospt/zospt-configuring.html):
50+
Add the directory to the `zospt` command to your PATH, and add the following environment variables as described in [Configuring z/OS Provisioning Toolkit](https://www.ibm.com/support/knowledgecenter/en/SSXH44E_1.0.0/zospt/zospt-configuring.html):
5351

5452
```properties
5553
export zospt_domain=
@@ -59,7 +57,7 @@ zospt build $ZOSPTIMAGE -t cics_55_nodejs
5957

6058
2. Provision your CICS region.
6159

62-
Use the `--name` option to specify a name for the container that is easy to remember for use in later commands. This may take several minutes.
60+
Use the `--name` option to specify a name for the container that is easy to remember for use in later commands. The provisioning steps may take several minutes to complete.
6361

6462
```console
6563
zowe zos-uss issue ssh "zospt run cics_55_nodejs --name my_cics_region"
@@ -71,14 +69,14 @@ zospt build $ZOSPTIMAGE -t cics_55_nodejs
7169
zowe zos-uss issue ssh "zospt inspect my_cics_region"
7270
```
7371

74-
The output will include values for the CICS region application ID, and the z/OS directory within which your CICS bundles can be uploaded. For example:
72+
The output is in JSON format and includes values for the CICS region application ID, and the z/OS directory within which your CICS bundles can be uploaded. For example:
7573

7674
```json
7775
"DFH_REGION_APPLID": "CICPY000",
7876
"DFH_REGION_ZFS_DIRECTORY": "/u/cicprov/mnt/CICPY000",
7977
```
8078

81-
4. Update your Zowe cics-deploy profile with the CICS region application ID and z/OS directory. For example:
79+
4. Update your Zowe cics-deploy profile options `--scope` to be the value from DFH_REGION_APPLID and `--bundle-directory` to be a bundles subdirectory of DFH_REGION_ZFS_DIRECTORY. For example:
8280

8381
```console
8482
zowe profiles update cics-deploy cics --scope CICPY000 --bundle-directory /u/cicprov/mnt/CICPY000/bundles
@@ -92,15 +90,15 @@ zospt build $ZOSPTIMAGE -t cics_55_nodejs
9290

9391
### Stop your CICS region
9492

95-
The CICS region can be stopped if you are not going to be using it for a while using command:
93+
The CICS region and the applications running in it can be stopped if you are not going to be using it for a while by using command:
9694

9795
```console
9896
zowe zos-uss issue ssh "zospt stop my_cics_region"
9997
```
10098

10199
### Start your CICS region
102100

103-
The CICS region can be started if it was previous stopped, or the z/OS system was restarted using command:
101+
The CICS region can be started after it was previously stopped, or the z/OS system was restarted, by using command:
104102

105103
```console
106104
zowe zos-uss issue ssh "zospt start my_cics_region"

0 commit comments

Comments
 (0)