home *** CD-ROM | disk | FTP | other *** search
- ;*************************************************************
- ;* DATA ASSISTANT Historical Retrieval Capture Template Script
- ;*
- ;* Captures historical quotes from CompuServe MQINT 200
- ;*
- ;*************************************************************
-
- ;-------------------------------------------------------------
- ; Delete and Create the historical capture file.
- ;
- ; *** THESE LINES SHOULD NOT BE CHANGED OR DELETED ***
- ;-------------------------------------------------------------
- KILL &HISTORY_CAPTURE&
- CAPTURE &HISTORY_CAPTURE&
- CAPTURE N
- ;-------------------------------------------------------------
- ; Establish a connection to CompuServe. This logic is based
- ; on direct access to CompuServe using local access numbers.
- ;
- ; The modem initialization string is sent automatically when
- ; the connection is initially made before script execution.
- ;
- ; Generally, you can change this section as necessary for
- ; your own access. The goal is to enter CompuServe such that
- ; the following logic section ("GO MQINT") and beyond can be
- ; executed for retrieving historical data.
- ;-------------------------------------------------------------
- S &MODEM_DIAL&&CIS_HISTORY_PHONE&^M
- W &MODEM_CONNECT&
- P 2
- U ^C
- W ID:
- S &CIS_HISTORY_USERID&^M
- W word:
- U &CIS_HISTORY_PASSWORD&^M
- W !
- ;-------------------------------------------------------------
- ; Set session-specific settings
- ;-------------------------------------------------------------
- S SET TERMINAL OTHER^M
- W !
- S SET PAGED NO^M
- W !
- ;-------------------------------------------------------------
- ; Enter the MicroQuote area and select Interface 200.
- ;-------------------------------------------------------------
- S GO MQINT^M
- W face:
- S 200^M
- C Y
- W :
- ;-------------------------------------------------------------
- ; Repeat the following retrieval procedure from MQINT 200
- ; for each symbol specified in the "Daily Symbols" dialog box.
- ; One command line is sent for each symbol.
- ;-------------------------------------------------------------
- &BLOCKHISTORY
- S &SYMBOL&,&HISTORY_SELECT&^M
- W :
- &ENDBLOCK
-
- C N
- U ^M
- W face:
- ;-------------------------------------------------------------
- ; Log off from CompuServe
- ;-------------------------------------------------------------
- S OFF^M
- W &MODEM_NOCARRIER&
- P 2
-