ArticleslgStudy

computer science

CALL/360:BASIC

CALL/360:BASIC is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand CALL/360:BASIC rather than just read about it. In short: CALL/360:BASIC is an IBM dialect of the BASIC programming language for the System/360 and later platforms. It was based on mid-1960s versions of Dartmouth BASIC but added a number of extensions.

Key takeaways

  • CALL/360:BASIC belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect CALL/360:BASIC to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of CALL/360:BASIC from memory before moving on to harder problems.

Reference excerpt

CALL/360:BASIC is an IBM dialect of the BASIC programming language for the System/360 and later platforms. It was based on mid-1960s versions of Dartmouth BASIC but added a number of extensions. Most of these were related to file handling, which, at that time, Dartmouth lacked. It also added support for the mathematical symbols found on some IBM terminals, so that <= could be entered directly as ≤. Differences are otherwise minor.

History CALL/360:BASIC was announced in 1968, along with several other languages for the system including APL and FORTRAN and the Datatext markup language based text editor. Early advertizing for the system boasted that one could "Start learning CALL / 360 : BASIC after breakfast and you can share our computer before lunch". The CALL/360 suite was developed within IBM's Information Marketing department. Initially, the products were considered proprietary and could only be accessed via the online service. Customer demand forced them to offer these products to other System/360 users, which they did by releasing it on an "as is" basis with no support. Later the same year, IBM transferred this department, along with the rest of its timesharing services, to the Service Bureau Corporation (SBC), including the CALL/360 operating system (later known as CALL/OS) and CALL/360:BASIC. Manuals after that date refer to the language as an SBC product. In 1973, SBC was itself transferred to Control Data Corporation as part of a long running anti-trust lawsuit.

Description CALL/360:BASIC is almost identical to Dartmouth BASIC the Fourth, including support for the advanced MATrix math features. It differs primarily in its support of file handling.

Basics The language included the commands LET, PRINT, END, FOR...NEXT with an optional STEP, GOTO, GOSUB...RETURN, IF...THEN, IF...GOTO, DEF, READ, DATA, RESTORE DIM, and REM. To this list, it added computed GOTO of the form GOTO 100,200,300 ON X. Note that the THEN in an IF statement can only be followed by a line number, the idea of allowing arbitrary statements after THEN did not appear until later. REMarks are always shown with a colon in the manual, REM: or REMARK:, but it is not clear if these were required. The RESTORE, END and STOP commands could also be followed by a comment string, where a colon was not required. PRINT was expanded with PRINT USING followed by a line number. The line referred to started with a colon and then a series of formatting strings. This series of strings was known as an "image". Items to be printed could be separated by commas or semicolons, with commas having "print zones" 18-characters wide. A new command, PAUSE, stopped the program with a statement PAUSE AT LINE 35 and then waited for the user to enter text, which was ignored. The end-of-line character caused the program to continue. It could also be followed by a comment in the source. It also included the same basic set of math instructions as Dartmouth, +, -, * and /, as well as the up-arrow for exponents and adding the two-asterisk form, 10**9. Logical operators included the standard set of =, >, =>, <, <= and <>, as well as the special character versions, ≥, ≤, ≠. It included the standard set of mathematical functions from Dartmouth, adding COT, SEC, CSC, ASN, ACS, HSN, HCS, HTN, LTW for base-2 logs, and LGT for base-10. It also included DEG and RAD functions to convert between degrees and radians, and three pre-defined internal constants, &PI, $E and $SQR2, which could be used instead of typing in the actual numbers. CALL/360 included string variables, only recently introduced to Dartmouth, using the same dollar-sign notation. It added the ability to delimit string constants with either single or double quotes, as well as the ability to type two of either character within a string to include a single character of that type. For instance, "ABC""DE" represents ABC"DE. Strings were broken into 18-character lengths internally, and strings that did not use up an entire 18-character record were padded with blanks, meaning "" would be interpreted as 18 spaces.

Arrays and matrix math Like early versions of Dartmouth, CALL/360:BASIC supported one and two dimensional arrays, with the lower index always being 1. Thus an array defined using DIM A(3) contains three values, A(1) through A(3). CALL/360 also added the ability to define string arrays, with each entry being a single 18-character string. In contrast to Dartmouth, it does not appear variables were always DIMed; in Dartmouth one could refer to A(5) without dimensioning A, in which case it had a default behaviour of being DIM A(10). The manual does not explicitly say CALL/360 does not do this, but it does state variables cannot be used in matrix operations without being dimensioned. A maximum of 29 numeric arrays were allowed in a program, with the total sum of the elements across all arrays being no more than 7167. CALL/360:BASIC included most of the matrix commands from Dartmouth, including the ability to perform basic math on a matrix as a single operation, like MAT A = A * 10 where A is an array that will then have all of its elements multiplied by 10. It also included the functions CON, IDN ZER, INV and TRN. Data could be loaded into a matrix with MAT READ and output with MAT PRINT. To these original commands they also added GET and PUT, which were used to read or write all the elements in a matrix to or from a file.

Files The major addition to CALL/360:BASIC was a usable file handling system. This started with the OPEN 10, 'filename' which opened a file and assigned it to the provided file number, 10 in this case, which could be an expression. Reading from the file was accomplished with GET 10: A, B, C in the same general fashion as the READ statement. Writing was handled by the otherwise identical PUT. The file pointer could be moved back to the start of the file with RESET followed by one or more file numbers. There was no way to specify a position within a file. CLOSE with a similar list of one or more file numbers freed the file handles.

Example The following program opens the file TEMPFILE for input as file handle 10, and then reads lines of data containing a product name and four sales prices in a loop. Notice that the loop is not terminated, instead, this program ends when it runs out of data and causes a END OF FILE error. How control is passed to line 70 at that point is not explained in the manual. The output to the screen is formatted using the image on line 50.

Notes

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with CALL/360:BASIC

Start with the simplest possible case. Write down what CALL/360:BASIC claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to CALL/360:BASIC before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about CALL/360:BASIC ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of CALL/360:BASIC

In research
CALL/360:BASIC appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses CALL/360:BASIC in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
CALL/360:BASIC is common in secondary-school and first-year university syllabi. It links to neighbouring topics BASIC programming language, IBM software, so understanding it makes those chapters shorter.
In everyday life
Look for CALL/360:BASIC outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “CALL/360:BASIC” →

How to study CALL/360:BASIC in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what CALL/360:BASIC means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain CALL/360:BASIC out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is CALL/360:BASIC in simple terms?

CALL/360:BASIC is an IBM dialect of the BASIC programming language for the System/360 and later platforms. It was based on mid-1960s versions of Dartmouth BASIC but added a number of extensions.

Why does CALL/360:BASIC matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study CALL/360:BASIC?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on CALL/360:BASIC.

Tags

  • BASIC programming language
  • IBM software

Keep exploring