Home |

CHKISAM - DOS

CHKISAM can be performed on a single file or a directory. Both of these are performed from the C:\> prompt. If on a network the drive letter where MC resides. (example f:\>)

CHKISAM

1. To CHKISAM all files:

    type cd \mc\mcadata
    press <ENTER>

    type chkisam
    press <ENTER>

    c:\mc\mcadata>chkisam

    (Display shows individual file. If this command is run without a file name, the display will repeat for each file name.)

    iccheck Revision 3.00 (Windows)
    Copyright (C) 1987-2000, Egan Systems, Inc. All rights reserved.
    c:\mc\mcadata\prtass processed on May-10-2002 12:27:42.14
    ICISAM Revision 5.09
    Delete is logical, Maximum file size is 2GB
    No Alternate Keys 64 byte Records 47 Records allocated
    Records available before the .XD EOF: 51
    Primary ------- Key: 47 Record: 47
    1 file/argument was processed - All are reliable.
    iccheck is finished

    icfixup Revision 3.00 (Windows)
    Copyright (C) 1987-2000, Egan Systems, Inc. All rights reserved.
    c:\mc\mcadata\prtass processed on May-10-2002 12:27:42.30
    Reliability flags clear, headers valid, no need to fix file.
    1 file/argument was processed - 1 file was not fixed.
    icfixup is finished

    After the chkisam is complete, do the following to check for errors:

      c:\mc\mcadata>dir *.er

    If any files are displayed, print the file names or write them down and proceed to the reorg process.

2. To CHKISAM a single file:

    type cd \mc\mcadata
    press <ENTER>

    type chkisam filename
    press <ENTER>

    c:\mc\mcadata>chkisam prtass

    iccheck Revision 3.00 (Windows)
    Copyright (C) 1987-2000, Egan Systems, Inc. All rights reserved.
    c:\mc\mcadata\prtass processed on May-10-2002 12:27:42.14
    ICISAM Revision 5.09
    Delete is logical, Maximum file size is 2GB
    No Alternate Keys 64 byte Records 47 Records allocated
    Records available before the .XD EOF: 51
    Primary ------- Key: 47 Record: 47
    1 file/argument was processed - All are reliable.
    iccheck is finished

    icfixup Revision 3.00 (Windows)
    Copyright (C) 1987-2000, Egan Systems, Inc. All rights reserved.
    c:\mc\mcadata\prtass processed on May-10-2002 12:27:42.30
    Reliability flags clear, headers valid, no need to fix file.
    1 file/argument was processed - 1 file was not fixed.
    icfixup is finished

    After the chkisam is complete, do the following to check for errors:

      c:\mc\mcadata>dir *.er

    If any files are displayed, print the file names or write them down and proceed to the reorg process.

    Below is a sample DOS chkisam.bat script file. This file is normally located in the \mc\mcadata directory:

    REM CHKISAM EQUIVILENT FOR ICOBOL230 AND HIGHER
    SET ICROOT=c:\program files\icobol
    "C:\program files\iCOBOL\ICCHECK.exe" -epN w %1%
    "C:\program files\icobol\icfixup.exe" -p %1%

Updated February 18, 2005 at 8:29 a.m.