cdc_6500_survival_guide
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
cdc_6500_survival_guide [2021/03/15 23:04] – [Program source files] hc9 | cdc_6500_survival_guide [2022/02/25 06:11] – [Program source files] hc9 | ||
---|---|---|---|
Line 50: | Line 50: | ||
A basic understanding of the 6500 file system is necessary to use most IAF comands. | A basic understanding of the 6500 file system is necessary to use most IAF comands. | ||
- | **Permanent files** Permanent files are preserved by the system from their creation until their deletion by user command. Each permanent file is owned by a single user and is normally accessible only by its owner, though it is possible to make files accessible by other users as well. | + | * **Permanent files** |
+ | | ||
+ | * Two types of files are supported: | ||
+ | * **Direct access** | ||
+ | * Used for random access and database applications. | ||
+ | * **Indirect access** | ||
+ | * Common sequential access files, including program source files. | ||
- | Two types of files are supported: | + | * **Temporary |
+ | * Whenever an indirect access file is accessed, or a new indirect access file created, the system first makes a temporary copy of the file, to which are directed all references and updates to the file. The temporary file must be saved in order for changes to be applied to the permanent file. Unsaved changes will be discarded at the end of the user's session. | ||
+ | * A temporary file is //not// created when a //direct access// file is opened. Changes made to a direct access file are immediately applied to the permanent file. | ||
- | **Direct access** Used for random | + | |
+ | * The primary file is the temporary file, usually a program source file, that a user is viewing, modifying, or executing at a given time. Although a user session may simultaneously open multiple temporary files, a given user may have only one primary file at a time. | ||
+ | * The currently selected primary file automatically determines the user's active subsystem. When a new indirect | ||
- | **Indirect access** Common sequential access | + | |
- | + | * Local files are the set of temporary files and direct access files (permanent files) currently open by a particular job or user session. | |
- | **Temporary files** Whenever an indirect access file is accessed, or a new indirect access file created, the system first makes a temporary copy of the file, to which are directed all references and updates to the file. The temporary file must be saved in order for changes to be applied to the permanent file. Unsaved changes will be discarded at the end of the user's session. | + | |
- | + | ||
- | A temporary file is //not// created when a //direct access// file is opened. Changes made to a direct access file are immediately applied to the permanent file. | + | |
- | + | ||
- | **Primary file** The primary file is the temporary file, usually a program source file, that a user is viewing, modifying, or executing at a given time. Although a user session may simultaneously open multiple temporary files, a given user may have only one primary file at a time. | + | |
- | + | ||
- | The currently selected primary file automatically determines the user's active subsystem. When a new indirect access file is saved as a permanent file for the first time, the file system records the active subsystem at the time. Then when the file is selected as primary sometime later, the system automatically activates the original subsystem. | + | |
- | + | ||
- | **Local files** Local files are the set of temporary files and direct access files (permanent files) currently open by a particular job or user session. | + | |
File names my be up to seven alphanumeric (upper-case) characters and may not begin with a numeric character. The following file names are reserved by the system: | File names my be up to seven alphanumeric (upper-case) characters and may not begin with a numeric character. The following file names are reserved by the system: | ||
Line 114: | Line 115: | ||
Each programming subsystem includes a simple editing function for entering and modifying program source code in the primary file as follows: | Each programming subsystem includes a simple editing function for entering and modifying program source code in the primary file as follows: | ||
- | To add a source code line:Type a new line sequence number followed by a space and then a program statement. Source code lines will be stored and compiled/ | + | |To add a source code line:| |
+ | |Type a new line sequence number followed by a space and then a program statement. Source code lines will be stored and compiled/ | ||
+ | |||
+ | |To modify a source code line:| | ||
+ | |Type line sequence number of the program statement to be changed followed by a space and the modified program statement.| | ||
+ | |||
+ | |To delete a source code line:| | ||
+ | |Type the line sequence number followed immediately by the '' | ||
- | * In the BASIC subsystem, use line sequence numbers as the targets of "GOTO" | + | * In the BASIC subsystem, use line sequence numbers as the targets of '' |
* In the Fortran language subsystems (FORTRAN and FTNTS), the line sequence numbers are //not// the same as the line label numbers used by Fortran PRINT/ | * In the Fortran language subsystems (FORTRAN and FTNTS), the line sequence numbers are //not// the same as the line label numbers used by Fortran PRINT/ | ||
* In the Fortran language subsystems, program statement text Following the line sequence numbers may conform to or ignore standard Fortran column rules at the programmer' | * In the Fortran language subsystems, program statement text Following the line sequence numbers may conform to or ignore standard Fortran column rules at the programmer' | ||
- | * In the BASIC subsystem, program statement without a preceding line sequence number will be executed immediately and are not added to the primary file. This is useful for testing statements before modifying your program. Use "PRINT" | + | * In the BASIC subsystem, program statement without a preceding line sequence number will be executed immediately and are not added to the primary file. This is useful for testing statements before modifying your program. Use '' |
| '' | | '' | ||
Line 127: | Line 135: | ||
===== Text Editor ===== | ===== Text Editor ===== | ||
- | Although the programming subsystems include basic functionality for entering and modifying program source code in the primary file, the NOS Text Editor program ("EDIT") provides both advanced editing functions and the ability to edit other local files besides the primary file. | + | Although the programming subsystems include basic functionality for entering and modifying program source code in the primary file, the NOS Text Editor program ('' |
- | | "EDIT"\\ "EDIT,"//file// | Edit the primary file with Text Editor. The second form is for editing other local files. | | + | | '' |
- | | "END" | + | | '' |
===== Messaging ===== | ===== Messaging ===== | ||
Line 136: | Line 144: | ||
Use the ACCESS subsystem to communicate with other users connected to the 6500. | Use the ACCESS subsystem to communicate with other users connected to the 6500. | ||
- | | "ACCESS" | + | | '' |
| Enter the ACCESS subsystem | | | Enter the ACCESS subsystem | | ||
- | | "USER,"//userID// | Find connected user's terminal port number | | + | | '' |
- | | "DIAL,"//port//","//message// | Send message to user. | | + | | '' |
===== Other System Commands ===== | ===== Other System Commands ===== | ||
- | | "DAYFILE" | + | | '' |
- | | "PASSWOR,"//old//","//new// | Change user password from //old// to //new// | | + | | '' |
===== Disconnecting ===== | ===== Disconnecting ===== | ||
- | | "BYE"\\ "GOODBYE"\\ "LOGOUT" | + | | '' |
- | | "HELLO"\\ "LOGIN" | + | | '' |
===== File Sharing ===== | ===== File Sharing ===== | ||
Line 155: | Line 163: | ||
Share permanent files with other 6500 users. | Share permanent files with other 6500 users. | ||
- | | "CHANGE,"//file//"/CT=PU,M="//mode// | Give access mode //mode// to //file// to all 6500 users. \\ Permission // | + | | '' |
- | | "PERMIT,"//file//","//user//["="// | + | | '' |
- | | "CATLIST,UN="//user// | List permanent files in // | + | | '' |
- | | "OLD,"//file//"/UN="//user// | Open permanent file //file// in // | + | | '' |
===== File Transfer ===== | ===== File Transfer ===== |
cdc_6500_survival_guide.txt · Last modified: 2022/12/05 06:33 by hc9