Use 'PICKNUMS.BAS' to scan all of your MEX '.PHN' files. It allows you to selectively extract numbers, which will then be placed into 'MEX-TEMP.PHN'. If 'PICKNUMS.MEX' is used, it will first run the above program, and then load and list the new library for you. (This program can be useful even if you don't have MEX - see the NOTE below). =============================================================================== Some additions for version 1.05: The initial display of help message can be turned off by changing "FALSE" to "TRUE" in line 1012. A prompt has been added for optionally specifying another input drive. Error handling is improved. A previous output file is saved with a ".BAK" extension if it exists. The "B" command now goes back to the beginning of the currently open "areacode" type file instead of the one with the "A" suffix. (A comment explains how to revert to the old style of backing up). The program has now been tested with CP/M. DELMEXPW.BAS has been added. This program searches for lines with "/pwd" in them and deletes the following characters up to the baud rate spec., if given. ( MEX has no problem loading these shortened lines ). This makes it possible to give out copies of your ".PHN" files, without having to manually edit them. Note: The "/pwd" string may contain upper or lower case characters. If any comment characters precede the "/pwd", they will not be stripped. B.N., June 17, 1985 =============================================================================== The names used for your '.PHN' files are defined in DATA statements and may be anything you choose. If the first character is numeric, the name must not exceed 7 characters. Since MEX will only load the first 30 names in the '.PHN' file, this program will make it convenient to have use very large 'area-code' oriented phone libraries. Ex: You have 80 numbers in the 212 area. You could then place all of the names from 'A' through 'G' in '212A.PHN', names from 'H' through 'M' in '212B.PHN', names from 'N' through 'S' in '212C.PHN' and the remainder in '212D.PHN'. All you would need to define in the program DATA statement is '212'. You could eventually add more '212' phone files and would not have to modify the program to include the new ones. Bill Norris =============================================================================== NOTE: This program has multiple ASCII files as input. Only one file at a time is used for input. Each line is displayed on the screen and you are given the option of selecting it for writing to a single output file. Commands allow you to list the selected lines, print a help message, skip to the next input file, go back to the first input file or the top of the current file, etc. It just happens that some things were put in to make it more useful with MEX. One is the 30 line limit MEX has for phone library files. This program allows more than 30 lines, but prints a warning if you exceed this limit. If you plan on going way beyond this limit, you'll have to re-dimension PHONE$(nn) to a larger value. If not using it with MEX, you'll also want to take out the statement that appends '.PHN' to the input filename.