One way to get Precisely Connect CDC for z/OS is to sftp the image directly from the Precisely AMI into the z/OS system where it will be installed. Doing so, eliminates the need for an intermediate system and also validates that the required communications between the z/OS system and the AMI is working. To use this method, your z/OS system must be enabled for SSH using the Setting up the sshd daemon instructions from IBM. You will also need to make sure the SQDATA high level qualifier exists and your z/OS ID has ALTER privilege to use it.
- Prepare to SFTP copy the Distribution Files
- Login to your z/OS USS shell and set up ssh for your user
UID> mkdir -p .ssh; chmod 700; cd .ssh UID> ssh-keygen -t rsa UID> cat id_rsa.pub UID> touch ami-ec2-user.pem
- Copy and paste the contents of the ec2-user pem file created during launch of the AMI into ami-ec2-user.pem just created.
- Login to ec2-user in your AMI and setup ssh contents.
ec2-user> mkdir -p .ssh; chmod 700; cd .ssh ec2-user> touch authorized_keys; chmod 600 authorized_keys
- Copy and paste the contents of your z/OS user id_rsa.pub into authorized_keys.
- Login to your z/OS USS shell and set up ssh for your user
- SFTP copy the Distribution Files to z/OS
- Login to your z/OS USS shell and sftp copy over the zipped distribution files and unpack them.
UID> mkdir -p software; cd software UID> sftp -i ~/.ssh/ami-ec2-user.pem ec2-user@<ami public name or IP> sftp> cd /opt/precisely/di/packages sftp> get sqdata-zos-4.1.53.zip sftp> quit UID> unzip sqdata-zos-4.1.53.zip UID> ls -l sqdata-zos-4.1.53
- Copy the distribution files into z/OS datasets.
UID > cd sqdata-zos-4.1.53 UID > find SQDATA.ZOS.V40152.*.TERSE -exec cp -P "recfm=FB,lrecl=1024,blksize=27648,space=(CYL,(50,10),RLSE)" {} "//'{}'" \;
- Validate you have the zOS datasets using ISPF.
- Login to your z/OS USS shell and sftp copy over the zipped distribution files and unpack them.