A file to be copied from MVS Mainframe to Unix server using Connect Direct. Below is the sample script which works fine. Now before copying the file is there a way to verify the file existence in MVS ?
submit FILE_COPY process
SNODE=${SENDING_NODE} SNODEID=(${USERNAME},${PASSWORD})
&INDSN="$INPUT_FILE"
&OUTDSN="$OUTPUT_DIR$OUTPUT_FILE"
COPYSTEP COPY FROM (FILE="&INDSN")
TO
(FILE="&OUTDSN"
UNIT=SYSDA
SYSOPTS=":datatype=text:"
DISP=RPL
SPACE=(TRK,(100,50),RLSE)
DCB=(RECFM=FBA,LRECL=216,BLKSIZE=0)
pnode)
PEND;
EOF