Ap H. Example fhconvert Parameter File [ Micro Focus COBOL System Reference, Volume 2 ] MPE/iX 5.0 Documentation
Micro Focus COBOL System Reference, Volume 2
Appendix H Example fhconvert Parameter File
This example of an fhconvert parameter file is used to convert a relative
file to a C-ISAM file.
All parameter records and their specifications may be in either upper or
lower case (except path and file-names which are case sensitive). Tab
characters and spaces are totally interchangeable. There is no
significance in the order in which the parameters are written.
# parameter file used to convert a relative file to an indexed
file
# input parameters
IN rel-file # input file name
IT R0 # input file type - relative
ID 0 # LF record delimiter
IF 240 # fixed record length
# Output parameters
ON /pathname/isam-file # output file name
OT I0 # output file type - C-ISAM
OV 200/240 # Variable record length 200 min/240 max
OB 511 # block size (optional)
PK D(129:29:Chartype) # Prime key description
# key can have duplicates
# start byte is 129
# key length is 29
# key type is CHARTYPE
AK C (160 4:CHARTYPE # Alternate key description
# key has compression
# start byte is 160
# key length is 4
# key type is CHARTYPE
AK (164:10*CHARSIZE:CHARTYPE) # Alternate key description
# start byte is 164
# key length is CHARSIZE*10
# key type is CHARTYPE
DC 001 # data compression type 1 for
# output ISAM file
# (This will automatically
# change OT from I0 to I3)
#------------------ end of parameter file ------------------
MPE/iX 5.0 Documentation