This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Runtime options require by Rocket open-source: | |
| export _CEE_RUNOPTS="FILETAG(AUTOCVT,AUTOTAG),POSIX(ON)" | |
| export _BPXK_AUTOCVT=ON | |
| export _TAG_REDIR_ERR=txt | |
| export _TAG_REDIR_IN=txt | |
| export _TAG_REDIR_OUT=txt | |
| export _BPX_SHAREAS=YES | |
| export _BPX_SPAWN_SCRIPT=YES | |
| export ROCKET_HOME=${rocket_home} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // swift-tools-version:4.0 | |
| import PackageDescription | |
| import Foundation | |
| guard let kituraRoot = ProcessInfo.processInfo.environment["KITURA_ROOT"] else { | |
| fatalError("KITURA_ROOT must be present") | |
| } | |
| let package = Package( | |
| name: "HelloKitura", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net/http" | |
| ) | |
| func HelloHandler(w http.ResponseWriter, r *http.Request) { | |
| fmt.Fprintf(w, "Hello, %s!", r.URL.Path[1:]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 000100 IDENTIFICATION DIVISION. | |
| 000200 PROGRAM-ID. HELLO | |
| 000300 PROCEDURE DIVISION. | |
| 000400 DISPLAY "HELLO, WORLD!" | |
| 000500 STOP RUN. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Command, flags } from "@oclif/command"; | |
| import * as logSymbols from "log-symbols"; | |
| import { readConfiguration, ITransferredFile } from "../config"; | |
| import { transferFiles } from "../files"; | |
| import { checkZowe } from "../zowe"; | |
| import { basename } from 'path'; | |
| export default class Upload extends Command { | |
| static description = "upload a single file to z/OS"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This program and the accompanying materials are made available under the terms of the | |
| * Eclipse Public License v2.0 which accompanies this distribution, and is available at | |
| * https://www.eclipse.org/legal/epl-v20.html | |
| * | |
| * SPDX-License-Identifier: EPL-2.0 | |
| * | |
| * Copyright Contributors to the Zowe Project. | |
| */ | |
| package com.ca.mfaas.gateway.zosmf; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pathlib import Path | |
| import re | |
| def main(): | |
| try: | |
| from BeautifulSoup import BeautifulSoup | |
| except ImportError: | |
| from bs4 import BeautifulSoup | |
| # ZosReasonCodes.html is a table in https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.4.0/com.ibm.zos.v2r4.bpxa800/errnojrs.htm | |
| html = Path("ZosReasonCodes.html").read_text() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ycXm19PUyEAAAAB4BAAAAAAEoAAAAAAIAAEAAAAAAHgAAAAUAAIAAAAAAIwAAAARAAMAAAAAAKAAAACIAAQAAAAAASgAAABIAAUAAAAAAXAAACIoAAYAAAAAI5gAAAEAAAcAAAAAMAAAAR2hAAgAAAADANwAAZpwAAAAAQAAAAAAAACMABEAAAAAAACTiYKplqaFYKKBlJeThUuilgAAAAAeBAnCwAwRAAAAATgIAAAAAAAAAAAAAAAAgAAAAABqkEAAAgAAAEoAAR2hAAAwAAABmnAAAwDcAAAiKAAAAXAAAABIAAABKAAAAEoAACOYAAEAAAABIAAAAAAAAAAAACAZJi8BUFJ/4+Lj2cHE1PNwAAABAAAaYAABUAAAAQQ4AAAAAAAAAADJxebX2cHjQAAAAEgBAAAAAAAABAAAABQAAgDFABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAB0AUfCIoAADJxebX2cTjQAAAABQBAAAAAAAiKAAAAAAAAUcAAAAACgEAAAMGZAAABZgGdAAABpgGjAABBDiBAAAHABgAAAAAAAAAaACQAAAAAAAAABIAqAAAAAAAAAWYALgAAAAAAAAGSAR4AAAAAAAAA5AFqAAAAAAAAAWwBcgAAAAAAAAD4AAAABAAAaKjhHoBGwEAARYEaAABBXgEjAAABzAEzAABBBgE7AAABygFDAABBDAFLAAAAAAFTAABBXgFbAABBDgFhAABBZwFjAABBiwFlAABB1wFnAABFhIFoAAASQgFpAABFhwFrAABD6AFwAABFhIFxAAAV0AFyAABFuEF0AABD6AF5AABFhIF6AAAR2gF7AABF1IF9AABD6AGCAABFhIGDAAAMWAGEAABGLkGGAABD6AGLAABD6AGNAABD6kGPAABD6AGRAABD9sGTAABD6AGVAABEEsGXAABD6AGZAABELkGbAABD6AGdAABEWMGfAABD6AGhAABEdQGjAABD6AGlAABEh4GnAABD6AGpAAB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ycXm19PUyEAAAAB4BAAAAAAEoAAAAAAIAAEAAAAAAHgAAAAUAAIAAAAAAIwAAAAMAAMAAAAAAJgAAACIAAQAAAAAASAAAABIAAUAAAAAAWgAACIoAAYAAAAAI5AAAAEAAAcAAAAAMAAAAR2hAAgAAAADANwAAZpwAAAAAQAAAAAAAACMAAwAAAAAAACTiYKmo5aRlYlLopYAHgQJwsAMEQAAAAE4CAAAAAAAAAAAAAAAAIAAAAAAapBAAAIAAABKAAEdoQAAMAAAAZpwAAMA3AAAIigAAAFoAAAASAAAASAAAABKAAAjkAABAAAAASAAAAAAAAAAAAAgGSR/AERBP9fTwdfF8PPxcAAAAQAAGmAAAVAAAAEEOAAAAAAAAAAAycXm19nB40AAAABIAQAAAAAAAAQAAAAUAAIAxQAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAdAFHwiKAAAycXm19nE40AAAAAUAQAAAAAAIigAAAAAAAFHAAAAAAoBAAADBmQAAAWYBnQAAAaYBowAAQQ4gQAABwAYAAAAAAAAAGgAkAAAAAAAAAASAKgAAAAAAAAFmAC4AAAAAAAABkgEeAAAAAAAAAOQBagAAAAAAAAFsAXIAAAAAAAAA+AAAAAQAAGio4R6ARsBAAEWBGgAAQV4BIwAAAcwBMwAAQQYBOwAAAcoBQwAAQQwBSwAAAAABUwAAQV4BWwAAQQ4BYQAAQWcBYwAAQYsBZQAAQdcBZwAARYSBaAAAEkIBaQAARYcBawAAQ+gBcAAARYSBcQAAFdABcgAARbhBdAAAQ+gBeQAARYSBegAAEdoBewAARdSBfQAAQ+gBggAARYSBgwAADFgBhAAARi5BhgAAQ+gBiwAAQ+gBjQAAQ+pBjwAAQ+gBkQAAQ/bBkwAAQ+gBlQAARBLBlwAAQ+gBmQAARC5BmwAAQ+gBnQAARFjBnwAAQ+gBoQAARHUBowAAQ+gBpQAARIeBpwAAQ+gBqQAARKOBqwAAQ+g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.zowe.commons.zos.security.service.PlatformSecurityService; | |
| import org.zowe.commons.zos.security.thread.PlatformThreadLevelSecurity; | |
| @RestController | |
| public class YourController { | |
| private final PlatformSecurityService platformSecurityService; | |
| private final PlatformThreadLevelSecurity platformThreadLevelSecurity; | |
| @GetMapping("/your/endpoint") | |
| public Map<String, String> yourMethod() { |