GithubHelp home page GithubHelp logo

hello_world's Introduction

This is a simple hello world program for testing git on z/OS. It's meant to be used in conjunction with Using git for z/OS with GitHub on the Rocket Community Forum.

Here's a suggested scenario demonstrating how git can work with MVS datasets:

  • Clone this repository. If you want to push changes, fork it instead and then clone the fork.
  • cd into the repo and type make. This will compile and link the code and test the resulting executable.
  • Run ./allocate.sh. This will create three PDSes (named DEMO.{H,C,TXT}) on MVS that will contain members corresponding to the source files in the Unix file system.
  • Run ./to_pds.sh to populate the PDSes. This would be run any time the git repo is refreshed (via git pull).
  • Log into TSO, edit one of the source files, and save it.
  • Back at the Unix command line, run ./from_pds.sh to copy the files back from MVS to Unix. This will also run a git status command, showing the changes.
  • When all done, run ./cleanup.sh to delete the MVS datasets.

Also present are batch job equivalents of the to_/from_pds.sh scripts.

hello_world's People

Contributors

zorts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hello_world's Issues

git-sh-setup: line 342

When i issue git push or git pull commands, i get

git pull origin mybranch /usr/local/libexec/git-core/git-sh-setup: line 342: cd: ÅÑÈ: EDC5129I No such file or directory.
line 342 in the script shows:
BROWSE /Z22R01/usr/local/libexec/git-core/git-s Line 0000000342 Col
.test -n "$GIT_DIR" && GIT_DIR=$(cd "$GIT_DIR" && pwd) || {
..echo >&2 "Unable to determine absolute path of git directory"

is there any issue with $GIT_DIR ?

lrecl invalid for demo.txt

file allocate_sh should be changed for the allocation of demo.txt, and assign an lrecl > 259 (for instance 286), otherwise script to_pds.sh will get an error
SPARKID:/u/sparkid/hello_world/hello_world: >./to_pds.sh
cp: FSUM6260 write error on file "//'SPARKID.DEMO.TXT(README)'": EDC5003I Truncation of a record occurred during an I/O operation.

#!/bin/env bash

tso 'alloc da(demo.h) recfm(f b) lrecl(80) blksize(0) dir(1) track space(2 2)'
tso 'alloc da(demo.c) recfm(f b) lrecl(80) blksize(0) dir(1) track space(2 2)'
tso 'alloc da(demo.txt) recfm(v b) lrecl(259) blksize(0) dir(1) track space(2 2)'

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.