Hi all,
I'm writing a cobol program that calls a .ksh script
with 2 parameters. In my script it will look something
like this:
TMPDIR1="/DEVDIR/edi"
TMPDIR2="/DEVDIR/work"
WORKFILE="EDIFILE.txt"
TEMPFILE1="REJECT.TXT"
cd $TMPDIR1
parm2=$2 EXPORT parm2
IF $1=1; Then
cd $TMPDIR1
if [ -f $TMPDIR1/$TMPFILE1]; then
cp ${TMPDIR1}/${TMPFILE1} ${TMPDIR2}/`date +%y%m%d%H%M%S`${WORKFILE}
else
parm2=2
fi
fi
What I'm trying to do is to test if the file is present, if not then change parameter 2 value to 2 so that my cobol program can process the returned value. I don't know if this
is the correct way of doing it.
I'll appreciate any help on this!!!
jmanj
I'm writing a cobol program that calls a .ksh script
with 2 parameters. In my script it will look something
like this:
TMPDIR1="/DEVDIR/edi"
TMPDIR2="/DEVDIR/work"
WORKFILE="EDIFILE.txt"
TEMPFILE1="REJECT.TXT"
cd $TMPDIR1
parm2=$2 EXPORT parm2
IF $1=1; Then
cd $TMPDIR1
if [ -f $TMPDIR1/$TMPFILE1]; then
cp ${TMPDIR1}/${TMPFILE1} ${TMPDIR2}/`date +%y%m%d%H%M%S`${WORKFILE}
else
parm2=2
fi
fi
What I'm trying to do is to test if the file is present, if not then change parameter 2 value to 2 so that my cobol program can process the returned value. I don't know if this
is the correct way of doing it.
I'll appreciate any help on this!!!
jmanj