home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
p
/
pcp1310.zip
/
PCPLIST.DOC
< prev
next >
Wrap
Text File
|
1991-06-17
|
14KB
|
315 lines
PCPList.DOC Version 2.00 17 Feb 91
Concept, design and original Amiga program created by
Maurice Spear, CompuServe CI$ 76636,1377, also BIX: Mosby.
IBM version translated and programmed by Jesse Warford.
What does PC Pursuit List do? Well it will read in a
file of phone numbers and print out which ones are PC
Pursuitable. It does this very quickly.
The program works by loading the entire PC Pursuit
Library into RAM. This allows very fast processing of data,
unlike PCPFind, which just seeks to the location of each
phone number. The only drawback to loading the PC Pursuit
library into RAM, is that it uses about 40K to do this.
Just like PCPFind, DO NOT change the name of this
program from anything other than PCPLIST. Whether the name
is in CAPITAL letters, or lower case, does not matter. Just
don't change the name! I just want credit for my hard
work! Fair enough isn't it?
OK, now for the directions. There are several options
available for this program. Here are a few examples of
VALID entries:
PCPLIST listfile use a/c offsets trunc typelist output file
------- ------------ ------- --------- ----- -------- ------------
PCPLIST BBS1290.LST >BBS1290.PCP
PCPLIST THELIST /U:619 /O:,3 /A
PCPLIST SOCAL065.LST /O:3,8 /L
PCPLIST TheFinaList /O:10,15 /N
I separated the entries, to enhance understanding. The
options are described in the following paragraphs, and they
can be in any order, but the file name MUST be the first
entree after the program name "PCPList".
The 'listfile' is the filename of the list of phone
numbers that PCPLIST will process. It can be any list, but
will most likely be a list of BBS's which you downloaded
from a BBS. This list must be in text, and the areacodes
and exchanges (an exchange is the 3 digit number after the
areacode but before the 4 digit phone number) must be at the
same locations on every line of the file, or they will not
be processed as valid phone numbers.
PCPLIST VERSION 2.00 PAGE 1 OF 5
OFFSETS (/O:)
These are very important. The offsets refer to the
number of characters to the start of the area code and the
exchange within the listfile specified to be used.
If you do not specify an offset, the DEFAULT is the
area code starts in column 1 and goes to 3, and the exchange
starts in column 5 to 7. The two offsets are separated by a
COMMA within the directives line. A area code or exchange
offset can be entered alone, but if an exchange offset is
not entered after an area code offset, then the program
DEFAULTS to area code offset plus four, for the exchange
offset. Here are some VALID examples:
1 2.....
COLUMN 12345678901234567890.....
PCPList filename /O:3 for data: 413-532-9999
PCPList filename /O:1,6 for data:414-/278-5390
PCPList filename /O:10 for data: 619/246-0000
PCPList filename /O:7,12 for data: (619) 247-5512
PCPList filename /O:6,12 for data: +{619} 555-1212
PCPList filename /O:,2 for data: 734-1234 (see USE)
INVALID EXAMPLES!
PCPList filename /O:1,3 ** must be at least 4 chars
between the area code and
exchange **
PCPList filename /O:10, ** This is not valid as the
program will look for the
offset of the exchange and
not find it **
Remember these are the offsets for the INPUT file, and
they must be correct! Also note that if the phone numbers
in the listfile do not all start at the same columns, then
PCPLIST will not work correctly. (ie.
Joe's BBS 619-246-0000
The Alternate Reality BBS 619-246-1111
KINGS BBS #2 619-246-2222
there is no way to set the offsets correctly in the above
example, so PCPLIST will give you incorrect results, even if
the offsets were not specified. So remember that PCPLIST
will work correctly on a listfile if the area codes and/or
the exchanges all line up on the same columns.)
PCPLIST VERSION 2.00 PAGE 2 OF 5
USE (/U:)
This version (2.00) a USE area code was added. It is
for those lists that only have seven digits, and the area
code is IMPLIED but is not actually a part of the list. Most
often, local area BBS's use this type of list to advertise
other BBS's within the local area code. To use this you just
enter the OFFSET to the exchange, such as ",12" means that
the exchange starts in column 12, notice that the comma is
BEFORE the exchange indicating that there is NO area code.
For the area code you will enter /U:512, this means use
area code "512" for the WHOLE file. REMEMBER! If you use
the /U directive, the exchange column is automatically set
to a default column of 1. So if you wish to change the
exchange column, do so AFTER the USE directive (ie. if you
specify "/O:,12 /U:512" the exchange column will be 1, not
12, but if you specify "/U:512 /O:,12" the exchange column
will properly be set to 12.) Now put this all together you
will enter the following:
PCPLIST filename /U:512 /O:,12
for the file setup such as:
1 2 3
123456789012345678901234567890
743-1255 Joe's BBS
456-2345 My BBS
Notice that there is NO area code, and the OFFSET to the
exchange is 12 (ie. starts in column 12.)
Truncate options
SHORT (/S)
This option truncates the line after 68 characters of
input from the BBS List file. This is the DEFAULT option,
and need not be specified. The first 11 characters of the
output are used for PC Pursuit outdial information.
LONG (/L)
This option allows you to print out the WHOLE line of
input from the BBS List file. This is for people who want
the whole line listed.
WARNING! If any lines of text exceed 256 characters in
length, PCPList will stop and tell you the listfile has been
corrupted. Please remember this.
PCPLIST VERSION 2.00 PAGE 3 OF 5
Type of list options
OUTDIALS (/D)
Again, this is the DEFAULT option. The only phone
numbers printed out in this case will be phone numbers that
are PC Pursuitable. Any phone numbers that are not in the
PC Pursuit library, will not be printed out. Use this
option if you just want the PC Pursuitable phone numbers.
No lines of input with text in the phone number position
(instead of phone numbers) will be checked. This option
does not need to be specified.
NUMBERS (/N)
This option allows you to print out all of the phone
numbers, whether they were PC- Pursutable or not, thereby
effectively stripping the output of garbage text. This is
the option to use if you wanted only the phone numbers.
Lines with text in the phone number position will not be
checked, or printed out. Phone numbers that are PC-
Pursuitable will have the correct outdial listed in the
first 11 characters, otherwise the first 11 characters will
be blank.
ALL (/A)
In this option, everything in the input file will be
printed out, and the OUTDIALS will be noted. The output
file will be offset by 11 characters. Also any lines with
text in the phone number position will not be checked for
outdials.
OUTPUT RE-DIRECTION (>filename.ext)
If you want the text produced by PCPLIST to go into a
file for later viewing instead of being printed to the
screen, then you must specify an outfile. Do this by
including a redirection command '>' and the filename at the
end of your directives list.
(ie: PCPLIST BBS.LST >BBSLIST.PCP)
will cause all of the text that PCPLIST normally prints to
the screen to be placed in the file BBSLIST.PCP exactly as
it would have appeared on the screen. This produces an
ASCII file which may be listed out using the TYPE command
from DOS or loaded by your word processor. If perhaps
the re-direction command does not work correctly, place it
BEFORE the listfile filename. The re-direction command is
the ONLY option that may be included before the listfile.
While testing this program, I noticed on some configurations
the re-direction command would not work at the end of the
line of options, but worked fine as the first option.
(ie. PCPLIST >BBSLIST.PCP BBS.LST)
PCPLIST VERSION 2.00 PAGE 4 OF 5
Note that in any case, the first 11 characters of the
output produced by PCPLIST is for PCPLIST data. Columns 1-5
are for the outdial text, and columns 7-10 are for the 1-
and AreaCode (1-AC or just AC) information. If 1-AC is
printed in columns 7-10 then YOU MUST DIAL THE 1- AREA CODE
BEFORE THE NUMBER WHEN DIALING ON THE PC-PURSUIT SYSTEM! If
just AC appears in columns 9-10, then YOU MUST DIAL THE AREA
CODE BEFORE THE NUMBER WHEN DIALING ON THE PC-PURSUIT
SYSTEM! Example:
1-AC
OUTDL INFO TEXT FROM LISTFILE HOW TO DIAL THE NUMBER
----- ---- ----------------------- -------------------------
TXDAL xxx-yyy-zzzz Joes BBS -> just dial the yyy-zzzz
TXDAL AC xxx-yyy-zzzz Ultima BBS -> dial xxx-yyy-zzzz
TXDAL 1-AC xxx-yyy-zzzz Pic BBS -> dial 1-xxx-yyy-zzzz
(the above examples are just that: examples)
Programmers note: The PC-Pursuit utilities are the first
programs for the IBM and compatables that I have written in
assembly language, and I am very proud of them. They have
been thoroughly tested and I believe them to be bug free.
However, if you do find something wrong with them, just let
Maurice Spear know and he will pass the word to me so I can
fix them. Please be specific and describe exactly what
happened. Just to be on the safe side, the programs do not
write directly to the disk themselves. That is all handled
by MS/DOS with the redirection command ( >filename.ext ).
The only writes these programs do is to the standard out-
put channel, which MS/ DOS uses to redirect output if
requested, and the standard error channel, which MS/DOS uses
to write directly to the screen, regardless of the re-
direction status. This is so any error messages will be
sent to the screen instead of your output file.
To respect the wishes of Maurice Spear, the source code for
these programs is not available to the general public. How-
ever, future programs I write and release to the public
domain will MOST LIKELY include the source code.
These MS/DOS versions of the Amiga programs use the exact
same library file (PCP.LIB) that the Amiga uses. Not only
does this maintain compatability between the versions, but
it was absolutely no hassle at all to write the programs to
accept the Amiga library file.
Jesse Warford
PCPLIST VERSION 2.00 PAGE 5 OF 5