Skip to content

Instantly share code, notes, and snippets.

@mainframed
Created February 16, 2019 01:54
Show Gist options
  • Save mainframed/69da79bb9c1aa004699d157df3649f42 to your computer and use it in GitHub Desktop.
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
#!/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