TFQA Logo

Tools for Quantitative Archaeology
   Email:
             Kintigh email

TFQA Home
TFQA Documentation
TFQA Orders
Kintigh's ASU Home


CntRefmt: Reformat Row-Column-Count Segments of CntCnv Records

 

      CntRefmt is a companion program to CNTCNV that reformats row-column-count segments of records formatted for CntCnv, e.g, to make differently formatted files consistent or to change the spacing to make reading easier (as in the example below). The output is formatted with leading #'s (Antanta Data File comments) so that it can be submitted in an antana forat file as documentation of the changes. Errors are produced if input data are misaligned or if the input field values are too wide for the specificed output field widths.

 

      The program prompts should be self explanatory.

 

SAMPLE INPUT DATA FILE (column index not in file)

RecA112333445666778999
RecB998777665444332111
RecC445666112333998777
|   ^    ^    ^    ^    ^    ^    ^    ^ 
Col:5   10   15   20   25   30   35   40

 

SAMPLE OUTPUT DATA FILE (column index not in file)

RecA 11 2 333 44 5 666 77 8 999
RecB 99 8 777 66 5 444 33 2 111
RecC 44 5 666 11 2 333 99 8 777

|   ^    ^    ^    ^    ^    ^    ^    ^ 
Col:5   10   15   20   25   30   35   40

 

SAMPLE PROGRAM LISTING

# CntRefmt Reformat Row-Column-Count Segments of CntCnv Records - Keith Kintigh - 7/21/2007

Input Data File: CNTREFMT.DAT  Output Data File: CNTREFMT(FMT).DAT
INPUT  RowColPos: 5  RowLen: 2  ColLen: 1  Cntlen: 3
OUTPUT RowColPos: 5  RowLen: 3  ColLen: 2  Cntlen: 4

# 3 Records Written, 0 Errors

Home Top Overview Ordering Documentation

Page Last Updated - 21-Jul-2007