MERGE utility RP AUTOMATION INC DEC 1988
Preliminary Documentation
1.0 Introduction
This set of programs provides a mechanism for merging files
into a new file by concatenating all data together. The new
file can be created on a new diskette or on the same diskette.
2.0 Subroutine Description
The following subroutines are provided in this package:
Name Description
rp..merge This is the program that the
user needs to EXECUTE from the
VAL II monitor ("." prompt).
Ensure that no PC program is
executing when performing this
function.
rp..delete These programs are not to be
rp..flpdir EXECUTE'd by the user. They are
rp..flperr used internally by the routines
rp..flpin that perform the COPYFILES
rp..flpin.cmd function.
rp..flpout
rp..flpout.out4.in
rp..flpout1
rp..format
rp..get.string
rp..get.string.upper
rp..openr
rp..openw
rp..print.file
rp..rblk
rp..rdfiles
rp..type.string
rp..wblk
rp..wfiles
3.0 Software Installation
The software is installed using the following procedure:
1) Load the RP._MERGE.V2 file from floppy. This is
done by typing:
LOAD RP._MERGE.V2
2) Execute the program by typing:
EXECUTE RP..MERGE
3) Answer the questions appropriately when asked to do so.
4.0 Software execution
1) The program will ask for a prompt when the first disk
is installed in the floppy disk drive. Pressing <RETURN>
at this point causes the floppy disk directory to get
listed on the CRT screen.
2) Select which files are to be merged. When all files to
be merged have been entered, press <RETURN> at the next
prompt.
3) The new filename is then entered. This file will consist
of all data from the aforementioned files.
4) The files will then begin to get read from the first
floppy diskette. When all files have been read, or if
the allocated area gets filled, then the program will
prompt for changing to the new diskette. If the new
file is to be on the same diskette, then do not change
to another diskette - just type <RETURN>. If the new
file is to reside on a different diskette, then when
the new diskette is in place and <RETURN> is typed,
those files in memory will be written to the new diskette.
5) When all files have been read and written, then the
program finishes and returns to the VAL II monitor.
5.0 Special notes
1) When a file is read from the first diskette, the
filename is displayed. And, each time that 4 blocks
of data are read, the number of blocks is displayed
on the screen.
2) When a file is written to the second diskette, the
filename is displayed. Each time that 4 blocks of
data are read, the block number is displayed on
the screen.
3) If the diskette to be written to is not formatted, then
the program will query the user whether to FORMAT the
diskette or RETRY. This gives the user the option to
change to a different diskette if desired.
4) If the new filename already exists on the diskette where
this file is to be written, then the program will query
the user whether to DELETE the file or RETRY. This gives
the user the option to change to a different diskette if
desired.
5) The same filename can be used on the same diskette as
long as that file is completely read before the writing
process begins.
6) If any of the specified files are not found on the
diskette, then the program will simply ignore those
files.
7) If a file is not completed during a reading/writing
session, then when the first diskette is read again,
the message is:
Continuing to read <filename>
instead of:
Reading <filename>
and a similar message is generated when writing the
file.
6.0 Variable names used
The following list of real variable names are used within this set
of programs. They are reserved and should not be used:
rp..blkcnt rp..bs.sp.bs[] rp..checksum
rp..chr rp..cr.lf[] rp..dirbuf[]
rp..file.blks[] rp..get.i rp..getchr
rp..getcmd rp..i rp..idir
rp..in.new rp..in.ptr.blks rp..in.ptr.name
rp..inbuf[] rp..new.name[] rp..num.blks
rp..num.wds rp..numb rp..out.new
rp..out.ptr.blks rp..out.ptr.name rp..outchr[]
rp..temp.data[] rp..tmp rp..type.i
rp..z.beg.addr rp..z.data.zpoke[]
7.0 Messages
"*** ZALLOCATE AREA NOT SET UP ***"
This message signifies that the user forgot to use the
ZALLOCATE command before LOAD'ing in the "RP._COPYFILES.V2"
file. The program will abort at this point, and the entire
loading procedure must done again.
"Press <CR> to ..."
When this message gets displayed, the diskettes should be
swapped, and then the <CR> (<RETURN>) key pressed.
"*** Floppy error nn ***"
This message signifies that a floppy error occured. The
number corresponds to the internal floppy error code:
2 = File already exists (creating new file with same name)
3 = File does not exist (opening file for reading)
4 = Communications error between VAL & floppy
5 = Disk full (writing to disk)
6 = Communications error between VAL & floppy
7 = Communications error between VAL & floppy
10 = Communications error between VAL & floppy
11 = Communications error between VAL & floppy
12 = Floppy not ready
13 = Floppy read error (diskette may be bad)
14 = Communications error between VAL & floppy
41 = No STX received during block transfer
42 = Incorrect checksum received during block transfer
"Cannot open WRITE file. Type <CR> to retry, <F> to FORMAT DISK:"
This message signifies that an error occured when trying
to write the first file on the diskette. If an "F" character
is typed (followed by a <CR>), then the diskette will get
FORMAT'd. Otherwise, the program will assume that the user
changed the diskette and will retry the writing procedure.
RP Automation
Tel (800) 367-7862 (800) FOR PUMA Fax (203) 792-2154
Email info@rpautomation.com
all content copyright RP Automation 1997