home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / REFLECT.ZIP / NEWVUSER.RCL < prev    next >
Encoding:
Text File  |  1989-07-03  |  9.6 KB  |  221 lines

  1. Q COMMAND ON
  2. ;PROGRAM FOR NEW USER CONFIGURATION
  3. DISPLAY "^[[1;1H^[[0J^J                        REFLECTION FOR NEW USERS^M^J^J"
  4. DISPLAY "     Welcome to REFLECTION!^M^J^J"
  5. DISPLAY "     This interactive session is designed to help you establish ^M^J"
  6. DISPLAY "     communications with your VAX.^M^J^J"
  7. DISPLAY "     Written in REFLECTION's command language, this program will prompt ^M^J"
  8. DISPLAY "     you for information and make changes automatically using REFLECTION's ^M^J"
  9. DISPLAY "     SET command.^M^J^J"
  10. DISPLAY "     Choices are listed prior to a prompt or at the end within parentheses.^M^J"
  11. DISPLAY "     Defaults are marked with an asterisk.  (Pressing Return selects the ^M^J"
  12. DISPLAY "     default.)^M^J^J"
  13. DISPLAY "     Your changes will be made active and, optionally, will be saved on disk.^M^J^J"
  14. DISPLAY "     You may exit this (or any) command file by entering Ctrl-Y (and Return).^M^J"
  15. DISPLAY "     You may exit REFLECTION from any screen by entering Alt-X.^M^J^J^J"
  16. DISPLAY "     Continue? (Y* / N): "
  17. ACCEPT V9 LIMIT 1
  18. IF UPPER(V9) = "N"
  19.    DISPLAY "^[[1;1H^[[0J"
  20.    Q COMMAND OFF
  21.    Q STATUS  OFF
  22.    STOP
  23. ENDIF
  24. DISPLAY "^[[1;1H^[[0J^J                         REFLECTION FOR NEW USERS^M^J^J^J"
  25. DISPLAY "     REFLECTION is shipped to you without a configuration file on disk.^M^J"
  26. DISPLAY "     When you run REFLECTION, you may specify a configuration file to use.^M^J"
  27. DISPLAY "     If no configuration file is specified, REFLECTION attempts to read the^M^J"
  28. DISPLAY "     default configuration file, so that any changes you have made and saved ^M^J"
  29. DISPLAY "     will be used whenever you run REFLECTION.  If the configuration^M^J"
  30. DISPLAY "     file does not exist, REFLECTION will use its preset configured values.^M^J"
  31. DISPLAY "     This program will save your changes to the default file name.^M^J^J"
  32. DISPLAY "     If you want to restart the configuration process, you should erase or^M^J"
  33. DISPLAY "     rename the default configuration file.  You can save a configuration by^M^J"
  34. DISPLAY "     pressing the function key labeled 'Save to Disk' from any configuration^M^J"
  35. DISPLAY "     menu screen or, as this program does, by using REFLECTION's^M^J"
  36. DISPLAY "     SAVE command.^M^J^J"
  37. DISPLAY "     Continue? (Y*/N): "
  38. ACCEPT V9 LIMIT 1
  39. IF UPPER(V9) = "N"
  40.    DISPLAY "^[[1;1H^[[0J"
  41.    Q COMMAND OFF
  42.    Q STATUS  OFF
  43.    STOP
  44. ENDIF
  45. DISPLAY "^[[1;1H^[[0J^J                      ESTABLISHING HOST COMMUNICATIONS^M^J^J"
  46. DISPLAY "     This section is designed to help you log on to your host VAX computer.^M^J"
  47. DISPLAY "     The default settings work in the most common situation, where^M^J^J"
  48. DISPLAY "         1)  you have an 'in house' VAX,^M^J"
  49. DISPLAY "         2)  set for 9600 baud, no parity, and 1 stop bits,^M^J"
  50. DISPLAY "         3)  with XON/XOFF receive and transmit pacing,^M^J"
  51. DISPLAY "         4)  that is directly connected, with standard RS-232C interfaces,^M^J"
  52. DISPLAY "         5)  to an IBM PC's serial port, configured as COM1 (using IRQ4).^M^J^J"
  53. DISPLAY "     If this describes your situation and you have not yet tried to establish^M^J"
  54. DISPLAY "     host communications, you should exit this help program now (Ctrl-Y) and^M^J"
  55. DISPLAY "     press the Return key a few times.  If you have the default situation,^M^J"
  56. DISPLAY "     the host should issue a prompt on your screen.  When the prompt appears,^M^J"
  57. DISPLAY "     you are ready to log in and begin a session.^M^J^J"
  58. DISPLAY "     If your host is not a VAX, you should skip this section and refer^M^J"
  59. DISPLAY "     to the Configuration or Set-up section in your REFLECTION Technical Reference^M^J"
  60. DISPLAY "     manual for more specific information.^M^J^J"
  61. DISPLAY "     Continue with Establishing Host Communications? (Y*/N): "
  62. ACCEPT V9 LIMIT 1
  63. IF UPPER(V9) = "N"
  64.    DISPLAY "^[[1;1H^[[0J"
  65.    GOTO FINISH
  66. ENDIF
  67. :COMM
  68. DISPLAY "^[[1;1H^[[0J^J                      ESTABLISHING HOST COMMUNICATIONS^M^J^J"
  69. DISPLAY "     Your PC may have from one to four serial (COMmunications) ports.  If you^M^J"
  70. DISPLAY "     are using a PS/2, you may have from 1 to 8 com ports available to you.^M^J"
  71. DISPLAY "     The serial port is a MALE 25-pin connector which should not be confused^M^J"
  72. DISPLAY "     with the parallel printer interface, which is a FEMALE 25-pin connector.^M^J^J"
  73. DISPLAY "     IBM ATs and IBM AT clones are unique because they use a male 9-pin ^M^J"
  74. DISPLAY "     connector for the serial port.  To use the AT's serial port you will ^M^J"
  75. DISPLAY "     probably need a 9 to 25-pin adapter cable.^M^J^J"
  76. DISPLAY "     REFLECTION requires your host or modem connection to be COM1-COM8 for^M^J"
  77. DISPLAY "     data communications.  COM1-COM4 may be used for either serial or^M^J"
  78. DISPLAY "     parallel printer interface.^M^J^J"
  79. DISPLAY "     If you would like a Local Area Network as your Datacomm choice,^M^J"
  80. DISPLAY "     configure this field in the Datacomm Configuration Menu after you have^M^J"
  81. DISPLAY "     finished with this program. "
  82. :askagin
  83. DISPLAY "^M^J^J     Which COM Port will you be using for Datacomm?  (numeric value only): "
  84. ACCEPT V9 LIMIT 1
  85. IF V9 <> "1" and V9 <> "2" AND V9 <> "3" AND V9 <> "4" AND V9 <> "5" and V9 <> "6" AND V9 <> "7" AND V9 <> "8"
  86.    DISPLAY "^M^J^J     The Datacomm connection cannot be COM$9."
  87.    GOTO askagin
  88. ENDIF
  89. IF V9 = "1"
  90.    LET V1 = "1"
  91. ENDIF
  92. IF V9 = "2"
  93.    LET V1 = "2"
  94. ENDIF
  95. IF V9 = "3"
  96.    LET V1 = "3"
  97. ENDIF
  98. IF V9 = "4"
  99.    LET V1 = "4"
  100. ENDIF
  101. IF V9 = "5"
  102.    LET V1 = "5"
  103. ENDIF
  104. IF V9 = "6"
  105.    LET V1 = "6"
  106. ENDIF
  107. IF V9 = "7"
  108.    LET V1 = "7"
  109. ENDIF
  110. IF V9 = "8"
  111.    LET V1 = "8"
  112. ENDIF
  113. DISPLAY "^M^J^J     You are connecting to COM$1.  Correct? (Y*/N): "
  114. ACCEPT V9 LIMIT 1
  115. IF UPPER(V9) = "N"
  116.    GOTO COMM
  117. ENDIF
  118. IF V1 = "1"
  119.    SET DATACOMM-PORT COM1
  120. ENDIF
  121. IF V1 = "2"
  122.    SET DATACOMM-PORT COM2
  123. ENDIF
  124. IF V1 = "3"
  125.    SET DATACOMM-PORT COM3
  126. ENDIF
  127. IF V1 = "4"
  128.    SET DATACOMM-PORT COM4
  129. ENDIF
  130. IF V1 = "5"
  131.    SET DATACOMM-PORT COM5
  132. ENDIF
  133. IF V1 = "6"
  134.    SET DATACOMM-PORT COM6
  135. ENDIF
  136. IF V1 = "7"
  137.    SET DATACOMM-PORT COM7
  138. ENDIF
  139. IF V1 = "8"
  140.    SET DATACOMM-PORT COM8
  141. ENDIF
  142. :COMCHECK
  143. DISPLAY "^[[1;1H^[[0J^J                  ESTABLISHING HOST COMMUNICATIONS^M^J^J"
  144. DISPLAY "   The utility program COMCHECK.COM is provided on your production diskettes. ^M^J"
  145. DISPLAY "   This program checks the status of your serial ports to determine their^M^J"
  146. DISPLAY "   ability to send and receive data.^M^J^J"
  147. DISPLAY "   If you have difficulty establishing a host connection, the COMCHECK.COM ^M^J"
  148. DISPLAY "   program is often a useful diagnostic tool to determine whether your serial^M^J"
  149. DISPLAY "   ports are functioning correctly.^M^J^J"
  150. DISPLAY "   To run this program, make sure that COMCHECK.COM is in the current^M^J"
  151. DISPLAY "   drive, then type:^M^J"
  152. DISPLAY "                               COMCHECK^M^J^J"
  153. DISPLAY "   In a rare case, you may not want to check all ports simultaneously.  If ^M^J"
  154. DISPLAY "   you are using a 3270 coaxial board, such as Attachmate, you should check^M^J"
  155. DISPLAY "   your serial ports one by one.  To check COM1 alone, type the following:^M^J^J"
  156. DISPLAY "                         COMCHECK /1 ^M^J^J"
  157. DISPLAY "   Continue?  (Y*/N) "
  158. ACCEPT V9 LIMIT 1
  159. IF UPPER(V9) = "N"
  160.    DISPLAY "^[H^[J"
  161.    GOTO FINISH
  162. ENDIF
  163. :SBAUD
  164. DISPLAY "^[[1;1H^[[0J^J                      ESTABLISHING HOST COMMUNICATIONS^M^J^J^J"
  165. DISPLAY "     The baud rate specifies the speed at which data is transmitted^M^J"
  166. DISPLAY "     and received through the serial (communications) port.  The host^M^J"
  167. DISPLAY "     is usually configured for a specific baud rate or has the capability^M^J"
  168. DISPLAY "     to speed sense the baud rate within a limited range.  You should set^M^J"
  169. DISPLAY "     the baud rate to the highest speed available on your modem or recognized^M^J"
  170. DISPLAY "     by the host computer.^M^J^J"
  171. DISPLAY "     Note that file transfers are also governed by this setting.^M^J^J^J"
  172. :RBAUD
  173. DISPLAY "   110   150   300   600   1200   1800   2400   4800   9600*   19200   38400^M^J^J"
  174. DISPLAY "     Enter the baud rate: "
  175. LET V4 = 9600
  176. ACCEPT V9 LIMIT 5
  177. IF LENGTH(V9) > 0
  178.   LET V4 = PACK(V9)
  179. ENDIF
  180. DISPLAY "^M^J^J^J     You have selected a speed of $4 baud.  Correct? (Y*/N): "
  181. ACCEPT V9 LIMIT 1
  182. IF UPPER(V9) = "N"
  183.    GOTO SBAUD
  184. ENDIF
  185. CONTINUE
  186. SET BAUD $4
  187. IF ERROR
  188.    DISPLAY "^[[5A^M^[[0J"
  189.    DISPLAY "^G^M^J     Unable to set the baud rate entered. Please try again.^M^J"
  190.    GOTO RBAUD
  191. ENDIF
  192. :SAVE
  193. DISPLAY "^[[1;1H^[[0J^J                      ESTABLISHING HOST COMMUNICATIONS^M^J^J^J"
  194. DISPLAY "     The new configuration information has been made (temporarily) active for^M^J"
  195. DISPLAY "     the current execution of REFLECTION.^M^J^J"
  196. DISPLAY "     To make these configuration changes permanent so they will be used^M^J"
  197. DISPLAY "     for your next execution of REFLECTION, they must be saved on disk to^M^J"
  198. DISPLAY "     the default configuration file.^M^J^J^J"
  199. DISPLAY "     Do you want these changes saved in a configuration file? (Y*/N): "
  200. ACCEPT V9 LIMIT 1
  201. DISPLAY "^[[1;1H^[[0J^J^J"
  202. DISPLAY "     Your changes have been made active.^M^J"
  203. IF UPPER(V9) = "N"
  204.    DISPLAY "     Your configuration changes have NOT been saved.^G^M^J"
  205.    DISPLAY "     (Enter SAVE on the command line if you want to save the configuration.)^M^J"
  206.    GOTO FINISH
  207. ENDIF
  208. CONTINUE
  209. SAVE
  210. IF ERROR
  211.    DISPLAY "     An ERROR occurred while trying to SAVE the configuration.^M^J"
  212.    DISPLAY "     Your configuration changes have NOT been saved.^G^M^J"
  213. ELSE
  214.    DISPLAY "     Your configuration changes have been SAVED to the default^M^J"
  215.    DISPLAY "     configuration file.^M^J"
  216. ENDIF
  217. :FINISH
  218. Q COMMAND OFF
  219. Q STATUS  OFF
  220. STOP
  221.