Code Monkey home page Code Monkey logo

zutil's Introduction

zutil

Overview

Useful z/OS utilities.

db2bind.js

Overview

Utility to perform DB2 bind in USS.

Dependencies

Command line arguments

-h,              --help                   print this help
-s HOSTNAME,     --hostname=HOSTNAME      subsystem hostname. If not specified
                                          then 'localhost' will be used.
-p PORT,         --port=PORT              subsystem port
-l LOCATION,     --location=LOCATION      subsystem location
-u USERNAME,     --username=USERNAME      DB2 username. If not specified then
                                          current user account name will be used.
-a PASSWORD,     --password=PASSWORD      DB2 password
-i INPUT,        --input-file=INPUT       input file containing DSN commands.
                                          If not specified then DSN commands
                                          will be read from standard input.
-d DBRMLIBS,     --dbrmlib=DBRMLIBS       DBRM library data sets separated
                                          by comma.
-r OPTION=VALUE, --replace=OPTION=VALUE   value of DSN command option to be replaced.

Examples

Example:

$ JS='java -cp db2jcc.jar:db2jcc_license_cisuz.jar:rhino.jar org.mozilla.javascript.tools.shell.Main'
$ $JS db2bind.js -p'DB2 port' -l'DB2 location' -a'DB2 password' -i'DSN commands file' -d'DBRMLIB'

sql.js

Overview

SQL JDBC command line client for DB2 for z/OS. Supports data exporting in CSV format.

Dependencies

Command line arguments

-h,          --help                     print this help and exit.
-s HOSTNAME, --hostname=HOSTNAME        subsystem hostname. If not specified
                                        then 'localhost' will be used.
-p PORT,     --port=PORT                subsystem port.
-l LOCATION, --location=LOCATION        subsystem location.
-u USERNAME, --username=USERNAME        DB2 username. If not specified then
                                        current user account name will be used.
-a PASSWORD, --password=PASSWORD        DB2 password.
-i INPUT,    --input-file=INPUT         input file containing SQL statements.
                                        If not specified then SQL statements
                                        would be read from the standard input.
-v,          --verbose                  enable verbose mode.
-t,          --print-table-name         print table name.
-c,          --print-table-columns      print table columns.
-x,          --format-as-csv            use CSV format.
-d,          --csv-delimiter=DELIMITER  CSV delimiter. If not specified then "," will be used.

Examples

Example:

$ JS='java -cp db2jcc.jar:db2jcc_license_cisuz.jar:rhino.jar org.mozilla.javascript.tools.shell.Main'
$ echo "SELECT 'TEST' FROM SYSIBM.SYSDUMMY1" | $JS sql.js -p'DB2 port' -l'DB2 location' -a'DB2 password' -v -t -c

db2prep.sh

Overview

Utility to call DB2 preprocessor.

Command line arguments

-h                  print this help and exit.
-l  DB2-LOADLIB     DB2 LOADLIB containing DSNHPC.
-i  INPUT-FILE      input source file.
-o  OUTPUT-FILE     output source file.
-d  OUTPUT-DBRMLIB  DBRMLIB.
-s  OUTPUT-LISTING  output listing file.
-p  OPTIONS         preprocessor options.

Dependencies

Examples

Example:

$ db2prep.sh -i"input source file" -o"output source file" -d"output DBRMLIB data set" -p"preprocessor options" -l"DB2 STEPLIB" -s"output listing file"

dsect.sh

Overview

Utility to convert HLASM DSECT structures to C/C++ headers.

Command line arguments

-h                             print this help and exit.
-i  INPUT-FILE                 input assembler file.
-o  OUTPUT-FILE                output header file.
-l  OUTPUT-LISTING             output listing file.
-m  MACLIB                     assembly MACLIB.
-d  DSECT-CONVERSION-OPTIONS   DSECT conversion utility options.

Dependencies

Examples

Example:

$ dsect.sh -i"input assembler file" -o"output header file" -l"output listing file" -m"assembler MACLIB"

asmlist.awk

Overview

Utility to generate makefile dependencies from HLASM listing.

Examples

Example:

cat "input assembler listing file" | awk -f"asmlist.awk"

zutil's People

Contributors

vadimshchukin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.