IBM Z® Open Editor
Docs
News and Blogs
IBM Downloads
VS Code Marketplace
GitHub
Docs
News and Blogs
IBM Downloads
VS Code Marketplace
GitHub
  • What's New

    • New Content and Blog Posts
    • IBM Z Open Editor Releases
  • Team Blog

    • COBOL and PL/I preprocessor support by IBM Z® Open Editor
    • Managing data sets, jobs, and UNIX files in Z Open Editor with the z/OS Resources Table
    • A Modern JCL (Job Control Language) Editor
    • Scaling up the audience with IBM Z Open Editor and Wazi Developer 1.2.0
    • A Modern REXX Editor
    • Everything you need to know about IBM RSE API Plug-in for Zowe CLI 1.2.0
    • IBM Z® Open Editor makes building COBOL, PL/I, and HLASM applications easier with User Build
    • IBM Wazi Developer for Red Hat CodeReady Workspaces: Set up an SSL Certificate in an OpenShift Container Platform
    • What's new with IBM RSE API Plug-in for Zowe CLI 1.1.0
    • Kubernetes-Native Integrated Z Developer Environment with IBM Wazi for Red Hat CodeReady Workspaces Development Client
    • IBM Z Open Editor: A modern IDE for IBM High Level Assembler
    • Interacting with z/OS using IBM RSE API Plug-in for Zowe CLI
    • Improve your z/OS enterprise developer productivity with IBM Z Open Editor‘s code snippets library
    • IBM Z® Open Editor in the cloud with Eclipse Che
    • Running IBM Z® Open Editor in the browser with Eclipse Theia
  • Other Resources

    • Learning Resources

IBM Z® Open Editor makes building COBOL, PL/I, and HLASM applications easier with User Build

by Kristina Mayo

There is a new exciting feature in the IBM Z Open Editor VS Code extension, it's called User Build. User Build allows you as a z/OS® developer who writes COBOL, PL/I, or HLASM to build your applications directly out of VS Code or CodeReady Workspaces.

This feature is created for you if you are an IBM® Dependency Based Build user and would like to try developing in VS Code. User Build enables you to:

  • Build applications without interrupting your workflow and going outside the IDE.
  • Quickly compile code changes without opening a pull request or sharing the code with others.

Architectural overview

As an overview, User Build builds a program by performing the following tasks automatically:

  • Uploads the application file to z/OS.
  • Uploads the application's copybooks and include files to z/OS.
  • Invokes the remote build script that you defined in User Build settings.
  • Downloads build log files locally for easier viewing.
User Build diagram

Notes:

  • User Build does not require Git to work.
  • User can specify a custom script to execute for User Build, though DBB with zAppBuild solution is recommended.

Prerequisites

Before using the user build feature, ensure that the following host and client requirements are met.

Host requirements:

  • IBM Dependency Based Build configured on z/OS
  • zAppBuild directory copied on z/OS and configured with data set references

Client requirements:

  • VS Code installed

  • Z Open Editor VS Code extension installed

  • Zowe™ CLI profiles created (to connect to z/OS)

    User Build utilizes open source Zowe technologies to communicate with z/OS. For that reason, you need to have Zowe CLI profiles to tell User Build how to connect to z/OS.

User build settings

Before running User Build, you need to configure it via settings to tell User Build where on z/OS to upload files and which build script to execute. The settings should be defined and store as JSON inside VS Code settings files.

User Build has 2 types of settings: workspace settings and user settings, though both can be placed inside workspace settings file for convenience. See user build docs for detailed descriptions of each setting.

The following example shows workspace and user settings are all stored inside zopeneditor-sample/.vscode/settings.json for convenience. User Build settings example

Running User Build

Once settings are filled out, right-click inside a file in the editor, select Run IBM User Build to execute remote script and see results directly in VS Code.

User Build menus inside VS Code

The user build log will be streamed in the Output panel inside VS Code. The build is successful when you see the message Build State: CLEAN in the output. The picture below shows successful zAppBuild output for a COBOL application and a log file.

User Build successful COBOL build

Trying out User Build

To get started with User Build, follow this hands-on tutorial to use IBM's sample code and the defined workspace settings in the repository.

For full documentation, refer to Setting up the user build.

Last Updated: 3/11/24, 6:24 PM
Contributors: KRISTINA MAYO, Min Huang, kmaselli, phaumer, Hestia Zhang
Prev
Everything you need to know about IBM RSE API Plug-in for Zowe CLI 1.2.0
Next
IBM Wazi Developer for Red Hat CodeReady Workspaces: Set up an SSL Certificate in an OpenShift Container Platform