Created
February 16, 2019 01:54
-
-
Save mainframed/69da79bb9c1aa004699d157df3649f42 to your computer and use it in GitHub Desktop.
bash script to upload then compile your hlasm with JCL. Could use EOF and tmp files but good enough for now
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 | |
echo "[+] Uploading and Compiling" | |
HLASM=`echo $1|awk -F. '{print $1}'` | |
JCL=$2 | |
HOST='SMOG' | |
echo "[+] HLASM File: $1 to $HLASM" | |
echo "[+] JCL File: $JCL" | |
echo "[+] Host: $HOST" | |
ftp -iv $HOST <<END_SCRIPT | |
passive | |
ascii | |
cd ASM.SOURCE | |
put $1 $HLASM | |
site file=jes | |
put $JCL | |
quit | |
END_SCRIPT | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment