User Tools

Site Tools


cdc6500_survival_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cdc6500_survival_guide [2019/09/11 03:58]
cvena325 [Program source files] add FTNTS example
cdc6500_survival_guide [2020/08/12 06:12] (current)
hc9 [Local files]
Line 7: Line 7:
 This document is a short guide for those interested in exploring the 6500's interactive command environment. This document is a short guide for those interested in exploring the 6500's interactive command environment.
  
-//(Note: The primary author worked briefly with a CDC NOS computer 30 years ago, but all information below is based on study of the referenced manuals and experimentation on LC's 6500. We apologizes for any inaccuracies and welcome corrections and improvement suggestions.)//+//(Note: The primary author worked briefly with a CDC NOS computer 30 years ago, but all information below is based on study of the referenced manuals and experimentation on LC's 6500. We apologize for any inaccuracies and welcome corrections and improvement suggestions.)//
  
 ===== Connecting ===== ===== Connecting =====
Line 79: Line 79:
 Local files are the set of temporary files and direct access files (permanent files) currently open by a particular job or user session. 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 may 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:
  
 | INPUT | P8 | SCR3 | | INPUT | P8 | SCR3 |
Line 143: Line 143:
 | ''RUN\\ | ''RUN\\
 RNH\\ RNH\\
-RUN,MI=12625'' | For the BASIC subsystem, runs the primary file program. The second form omits printing of the system header. The third form is required to compile and run programs in the FTNTS subsystem. (The ''MI'' argument sets the compiler field length. As of this writing it is unknown if value 12625 is valid for all programs.) //Note: As of this wiriting, the author has not yet succeeded in compiling nor running a program with the FORTRAN subsystem.// |+RUN,MI=12625'' | For the BASIC subsystem, runs the primary file program. The second form omits printing of the system header. The third form may be needed to compile and run more complex programs. (The ''MI'' argument sets the compiler field length. As of this writing it is unknown if value 12625 is valid for all programs.) |
  
-** FTNTS Example **+** FORTRAN subsystem example** 
 +Here the FORTRAN subsystem is selected, an existing program is loaded, listed, and run.  
 +<code> 
 +FORTRAN 
 +READY. 
 + 
 +OLD,TEST2 
 +LIST 
 + 
 + 99/09/10. 21.13.26. 
 +PROGRAM   TEST2 
 + 
 +00100 PROGRAM TEST2(OUTPUT) 
 +00110 INTEGER J 
 +00120 REAL Z,W,Q,Q2,Q3 
 +00130 Z=0.0 
 +00140 Q=0.0 
 +00150 DO 210 J=1,25 
 +00160 Z=SQRT(Q)+Z 
 +00170 W=SQRT(Q) 
 +00180 Q2=Q*Q 
 +00190 Q3=Q*Q*Q 
 +00200 PRINT 190,J,W,Q2,Q3 
 +00210 190 FORMAT(1X,I9,3(3H   ,F12.6)) 
 +00220 Q=Q+1.0 
 +00230 210 CONTINUE 
 +00240 W=Z/25.0 
 +00250 PRINT 230,W 
 +00260 230 FORMAT(1X,5HAVG  ,F12.6) 
 +00270 END 
 + 
 +READY. 
 + 
 +RUN 
 + 
 + 99/09/10. 21.13.38. 
 +PROGRAM   TEST2 
 + 
 +               0.             0.             0. 
 +               1.000000       1.000000       1.000000 
 +               1.414214       4.000000       8.000000 
 +... 
 +        24       4.795832     529.000000   12167.000000 
 +        25       4.898979     576.000000   13824.000000 
 + AVG      3.225351 
 + END. 
 + 
 +SRU      0.447 UNTS. 
 + 
 +RUN COMPLETE. 
 + 
 +READY. 
 +</code> 
 + 
 +** FTNTS subsystem example **
 Here the FTNTS subsystem is selected, an existing program is loaded, listed, and run. Note the way the FORTRAN line numbers 190, 210, and 230 as specified in addition to the editing line numbers which do not make up part of the program.  Here the FTNTS subsystem is selected, an existing program is loaded, listed, and run. Note the way the FORTRAN line numbers 190, 210, and 230 as specified in addition to the editing line numbers which do not make up part of the program. 
 <code> <code>
Line 200: Line 254:
 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'') provides both advanced editing functions and the ability to edit other local files besides the primary file.
  
-| ''EDIT\\ +| ''EDIT''\\ ''EDIT'',//file//\\ ''EDIT'',//file//,//mode// | Edit the primary file with Text Editor. The second form is for editing other local files. The third form is for specifying a file mode; ''N''=normal, ''AS''=ASCII.|
-EDIT,''//file// | Edit the primary file with Text Editor. The second form is for editing other local files. |+
 | ''RESET''                 | Reset current line pointer to first line. | | ''RESET''                 | Reset current line pointer to first line. |
 | ''SET'';                | Set the current-line pointer by moving it +/- "n" lines relative to the current position. | | ''SET'';                | Set the current-line pointer by moving it +/- "n" lines relative to the current position. |
Line 212: Line 265:
 | ''RS:''/abc/,/xyz/;     | Replace string "abc" with "xyz" in the current line "n" times| | ''RS:''/abc/,/xyz/;     | Replace string "abc" with "xyz" in the current line "n" times|
 | ''END'' | Exit Text Editor | | ''END'' | Exit Text Editor |
 +
 +Here is an example session using the ''EDIT'' command to create and edit a simple ASCII text file. 
 +
 +<code>
 +/EDIT,test,AS  
 + BEGIN TEXT EDITING.
 +? add
 + ENTER TEXT.
 +? /This is a test file.
 +? It has multiple lines of text.
 +? This file demonstrates the edit command.
 +? This is line 4./
 + READY.
 +? list;*
 +This is a test file.
 +It has multiple lines of text.
 +This file demonstrates the edit command.
 +This is line 4.
 + -END OF FILE-
 +? add
 + ENTER TEXT.
 +? /Pointer at line 1, we insert a new line 2./
 + READY.
 +? list;*
 +This is a test file.
 +Pointer at line 1, we insert a new line 2.
 +It has multiple lines of text.
 +This file demonstrates the edit command.
 +This is line 4.
 + -END OF FILE-
 +? set;4
 +? list
 +This is line 4.
 +? delete
 + -END OF FILE-
 +? add
 + ENTER TEXT.
 +? /This is line 5./
 + READY.
 +? reset
 +? list;*
 +This is a test file.
 +Pointer at line 1, we insert a new line 2.
 +It has multiple lines of text.
 +This file demonstrates the edit command.
 +This is line 5.
 + -END OF FILE-
 +? end
 + END TEXT EDITING.
 +$EDIT,TEST,AS.
 +/SAVE,test
 +</code>
  
 ===== Batch ===== ===== Batch =====
cdc6500_survival_guide.1568174336.txt.gz · Last modified: 2019/09/11 03:58 by cvena325