ECHO OFF
: CHECKD allows checking of a specific disk datasets
:   using check data stored in the same directory
IF "%1"=="" goto Help
IF %1==? goto Help
ECHO Checking file %1 against compressed CHKfileC report file ))A.LOG
CHKFILEC %1 ))TEMP.LOG
IF ERRORLEVEL 4 GOTO BadFIL
:  To also see addtions and deletions of files, remove the /C parameter.
CFCOMPC ))A.LOG ))TEMP.LOG/P/C
DEL ))TEMP.LOG
GOTO End
:Help
ECHO 浜様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
ECHO � CheckD will check the file or files specified against check data        �
ECHO � recorded on ))A.LOG in the current directory and report changes.        �
ECHO 把陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳�
ECHO � Syntax  CHECKD filename                                                 �
ECHO �     filename is the file or files to be checked.                        �
ECHO �              filename may include wildcard characters (? and *).        �
ECHO �     a: specifies the drive which contains the CHECK diskette for the    �
ECHO �        current drive.                                                   �
ECHO 藩様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
GOTO End
:BadFil
ECHO File name: %1 was not found in the current directory
GOTO End
:End
