Shell Script Programming in z/OS UNIX
- Recommended Duration:
- 3 Days
- Version
- z/OS UNIX
- Benefits
- Students who complete this course will be able to use many of the advanced capabilities of UNIX System Services running under z/OS. This is an intense, practical encounter with the UNIX world as implemented on the z/OS platform.
- Audience
- Programmers experienced with working in an OS/390 orĀ z/OS environment who will be designing and coding applications that are to be run using z/OS UNIX, especially Web-based applications.
- Prerequisites
- Fundamental knowledge of z/OS UNIX system services, such as might be obtained from attending Introduction to z/OS UNIX .
- Major Topics
-
- Introduction to scripting concepts
- Running UNIX applications: shells, processes, and such
- Regular expressions
- grep, egrep, fgrep commands
- The shell line editor: ed
- The find command
- find and grep together
- Introduction to shell scripts
- read, clear, getconf commands
- Logic in scripts: if, test, pathchk
- Looping in scripts: [[ ]], until, while, nested loops, break, continue
- Variable manipulations: let, expr, typeset, integer
- Parameters in shell scripts: for; special parameters; array variables
- More script logic: select, case, getopts
- Functions (in scripts and stand alone)
- Shell flags and options; set and unset
- z/OS shell processing; sh, exec, whence, type, eval, xargs
- sed: the Stream Editor
- Using sed scripts to convert plain text to HTML
- Using sed scripts to create HTML files from flat data files
- Sorts: tsort, sort
- File compares and more
- Running shell scripts in batch: BPXBATCH, BPXBATSL
- The OSHELL command
- Exercises
- There are 19 hands-on exercises, as well as a number of structured Computer Experiments.