#!/bin/sh ######################################## # Runs FTP Get of a File List ######################################## $SMSBIN/smsinit $LOADL_STEP_ID set -xa export PS4='$SECONDS + ' date # ################################### # SET SHELL PROCESSING VARIABLES # ################################### # # obtain unique process id (pid) and make temp directories # export pid=$$ export DATA=/tmpnwprd/${job}.${pid} mkdir $DATA cd $DATA # Define Temporary Directory for writing of HTAR file export TMPDIR=$DATA #################################### # File To Log Msgs #################################### export jlogfile=/com/logs/jlogfile #################################### # Determine Job Output Name on System #################################### export outid="LL$job" export jobid="${outid}.o${pid}" export pgmout="OUTPUT.${pid}" export SENDCOM=YES export SENDSMS=YES export cycle=t${cyc}z export FIXFILE=${RUN}${ftp_type} ################################### # Set up the UTILITIES ################################### export utilities=/nwprod/util/ush export utilscript=/nwprod/util/ush export USHrhist=/nw${envir}/ush export HOMEutil=/nwprod/util export FIXutil=$HOMEutil/fix export USHutil=$HOMEutil/ush # Run setup to initialize working directory and utility scripts $utilscript/setup.sh # Run setpdy and initialize PDY variables export PDY=20120801 $utilscript/setpdy.sh . PDY ############################## # Define COM Directories ############################## export LOCAL_DIR=$DATA env ######################################################## # Some variables defined in /nwprod/ush/rhist_savedecode.sh ######################################################## # Execute the script. /nw${envir}/scripts/exdecbkup.sh.sms ######################################################## if [ $? -ne 0 ]; then $SMSBIN/smsabort else cd /tmpnwprd rm -rf $DATA date $SMSBIN/smscomplete fi