'uvhd' is a binary file investigation utility. It displays any file in 'vertical hexadecimal' and prompts for commands to browse, search, select, update, scan/replace, print, translate, etc. 'uvhd' is especially effective for working with mainframe type data files that have been migrated to unix. These files may have packed/binary fields & are usually fixed-length records with no LineFeeds. These files can NOT be handled with Unix system utilities such as vi,lp,more,cat,grep,etc. uvhd is an interactive utility with a command line interface and 24 help screens. Please see the full documentation at uvhd documentation
'uvhdcob' is similar to uvhd, but shows COBOL copybook fieldnames beside data field contents. You must first convert the COBOL copybooks to 'cobmaps' (same as copybooks, but with field start/end/length/type coded on right side). 'cobmaps' are best created with 'uvcopy cobmap1' (part of Vancouver Utilities pkg), but you could code manually following examples in uvhdcob documentation. UV Software offers a 1 time free conversion of your COBOL copybooks. Please see the full documentation at uvhdcob documentation . In 2011 uvhdcob was enhanced to handle more complex copybooks with 2 levels of group occurs, unlimited item occurs,& unlimited occurs depending on.
uvhd & uvhdcob are a effective tool for investigating problems and verifying test results in files that have packed/binary fields, and that may not have linefeeds. Most Unix/Linux tools require linefeeds (vi, cat, lp, etc).
uvhd & uvhdcob are especially valuable in conversion situations such as mainframe to Unix/Linux conversions. Mainframe COBOL is usually converted to Micro Focus COBOL on the Unix/Linux system. uvhd/uvhdcob can process all converted file types (sequential, fixed, variable, indexed, text, binary, C-ISAM, D-ISAM, Micro Focus COBOL IDXFORMAT1/3/8, RDW/BDW, etc)
For Unix/Linux you must download the source programs and compile on your Unix/Linux O/S. For Windows or DOS you may download the executable and store it in your program files or setup your PATH to wherever you download.
#1. cp uvhd.c src/uvhd.c - store program in source subdir ==================== - ensure filename is 'uvhd.c' #2. cc src/uvhd.c -obin/uvhd - compile the program ======================== #3a. bin/uvhd dat1/custmas1 r256 - test with downloaded ASCII datafile =========================== #3b. bin/uvhd dat1/custmas1E r256a - test with downloaded EBCDIC datafile ============================= - option 'a' translates the Character line to ASCII - but still shows the EBCDIC values of the zones & digits lines - for each vertical hexadecimal 3 line group (chars/zones/digits) #3c. bin/uvhd xxxxx r??? - display any of your data files (???=recsize) =================== #4. PATH=$PATH:/home/userx/bin; export PATH ======================================= - Add bin to your PATH so you can execute it from anywhere.
#1. cp uvhdcob.c src/uvhdcob.c - store program in source subdir ========================== - ensure filename is 'uvhdcob.c' #2. cc src/uvhdcob.c -obin/uvhdcob - compile the program ============================== #3. uvcopyx cobmap1 cpys maps uop=q0i7 - convert copybooks to 'cobmap's ================================== - requires VU pkg, could do manually #4. bin/uvhd dat1/custmas1 maps/custmas - test w datafile & copybook/map ===================================
The above procedures are for Unix/Linux. You do not need to compile for Windows/DOS since you can download the executable from the web site. Please see uvhd setup Windows PATH to setup the Windows PATH, so the program will be found when you type uvhd on the command line. See WindowsDOS.doc if you wish to see how uvhd was compiled at UV Software for DOS windows on Windows.
If you find uvhd useful at your site, I would appreciate some feedback. Please let me know which features you find most useful, and if you have any suggestions for future enhancements. Of course let me know in the unlikely event :-) that you find a bug. You will be rewarded with a 1 year subscription (4 issues) to Beautiful BC Magazine.
Owen Townsend ,
UV Software Inc. ,
4667 Hoskins Rd. ,
North Vancouver BC ,
Canada V7K2R3 .
Tel: 604-980-5434 , Fax: 604-980-5404 , Web: http://www.uvsoftware.ca .
return to UV Software Home-Page