. ge :: MarkI Timesharing :: 711224B BASICLanguageReferenceManual Nov1970 . ype WEAT! ABE Y0UE VAWES 0F X, Y, and Z ? Without the semicolon at the end of Line 20, the question mark would have been printed on thenext line. Data entered via an INPUT statement is not saved with the program. Furthermore, it may takea long time to enter a large amount of data using INPUT. Therefore, INPUT should be usedonly when small amounts of data are to be entered, or when it is necessary to enter data duringthe running of the program such as with game-playing programs. CHAIN Statement The CHAIN statement allow


. ge :: MarkI Timesharing :: 711224B BASICLanguageReferenceManual Nov1970 . ype WEAT! ABE Y0UE VAWES 0F X, Y, and Z ? Without the semicolon at the end of Line 20, the question mark would have been printed on thenext line. Data entered via an INPUT statement is not saved with the program. Furthermore, it may takea long time to enter a large amount of data using INPUT. Therefore, INPUT should be usedonly when small amounts of data are to be entered, or when it is necessary to enter data duringthe running of the program such as with game-playing programs. CHAIN Statement The CHAIN statement allows the user to stop execution of the current program and begin com-pilation and execution of another program without intervention. It has the same effect as givingthe commands ST0P, 0LD, a program name, and RUN. The form of the statement is CHAIN ^^new file name^^ or CHAIN X$ The name of the file to be accessed must be enclosed in quotation marks unless it is a stringvariable. The file containing the CHAIN statement and the file to be accessed must be savedfiles. Example:. In this example, the program BARBl chains to the program BARB2. If BARBl, the currentfile, had not been saved, the error message 45 CmEEHI? WUM MUST BE SAVED BEF0HE CHAM CAH BE FEBF0RMEI> would have been transmitted to your terminal. If the file BARB2, to which you were chaining,had not been saved, the error message mm K0T SAVED would have been transmitted to your terminal, and the copy of BARBl in working storage wouldbe scratched. As a result, it is advisable to save all files containing CHAIN statements prior toexecution to avoid loss of the file. In the preceding example, when the system encounters Statement 10 in the program BARBl, itwill transfer BARBl out of working storage, and load and execute BARB2. The user must callBARBl again if he wishes to make corrections or additions to that file. The CHAIN statement, combined with the statements that permit reading from and writing tofiles, provides greate


Size: 2554px × 978px
Photo credit: © Reading Room 2020 / Alamy / Afripics
License: Licensed
Model Released: No

Keywords: ., bookcentury1900, bookdecade1910, bookidbitsaversgem, bookyear1919