Start keys and end keys may be intermixed on the command line.  A start key or end key has an effect only on the file name that immediately follows.  A start key or end key preceding a wildcard specification only has an effect on the first file of the wildcard expansion.  All other files will be listed from the beginning/end.

Remember that record keys may include a CO-DIV code; do an iskeys to determine the exact format of keys.

If iskeys is entered without any parameters, on-line help appears for the utility.

Example 1

iskeys custs.pro
iskeys ------ PROIV (R) Display selected keys in database file(s)
Copyright (C) 1994, PROIV Technology, Inc.
All rights reserved.  Unauthorized use strictly prohibited.
PROIV Version   : 4.0000  Revision:  1.0.0

custs.pro: key length 4  record length:2048
0001
0002
.
.
0050
  50 records read

Displays all the keys in the ‘custs.pro’ file.

Example 2

iskeys -e0004 custs.pro
iskeys ------ PROIV (R) Display selected key in database file(s).
Copyright (C) 1994, PROIV Technology, Inc.
All rights reserved.  Unauthorized use strictly prohibited.
PROIV Version   : 4.0000  Revision:  1.0.0

custs.pro: key length 4  record length:2048
0001
0002
0003
0004
   4 records read

Displays the keys in the ‘custs.pro’ file, starting with the first record and ending with the Key ‘0004’.

Example 3

iskeys -s0048 custs.pro -e00004 cinvhdr.pro
iskeys ------ PROIV (R) Display selected key in database file(s).
Copyright (C) 1994, PROIV Technology, Inc.
All rights reserved.  Unauthorized use strictly prohibited.
PROIV Version   :4.0000  Revision:  1.0.0

custs.pro: key length 4  record length:2048
0048
0049
0050
   3 records read
cinvhdr.pro: key length 5  record length:2048
00001
00002
00003
00004
   4 records read

Displays the Keys in the ‘custs.pro’ file starting with Key ‘0048’ and ending with the last Key in the file.  Then the Keys in the ‘cinvhdr.pro’ file are displayed, starting with the first record and ending with the Key ‘0004’.

Comment on this topic

Topic ID: 720185