IBM Z® Open Editor
Docs
News and Blogs
IBM Downloads
VS Code Marketplace
GitHub
Docs
News and Blogs
IBM Downloads
VS Code Marketplace
GitHub
  • Overview

    • Introduction
    • Updates and user feedback
  • Getting Started

    • Getting started with IBM Z Open Editor
    • Setting up integrations to interact with z/OS
    • Getting started with Zowe 3.0
  • Configuration

    • Setting preferences
    • Configuring your applications with ZAPP files
    • Setting property groups
    • Setting compiler options
    • Setting file associations
    • Setting language-specific tab stops and rulers
    • Enabling and disabling problems in IBM Z Open Editor
    • Enabling and disabling unreachable COBOL code warnings
    • Customizing the Outline view
    • Setting language-specific maximum line length
    • EBCDIC code pages and mappings files
    • Experimental: Formatting COBOL source code
  • Tutorials

    • Tutorial overview
    • Exploring the user interface
    • Exploring the sample files
    • COBOL editing tutorial
    • COBOL, PL/I Preprocessor tutorial
    • HLASM editing tutorial
    • REXX editing tutorial
    • Managing z/OS resources with IBM RSE API Plug-in for Zowe CLI tutorial
    • Submitting JCL to compile, link, and run jobs tutorial
  • Editing program files

    • Language References
    • Making COBOL and PL/I code changes
    • Making High Level Assembler code changes
    • Making REXX code changes
    • Making JCL code changes
    • Using and managing code snippets
    • Using the integrated Git
    • Searching for COBOL, PL/I, HLASM, and REXX components
  • Interacting with z/OS using Zowe

    • Interacting with z/OS
    • Creating a configuration profile in Zowe Explorer v3.0.0
    • Migrating your old Zowe yaml profiles for Zowe v3.0
    • Supported methods of authentication for z/OS using Zowe
    • Sharing team configuration files
    • Connecting to z/OS with Zowe Explorer walk through
    • Using the Zowe Explorer views
    • Using Zowe profiles in Z Open Editor
    • Connecting to z/OS using Zowe CLI walk through
    • Using command line to interact with z/OS
    • Interact with RSE Common Properties
  • Advanced Capabilities

    • Overview
    • Activating advanced capabilities
    • Launching a 3270 emulator from Zowe Explorer
    • z/OS Resources Table
    • Data Elements View
    • Program Control Flow Browser
    • Data Flow Browser
    • Preprocessor support
    • Custom Macros for HLASM
    • Language Detection
    • Linting with IBM ZCodeScan
    • User build with IBM Dependency Based Build (DBB)
    • Agent Mode
    • Line Hex Editor
  • Cloud-based Editing

    • Overview to using Cloud and Browser-based platforms
    • Try Z Open Editor in the Red Hat Developer Sandbox
    • Configuring Red Hat OpenShift Dev Spaces
    • Managing Developer Workspaces
    • Managing secrets
    • Create and use custom images
    • Migrating from IBM Wazi for Dev Spaces
    • Using Z Open Editor on GitHub Codespaces
    • Using Z® Open Editor with Dev Containers
  • Troubleshooting

    • Known issues and limitations
    • Troubleshooting using log files
    • Troubleshooting for User Build
    • Uninstalling CLI plugins and VS Code extensions
  • Reference

    • IBM RSE API Plug-in for Zowe CLI commands
    • IBM RSE API Plug-in for Zowe CLI as nodejs SDK package
    • IBM RSE API Plug-in for Zowe CLI as nodejs SDK reference
    • Example Zowe configuation setups
    • IBM Z Open Editor MCP Tools
    • Accessibility and Keyboard Shortcuts
    • settings.json properties
    • Message ID Reference
    • Other Visual Studio Code extensions
  • Legal information

    • Notices
    • Trademarks
    • Privacy policy considerations

Interact with RSE Common Properties

The Common Properties service is an optional feature available in IBM z/OS Explorer and must be configured and enabled in the host configuration file (rse.env).

To enable the Common Properties service, a system programmer must set the RSE_COMMON_PROPERTIES variable in the rse.env file. For example, RSE_COMMON_PROPERTIES=/usr/shared/common.properties.

Common Properties provides services for users to store JSON objects in different namespaces. The namespace can be globally accessible by all users or only accessible by the creator of the namespace. Namespace is implemented internally as a JSON document. You can interact with the Common Properties service by using commands that are provided by the IBM® RSE API plug-in for Zowe™ CLI (RSE CLI plug-in) in the Terminal window.

Using RSE CLI plug-in commands

RSE API Plug-in for Zowe CLI allows users to store JSON configuration or any key-value properties in a namespace that can be shared globally with all users. The namespace can also be created as nonsharable and only accessible by the creator.

Here is a use case for storing and retrieving server configuration properties by using the RSE Common Properties service. First, create a global namespace to be shared for all users. If you need to create a private namespace without sharing, you need to include the --private option in the commands.

% zowe rse common-properties create ns1
Namespace created successfully.

Next, save the test server configuration with hostname and port number as one JSON object at the path of /test-server in the namespace.

$ zowe rse common-properties set ns1 /test-server '{"hostname" : "www.test.com", "port" : 1234}' --type json
Property set successfully.

You can also save server configuration properties individually. The supported types of the property value are simple string, JSON string, number, and boolean.

To save the production server configuration properties, run the following command:

$ zowe rse common-properties set ns1 /prod-server/hostname "www.prod.com" 
Property set successfully.
$ zowe rse common-properties set ns1 /prod-server/port 443 --type number
Property set successfully.

When setting a property in the namespace, the namespace will be created if it doesn't exist yet. If the property already exists, its value will be overwritten.

To view the namespace content, run the following command:

$ zowe rse common-properties view ns1
{
  "test-server": {
    "hostname": "www.test.com",
    "port": 1234
  },
  "prod-server": {
    "hostname": "www.prod.com",
    "port": 443
  }
}

To view the production server configuration properties, run the following command:

% zowe rse common-properties view ns1 --path /prod-server
{
  "hostname": "www.prod.com",
  "port": 443
}

To view the production server hostname value, run the following command:

% zowe rse common-properties view ns1 --path /prod-server/hostname
www.prod.com

To delete a property from the namespace, run the following command:

% zowe rse common-properties delete ns1 --path /prod-server
Property deleted successfully.

There are other commands to list, copy, rename, and delete namespace. You can check common-properties command help for a complete list of common-properties commands.

% zowe rse common-properties --help
Last Updated: 4/8/24, 5:00 AM
Contributors: Patrick Tiu, phaumer, Hestia Zhang
Prev
Using command line to interact with z/OS