Creating Endevor package using local file using Endevor plugin for Zowe CLI
search cancel

Creating Endevor package using local file using Endevor plugin for Zowe CLI

book

Article ID: 143917

calendar_today

Updated On:

Products

Endevor Zowe

Issue/Introduction

How do I use the Endevor plugin for Zowe CLI to create an Endevor package from a local file?

Environment

Zowe CLI and Endevor plugin  

Resolution

 Validate the default Endevor profile is functional: 

1. Prepare the Local SCL File

Your local file (e.g., localfile.txt) can contain any valid SCL. Below is an example of a MOVE action:

File: localfile.txt

MOVE ELEMENT 'HARRY'
   FROM ENVIRONMENT 'XXX' SYSTEM 'XXX' SUBSYSTEM 'XXX'
   TYPE 'XXX' STAGE 1

2. Create the Package via Zowe CLI

Run the following command to create the package using the local file as input. This example assumes you are using your default Endevor profile:

zowe endevor create package ZOWEPKG1 --ff localfile.txt -d "test package" -t S -i ENDEVOR

Parameters used:

  • --ff localfile.txt: Specifies the local source file for the SCL.

  • -d "test package": Provides the required package description.

  • -t S: Defines the package type as Standard.

  • -i ENDEVOR: Specifies the Endevor Instance.

3. Execution Output

Upon success, the CLI will return a confirmation similar to this:

[INFO] Running on host: host:port instance: ENDEVOR
[INFO] Endevor reports written in endevor-report-2020-01-28-093910.txt
DEFINE of ZOWEPKG1 finished with 0

4. Verification

After the command finishes with a return code of 0, verify that the new package was created successfully in the Mainframe Endevor environment (via ISPF or Zowe CLI list command).

Additional Information

Use "zowe endevor create package --help" command to get more detailed option of creating Endevor package.

For Endevor Zowe CLI 6.5, by default, a standard package is created: 

zowe endevor create package DEMO -d "demo" --ff scl.txt -i ENDEVOR

To create a Emergency package, use option --ep:

zowe endevor create package DEMO -d "demo" --ff scl.txt -i ENDEVOR --vs false --ep

Link on How to create an Endevor Package