/ ---------------------------------------------------------------------- / HEADER BLOCK DEFINITION / ---------------------------------------------------------------------- *BEGIN_HEADER / ------------------------------------------- 10 CHARACTERS DEVICE NAME *NAME SAP_N_PDF / -------------------------------- 45 CHARACTERS PLOTTING PANEL COMMENT *COM Fuer SAP *TYP PRINTER *END_HEADER / ---------------------------------------------------------------------- / PARAMETERS BLOCK DEFINITION / ---------------------------------------------------------------------- *BEGIN_PARAM / --------------PLOTTING KEYWORDS (REFER TO CATPUB REFERENCE MANUAL) *EXPORT POSTSCRIPT *CLR B&W *END_PARAM / ---------------------------------------------------------------------- / EXECUTION BLOCK DEFINITION / ---------------------------------------------------------------------- *BEGIN_EXEC if [ -s $CATOUT ] then cat $HOME/CATPLOT.out | grep "MODEL :" | cut -c27-37 > /tmp/xxplot cat /tmp/xxplot | read PNAME x1 rm /tmp/xxplot if [ -z "$PNAME" ] then PNAME=$PPID fi mv $CATOUT /home/xx/yy/sap_pdf/$PNAME.ps echo "File: $PNAME.ps ist fuer SAP bereit" else echo " the file $CATOUT doesn't exist , check your traces" fi *END_EXEC / ---------------------------------------------------------------------- / RUN-TIME BLOCK DEFINITION / ---------------------------------------------------------------------- *BEGIN_RTIME CATOUT=`date +"%M%S"` CATOUT=\/tmp/LOCALPLOT$CATOUT.ps export CATOUT *END_RTIME