home *** CD-ROM | disk | FTP | other *** search
- PPSTOCK4.ZIP ==> "Procomm Plus downloads STOCKs from compuserve"
- version 0.4
- by Jim Robeson
- 2-24-92
- ------------------------------------------------------------------------
-
- Attached is a simple little ProComm Plus 2.x ASP file that can
- be used to "download" current stock data for selected issues
- from the COMPUSERVE system. Data is written using ProComm's
- log file functions.
-
- The CIS BASICQUOTES system is used to keep costs to a minimum.
-
- CIS is dialed, quotes are retrieved, CIS is closed, ProComm is
- shut down and control is returned to the calling batch file.
- Certain error conditions are detected and the controlling BATch
- program can adjust the operations accordingly.
-
- A program is included that can create a comma-delimited version
- of the stock data file.
-
- A really "raw" Quattro Pro spreadsheet is included that can load
- the comma-delimited file, retaining the previous data. Fer sure,
- this ain't very fancy. Included here for demonstration purposes.
-
-
- === FILE DESCRIPTIONS ====
-
- DOSTOCK.BAT This activates ProComm and makes CIS6.ASX operate,
- then it calls up the comma-delimiter convertor,
- and starts my spreadsheet.
-
- CIS6.ASP This .ASP READS a file called STOCKS.CFG that
- contains the stock names you are interested in.
- You shouldn't have to modify it again to add/delete
- stock selections. Just change STOCKS.CFG.
-
- Data lines are written WITHOUT headings and other
- extraneous text.
-
- Modifications are required by potetntial users for:
- - Dialing Directory line number for CIS
- - CIS User ID & Password
- - the file name & directory of the output log file
- - Compile using ASPCOMP
-
- STOCKS.CFG A sample stock file for use with CIS6.ASP.
- (It contains sample stock names for testing
- purposes). You must put one and only one
- stock per line, and there must be no exteraneous
- text anywhere in the file. Absolutly no comments,
- periods, nothing. Whatever is read in will be
- treated as a stock name and sent to CIS.
-
- This file must be placed in the ProComm Plus directory,
- unless you modify CIS6.ASP.
-
- PPSTOCK.C This program inserts COMMA-DELIMITING characters into
- PPSTOCK.EXE a copy of the downloaded stock file. It is really
- a simple program, table driven, that just inserts
- quotes and commas where needed. If you can find other
- uses for it, just change the table called VARTAB.
- If you change VARTAB, don't forget the "number
- of fields" definition FLDCNT. (Labeled v1.1)
-
- USAGE: PPSTOCK file-in file-out
-
- PLEASE REMEMBER, IF THE OUTPUT FILE ALREADY EXISTS,
- IT IS IMMEDIATLY ERASED (OVERWRITTEN) WITH NO WARNING.
- Don't put an un-intended file name in the call.
-
- STOC0221.LOG This shows what you would get if the "LOG SUSPEND"
- and "LOG RESUME" blocks were removed; that is, this
- junk
- WAITFOR "------^M"
- LOG RESUME
- WAITFOR "^M"
- LOG SUSPEND
- This file contains the column headings for the data.
-
- STOCKS.DLY An example of the data as it comes out of the ASP/CIS
- process. That is, this is the raw data straight from
- Compuserve.
-
- STOCKS.PRN This is a comma-delimited version of the above file
- as produced by PPSTOCK.EXE.
-
-
- === YOUR JOB =============
-
- You will need to modify the DOSTOCK.BAT to suit your needs and
- setup. You will have to plug in CIS stock symbols into the
- STOCKS.CFG, you need to modify and compile the CIS6.ASP file.
- And you get to handle the importing of the output file into
- your own spreadsheet or database program.
-
- And yes, you get to do your own analysis of the data!
-
-
- === NEXT VERSION PLANS ===
-
- 1. PPSTOCK.EXE is NOT ProComm Plus dependant. So you could copy
- or convert the ASP script to your own communications program
- if you don't use ProComm Plus and still use the second half of
- this package. If you do write something similar for other
- comm programs, I would love to be able to include it in
- this package for other folks to use. Send it to me....
-
- 2. I want to load the data into Paradox. Need a "macro".
-
- 3. It is time to convert my 'on-balance-volume' trend analyzer
- from Apple BASIC to Turbo C.
-
-
- === DISCLAIMER ===========
-
- These programs are contributed to the Public Domain. They can
- be freely used, modified and/or distributed by anyone. The
- only thing I ask is that you remember that I am not responsible
- for anything that might go wrong through the use of these files.
- I have tested the programs enough for my own use. But I also
- realize that bugs can appear in most every program.
- YOU USE THESE PROGRAMS AT YOUR OWN RISK.
-
-
- === HISTORY ==============
-
- 2-21-92 PPSTOCK1.ZIP first cut to see if the idea was feasible.
- - discarded
-
- 2-22-92 PPSTOCK2.ZIP First public version 0.2,
- - stock selection inside of .ASP.
- Useful for training, still on Cricket BBS.
-
- 2-23-92 PPSTOCK3.ZIP Public version 0.3,
- - stock selection read from a file external
- to the .ASP.
- Useful for training, still on Cricket BBS.
-
- 2-24-92 PPSTOCK4.ZIP Public version 0.4:
- - renamed stock.cfg to stocks.cfg
- - added an error condition notification control
- file (stocks.err) in place of the idea of
- an environmental variable.
- - improved GOSTOCK.BAT:
- - added a history file save line
- - handle error conditions
- - comments
- - added a really basic Quattro Pro sheet
- that just loads/saves the data. (This is
- being included more for my own documentation
- needs than anything else.
- - cosmetic changes to PPSTOCK.C/EXE
- still on Cricket BBS.
-
-
- === FINIS ================
-
- BTW, the file names used in this "system" are not required
- to remain as-is. They just suited me when I was putting this
- together. You can rename any or all of them to suit your own
- needs. YOU HAVE TO MODIFY the drive/directories to found
- in the GOSTOCK.BAT to fit your setup.
-
-
- ------------------------------------------------------------------------
-
- Send all stock hints and other good ideas to:
-
- Jim Robeson
- The Cricket BBS
- 408-373-3773 (modem)
- Pacific Grove, CA
-
- Send all complaints to:
-
- George Bush
- The White House
- 202-456-7639 (voice)
- Washington DC
-
- Remember, greed and ignorance are the investor's worst enemy.