RPTVIEW - version 3.0 1. Short description rptview is an UNIX file browsing and processing tool. It has the following features: - abitlity to open file of arbitrary size and width up to 900 characters without any substantial resource requirements - easy-to-use and comprehensive set of navigation functions - persistant and comprehensive information about the navigation status - user-defined settings - integration with vi-editor for browsing and editing - different processing options - printout capabilities - search-and-browse capabilities 2. Installation The package conatins .4Gl, .per, script and Makefile files. Its installation implies the existance of the Informix commands c4gl, form4gl. In order to install it and start it follow the steps: - unzip the rptview.zip file in a new directory - start the make command to compile the program i_rptmn.4ge using the Makefile - start the formcp script to compile the forms - edit the "rv" script: = set the RVPATH variable to point to the directory where the program resides = set the DBS variable to a database where the utilitiy can create temp tables (the size of the temp tables is restricted by the frame length - i.e. by the variable MAXL) = set the TPATH variable to point to directory where the utility can generate temp files (it will erase them eventually if properly exited; their size is also noramlly restricted bt MAXL, except for the case of editing ori pasting files thru vi editor - see integration with vi) The next variables are user-defined and not mandatatory: = set the MAXL variable to the size of the frames the utility is going to use - i.e. the portion of the file it will process at a time (rptview will check the file length by this number - if the file is bigger it will take only MAXL lines portion of it, then by browsing it will take automatically the next MAXL portion depending on the navigation key) = set SCRDISP variable to influence whether the indications and position changing will be in terms of screens or lines = set the BFR_PROCESS variable to indicate whether by copying, printing and editing the utility will use the whole file or only the current frame portion place it in a directory in which You have PATH to 3. Using the rptview program: 1) start the program issuing the rv command - if You do not supply parameters it will display the syntaxis of the command - if You pass as a parameter the name of the file - it will browse it (You can enter the file also with wildcards, but it must be uniquely identifyable by that pattern) - You can pass the name of the file and name of the report - it will be the same as above except that it will show the name of the report in the title box - If You pass a third numeric parameter it will consider it as a frame length (see below frames) and will supercede the MAXL variable 2) using the utility Once started the utility You can use the following functions Note: The keys for processing process only a temp copy of the file - not the file which was supplied as a parameter - if You want to save the changes You should either copy the file () or print it keys function , - help navigation up, down arrows - one position to the top, to the bottom of the file left, right arrows - 30 position to the left/right , - 1 position to the left/right , - begin/end of the report , - to the first/last character - to a absolute/relative psoiton or to a search pattern- a form appears - if You enter: 1) the search pattern and "move/select" flag - "y" the position will change to the neaerst line containing this pattern (the pattern do not contain wildcards) - You can proceed to the next using ; if "move/select" flag is "n" then all the lines containing the pattern will be selected and shown as a file, which can be browsed, processed and saved the same way; the next will return to the initial file 2) if You leave the search pattern blank and enter the position and leave "abs/rel" flag to "y" then the position will change to the entered values ( by using You can return at any moment to this positon); if the "abs/rel" flag is "n" The positon advance with the entered values (relative move) - if You press it will move further at the same pace - depending on what You entered the form it will move to a next pattern ( to a absolute position (search patern - blank) next "position" rows (relative movement) file processing - You can cut the file horizontally or vertically - a menu will appear and You can cut the file to the left, right, upper or bottm screen border or You can recover the file which has been cut - move to vi editor - the file or the active frame (see Bframe setting) will be cut in slices with the width of the monitor - 78 charecters and this slices will be passed to vi as separate files - You can skip with the next vi command to the next fila, the positin will be the current position in the rptview browser; You can browse or edit the slices, after having finished exit - You will be asked to save the changes made in the editor - the files will be pasted and seen as one file in the rptview utility - file cut with parameters - You can indicate the file width as a number to which the file will be cut and then direct the output to a files, screen or printer file preservation - print the file (a list of active printers will appear - choose the printer to direct the request to; it will be printed the whole file or just the active frame depending on the Bframe setting - see BFR_PROCESS, F10 key) - copy the file - You will copy the frame or the whole file - see above; this is the only way to save the changes made thru processing the file parameter setting , - sets the active domain alternatively to the whole file or to the active frame for the vi processing, file saving and printing functions Have great time using this utility. All comments welcomed at ivokt@hotmail.com (ivokt@usa.net).