Skip to content

Instantly share code, notes, and snippets.

View lbdyck's full-sized avatar

Lionel B. Dyck lbdyck

View GitHub Profile
@lbdyck
lbdyck / tsocmds
Last active April 5, 2024 15:40
Show how to use a STEPLIB for the USS tsocmd
#!/bin/sh
# this short shell script will allow the shell user to invoke
# any TSO command that resides in a load library that is not
# in the STEPLIB or Link List.
#
# Change the hlq.load.library to your load library and enjoy
#
# Copy into a directory in your PATH to use as a shell command
# and issue chmod +x xxxxx (where xxxxx is the name you gave to
@lbdyck
lbdyck / update_anycase.rex
Created May 25, 2023 14:47
Enable Any Case Search with SRCHFOR when using DSLIST
/* ---------------------------------------------------- *
| Change the zus4anyc (SRCHFOR default) to selected (/) |
| if it is null with option Set. |
| Or option Reset restore it. |
| |
| Use this before and after thus: |
| |
| Address ISPExec |
| call check_anyc 'SET' |
| "LMDINIT LISTID(LISTID) LEVEL("hlq"."file_pfx"*)" |
@lbdyck
lbdyck / CommaAdd
Last active December 9, 2022 14:50
REXX subroutine to Convert a number to a string with commas (e.g. 1000000 becomes 1,000,000)
/* ----------------- REXX ------------------------- *
| Take a number and display it with comma's in it. |
| |
| e.g. 1000 becomes 1,000 |
| |
| usage: comma_num = addcomma(number) |
| |
| supports numbers up to 34 digits long |
| |
| Copied from Doug Nadel |