fwv
index
/home/ut3hax/bin/fwv

Usage: 
    cat FILE.schema.dat | fixedwidth_viewer -sMySchema.py
    fixedwidth_viewer FILE.schema.dat
 
You may set a schema directory in your environmental variables.
If you do not pass in a schema argument, this script will try to assume one
based on the filename passed in.

 
Modules
       
cStringIO
logging
optparse
os
sys

 
Functions
       
fixed_parse(fileh, fields)
main()
schema_help()
SCHEMA HELP
===========
The schema definition file must be a valid python file.
The following format is expected.
 
The first element of the tuples is the field name, the second is the fixed with.
schema = list(tuple)
 
EXAMPLE:
schema = [('group_number', 8),
 ('patient_ssn', 11),
 ('patient_dob', 8),
 ('patient_last_name', 15)
]

 
Data
        ENV_SCHEMADIR_VAR = 'CPS_COBOL_SCHEMA_DIR'
log = <logging.RootLogger instance>