Last active
July 13, 2018 19:56
-
-
Save mainframed/82a9d6b984e1e73d52b59230a1e82736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This output goes in to <whatever>.VTAMLST(A0TCP) | |
echo "[+] Creating 00 through 99 LUs for" $1 | |
STRLENGTH=`echo -n $1 | wc -m` | |
if [ "$STRLENGTH" -ne "6" ] ; then | |
echo "[!] The name you entered ($1) not long enough." | |
echo "[!] Must be 6 characters long" | |
exit | |
fi | |
#top of the config file, only needs to be once at the top | |
echo "TCP VBUILD TYPE=APPL" | |
# To refersh, from a console issue: VARY ACT,UPDATE=ALL | |
# This is the format! That X is important, means 'line continues' | |
# SMOGLU01 APPL AUTH=NVPACE, X | |
# EAS=1, X | |
# PARSESS=NO, X | |
# MODETAB=ISTINCLM, X | |
# SESSLIM=YES | |
# See: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.istrdr0/appsess.htm | |
# for all options | |
for i in 0{1..9} {10..99} | |
do | |
echo "$1$i APPL AUTH=NVPACE, X" | |
echo " EAS=1, X" | |
echo " PARSESS=NO, X" | |
echo " MODETAB=ISTINCLM, X" | |
echo " SESSLIM=YES" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment