CreateProgram CreateProgram
CreateProgram Certified

yaml
type: "io.kestra.plugin.cobol.CreateProgram"
yaml
id: create_cobol
namespace: company.team

tasks:
  - id: download_source
    type: io.kestra.plugin.core.http.Download
    uri: https://repo.mybank.com/cobol/CALCINT.cbl

  - id: compile
    type: io.kestra.plugin.cobol.CreateProgram
    host: "{{ secret('IBM_HOST') }}"
    user: "{{ secret('IBM_USER') }}"
    password: "{{ secret('IBM_PASSWORD') }}"
    library: FINLIB
    program: CALCINT
    sourceUri: "{{ outputs.download_source.uri }}"

yaml
id: create_cobol_inline
namespace: company.team

tasks:
  - id: compile
    type: io.kestra.plugin.cobol.CreateProgram
    host: "{{ secret('IBM_HOST') }}"
    user: "{{ secret('IBM_USER') }}"
    password: "{{ secret('IBM_PASSWORD') }}"
    library: DEVLIB
    program: HELLO
    sourceInline: |
           IDENTIFICATION DIVISION.
           PROGRAM-ID. HELLO.
           PROCEDURE DIVISION.
               DISPLAY 'HELLO FROM KESTRA'.
               STOP RUN.
Properties
Definitions
idstring
severityinteger
textstring