IBM Z and LinuxONE - IBM Z

IBM Z

The enterprise platform for mission-critical applications brings next-level data privacy, security, and resiliency to your hybrid multicloud.

 View Only

Sharing z/OS data in the cloud using base z/OS utility GDKUTIL

By John Hogan posted Mon July 17, 2023 04:20 PM

  

How to share data between z/OS and the cloud using z/OS DFSMS utility GDKUTIL.

There’s a new utility that is provided in your base z/OS operating system called GDKUTIL. GDKUTIL was introduced in z/OS 2.5 by OA62318 and is a DFSMS utility like IEBGENER that can be used to share data between z/OS and the cloud without any additional hardware or software. This game changing new utility can be used to download or upload sequential data to the cloud and is documented in the DFSMS-dfp utilities manual.  

https://www-40.ibm.com/servers/resourcelink/svc00100.nsf/pages/zOSV2R5sc236864/$file/idau100_v2r5.pdf

Here’s how GDKUTIL works: 

The first step is to configure your cloud provider. This is the most complex part of sharing data between z/OS and cloud, and it can only be done by z/OS personnel with valid SAF authority. It involves defining your cloud provider in USS configuration files, creating an encryption key to store your cloud credentials safely, creating and using a cloud API key which is done on your cloud providers system and imported over to z/OS USS file, and ensuring that the cloud connection point is known to be valid with the correct credentials.

Once you’ve configured a cloud provider, you’re ready to share data with your cloud. In this example I have a physical sequential data set which happens to be a  sequential copy of a VSAM  data set which I created with IDCAMS REPRO. This data set is contains application backup meta data and was created by IZBR which is an IBM z/OS resiliency product. The IZBR data set contains information that is essential to recovering applications on my z/OS image so copying this data to the cloud gives me enhanced ability to recover from a cyber-attack. The cloud is a logical choice to store my copies of this type of data as it can provide immutable copies.   

In this example I’m uploading my sequential file to an S3 cloud that I’ve named S3CLOUD.  I use the CONVERT parameter to preserve the variable length records. This converts from the z/OS VB format to the standard open systems format where a new line character is inserted at the end of each record. The name of my IZBR VSAM unload is HLQXX.VSAM.UNLOAD and it will placed in a bucket on S3CLOUD called johnh-21st-izbr-bucket with an object name HLQXX_VSAM_UNLOAD_D05022023_S01.

Once this job is run I now have a copy of my z/OS data set out on my S3CLOUD which will help me to restore my system from any location in the world without any additional z/OS software.  

3 comments
79 views

Permalink

Comments

Fri December 13, 2024 04:03 AM

In my experience GDKUTIL is having a lot of difficulties when the data set contains non-readable characters.

So sequential data set support is not so transparant as it looks here.

DFSMSdss dumps are also sequential data sets but are not supported by GDKUTIL.

Apar OA66450 does provide direct support for writing dumps to the cloud.

It's normally available within a couple of weeks (z/OS 3.1).

Wed August 02, 2023 11:13 AM

Hello Caglar,

That's a great use case for GDKUTIL. My understanding of DB2 image copies is that by default the image copy is a sequential data set and is identified by the SYSCOPY DD statement in the DB2 COPY utility.  Since this data set is sequential a copy of it can then be sent to the cloud.

The other type of DB2 imagecopy is a Flashcopy which stores the image copy in a VSAM data set. This VSAM data could then be unloaded to a sequential data set using IDCAMS REPRO and that sequential data set sent to the cloud by GDKUTIL.

Yes with an additional step or two a DB2 image copy can be sent to the cloud for safe keeping using GDKUTIL.

Thu July 27, 2023 05:54 AM

Hi,

Thanks so much for this topic. I am curious about the new GDKUTIL utility. May I ask if it's possible to send DB2 Imagecopies to cloud storage with this new utility ?

As far as I read and investigated from docs that, only z/OS sequential datasets and UNIX files can be sent and restored from cloud currently, but I wanted to ask for confirmation. Or is there another way to use the utility for DB2 Imagecopies ?

Thanks in advance,

Best regards,

Caglar.