Giter VIP home page Giter VIP logo

jcl2sh's Introduction

Synopsis

This project enables z/OS developers to generate a shell script from a JCL file

Code Example

Here is an example of jcl2sh being used to convert PDS member IBMUSER.TEST.JCL(UPDATE) to update.sh

jcl2sh <//'IBMUSER.TEST.JCL(UPDATE) >./update.sh

Motivation

I am not a big fan of JCL, even though I have worked on z/OS forever. I also try to use Unix System Services as much as possible to develop software. jcl2sh generates a 'sh' program that uses the mvscmd/mvscmdauth services for invoking MVS executables

Installation

To install:

  • copy the files to z/OS Unix System Services directory. For this example, we assume it is /u/ibmuser/JCL2SH
  • cd to the directory (/u/ibmuser/JCL2SH)
  • edit setenv.sh to point to the various MVS programs that will be tested, and to specify where your code was copied to.
  • edit build.sh if required to point to your C compiler and assembler, then run the script to build the program.
  • run build.sh: build.sh
  • The assemble, compile and link should be 'clean' and will produce a file called 'jcl2sh'

API Reference

To get started reading the code, begin in jcl2sh.c, which has 'main' and drives all the functions in the other files.

Tests

To run the tests:

  • cd to the directory (e.g. /u/ibmuser/JCL2SH)
  • runTests.sh

This will write results to the screen as it runs the testcases in the tests sub-directory. All tests should run clean

Work to be done

The scanning/parsing development is well underway. Writing the generator(s) is not done yet.

Contributors

Mike Fulton (IBM Canada) is the sole contributor at this point. I am happy to change this :)

The code still needs work. Error messages can (always) be improved and there are missing features people may need. If anyone wants to contribute, please reach out to [email protected] (Mike Fulton)

License

The code uses the Eclipse Public License 1.0 ( https://opensource.org/licenses/eclipse-1.0.php )

jcl2sh's People

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.