An Introduction to Fortran Programming

Total Page:16

File Type:pdf, Size:1020Kb

An Introduction to Fortran Programming --,-"N* ,,-.0 IDOCOIRNT prsunt 'ItO 193361 . $1 029 526 AUTHOR, Fisher D. D.: And Others TITLE An,Int;oduc.tion,to Fortran Programming': An XPI Approach: INSTITUrION Oklahoma Statv Univ*, Stillwater, S'PONS AGENCY ' National science Foundation, Washin-gton: PUB DATE 71 GRANT NSP-GY19310(EN) NOTE '3B2p. 0 0 r.DRS PRICE HF011PC16 Plus Postage. DESCRIPTORS . Computer 'Oriented Programs; Computer Science; *Compoter Science Education; Flow Charts; Higher -FidmeatIen: *IwavidualizedInstrqcLionl Invut 0-u-tputt .*Pacing; *Programing: Programing Languages; Programing Problems - IDENTIFIERS *FORTRI Programing.Language 111STRACT This text.is 'desi'gned tb give individually paced ins ion in Fortran Programing. The text contains fifteen units. Unit :4tles Include: Flowcharts, Input and Output, Loops, and ' Debugging. Also ingluded.is an extensive set of appendices. These were designed to coritain a great deal of practical informatiOn necessary to the codrse. These appendices include iristructions for operating card readers, listers, printers:and terminals,as well as a 'omputer science glossary. (MK) 0 1. etiv r 4 ,ReproductiOns.lupplied by"EDPS are the1beSt thatgan be mada * * fr9m the original document. *****t************************* 1NTR ts r.. __. ORTRAN ". r AN INDIVI WALLY PACED ', INSTRUC ION APPROCH A a, a II HI\41'.',It I 'Hi 'H PI, , I tic , ti % QC PAR TME NT OF Ha Al TH MA' t * DU( ATION J. Nit lr ARE IIA t'tI 4 ,AjIi 1.) HY NA TIONAl INSTVUTE OK /1 f DUC AT ION MGkryLCbckett,(5 t.. N fIASIU f N I f KA. v 141I .v1 f (IAA t..I u .oN .)14,f4t.ANI/ A (,{7....N P (WI N Mg ti,Nit".N, 1, (Jol.a NI N.,A41,1 141 I l.. , A NA )7.4 A; IN.,1I o,I f 10,1 '..)I I N1'. 1 1 (1 A ,N !11N( IN 14.1l F. )f,,, i; laigoma StareUn)versity. anuary; 1972 6,9parlmentof Computing and InformationScienoos &XL GENERAL 17 FORTRAN PROGRAMS S. 14 ARITIRIM4 COMTE& Cowers ,IEBUaGING CONCEPTS r \ FORMATS 11- I/0 SURROGRAMS LOQPS; 10 ITERATION ARRAYS , 9 SUBSCRIPTED VARIABLES CONDITIONAL BRANCHES READ WRITE IMPB4CRNG 5. tROGRAM. DOCUMENTATION MINING A SIMPLE ..TT RTRAN PROGRAMING UNCONDITION-4 HIRARCHY . AL BRANCHES STATEMENT 'NUMBERS CONSTANFS 3 VARIABLES - FLOWCHARTS EXPRESSIONS ASSIGNMENT ?it STATEMENTS; yr- of.ass. Kt. ve4ia 4.6431 .W4 "°.t" I 4 TERMINAL FAMIL-I. S. IARIZATION OMRCARDS ammidiqte AUCOQS0 Wit) er .1t N\ /VI Introduction 'to Fortran Programming . An Approach -^, Copyright 1911 D. D. rishor T. L. Bailey D. H. Seeger OklahoMa etate Univelity All Rights Reserved , PrtnEed in the United.States of America Composed and Brinted by the Division of Engineering 0%, Oklahoma 'State University Stillwater, Oklahoma 74074 4 No part of th.4 material Wilay be used or reproduced ' in any manner Obatsoever without permission,.exceptin the case of brief quotations'embodied in critical.articles and reviews. V4Revised December, 1971) a 4 is,- -- za=.34, , * PREFACE The main objectiveof the Fortran pi2Ogramming units isto de- ;. velop the necessaty pkillsto ( ) translate a problem.stateventto a programming problem statement; (ii) developa debugged progra'M that obtains a "workable" t. solution for the original problem;, (iii) prepa e a description of the programso that others may malcc;use of the program, or the author mayuse the pro- gram at a later date with a minimum inVestment in time; (iv) accomplish the-previous three skills with,reasoilable degrees of efficiency.. To accomplish'0.5 and (ii) it isnecessary tp learn a computer --, programming language ond to practice thetranslation phase fô x. a variety of problems. Preparing pkogram descriptions and develop- \ ins efficiency will be emphasized at each step. Several programs . will be written that may be usedas problem salving tools in sub°.t' sequent courses. A programming language isa language used to describe an also- rithm, that is, a procedure for solvinga problem, in such a way ' that a computer cian interpret the'algorithmand can carry,out each ' of the :s4ops prescribed by the algorithm. Programming languages vary in complexity. In general the languages thatare easiest for . 7 the machine to uae require considerableknorledge of the computer pn the programmer'll part. On the other hand, languages thatare .r easiest for 0.11,1 prolerammer touse generally require the- computer to translate Ole program from the-source languageto. machine len- : suage. The translation process'fromsource language to.machine or object languae, is a task thatcomputers do reasonabf well; con-. sequently.,alost of the programs written todayare_written ln so- called "higher level" programming languages,which.invoke the com-. puter to trawl-late as well as to oompute. Fortran (an acronym obtained from formulatranslator) is an example of a higher level programming language-It is the most widely ubed programming langtage for scientificapplications. There are many variationsor dialects of Fortran. Ydu should be aware that different computer manufacturers support different dialects, one manufacturer may support different diale.cts,and users maycrletheir own dialeas. In order to be able to move programs from one computer installation to another', it isnecessary - to hav \a set of standards. Appendix I gives comparisons between. a USAstalardFortran'and,other available Fortrans. The U64S BASIC Fortran is a subset bf USAS FULL Fortran. It is likely that you will discover useful features bf some of thecompilers-that are not included in USAS Fortran. If you use those featureit,you do so flat your own risk. Someeatures notincluded iUSAS.Fktran are very desirable; consequently, if it is unlikely that the pro.:- gram will haye to be run on different computers, it is wortfiWhilm * to make use of those featpres. On the other hand, if a prosram'i6 todbe run at several.differentcomputer installations, oeilly those ' ' AtZ' 1. features liseed in USAS Fortranshould bq used. 7C, Thils4is an. examiile of one ofmany possible choices yoU may make while completing thecomputer science units:\ Other decisions willlbe required to'geta program to "work," to transforma work- ing program to an effici ntprogram, to "tune" a program, etc. :An aspect of computinemany find challenging is that,in generalt.there . , _ . is to best way to attack'a new problem. You will find this to be true in some of the programs you attemptto develop. Othelr higher level,progreTming languagesin widgspread use- t.. , are listed below.. Cobol a business language RPG a report generator used primariLy for business appliNtions PL/I combines features of Algol, Fortran andGobol Algol a scientific language Basic a versiOn of Fortran used in cotpinction with. typewriter like eerminals APL .a mathematical language Assembler a form-of machine language a everal dndergraduate and graduatecourses make use of these and other programming languages..Translator's of varying sophistica-. tio4 are req9kre convert programs l'rom these source languages 1 to machine languege Take some time to examine the Organization ofthp book.' The 1:nstruaional materialsare organized into units in the text.. 4 Each unit contains a daacriptive title,a rationale explaining..the purpose for includingthemaier l in the uniti'tha bihavioral ,e is 7' % objective thaI.states what5Tu will be able to perform afteryou have mastered the material inthe,unit,.prerequisites for the unit, - a series of activities desrgned to point you-inth,directiepn of the objective and helpyou. attain it, some self evaluation matbri-:- als sp that' you can assess for yourself wheth(4: you have attained. the objective, assessment tasks withwhich you demonstrate toyour., instructor alat'you.have:fattainag.theLohje"ctiveandpnallyin', structions telling you what to donext. The book.also containsa rather extensive set of appendic-es. - Read the titles of the'appendicesin the-Table of Contents, and thumb'through them. They contain a great deal pfpractical infor- mation that you Will need throughout thecourses; ,Particularly at this time'be aWare of the appendixcontaining tWe glossary of terniS. If terms which you do not underssandappear in the text, look for th'em in the glossary. If there are omitted terms Which,youthink should be included in the glossary,write them down and give them' - to your instructor. The page numbers in the textare designed to be usedfor quick 1. referencing. The first number is the unit number, andthe second nuMbet liumbers the page insequence in tfiat unit: For exabple, page 8.3 is page 3 r Unit 8. Adpendices are'numberedsimilarly except that Roman numerals are used. For,example, page V.2 ispage 2 of Appendix V. The cover of the book shows thesequence of units 'forthe course in the fotm of a fldw chait (discutoi;ed furtherin Unit 2). This flOW chart will help y.ou toassess your progress 'toward tilt ;\cterminalunit. iv A .eve - Unit1 requires a card l'eader with optical mark read (OMR) capability. If this feature is not available, then Unit Imay be 4,s 1 omitted without disturbini the sequence of t1ie material. 4r. soft) 1.r se 1 ro ,9 It TABLE OP CONTENTS . Unit 1. Becoming Acquainted With the Computer 2. Flowcharts 3. Variables, Consta4ts, txpressions.and AssignmentStatements 4. Statement thnlbers ancPUnconditional Branches 5 4 Preparing a ?iob for Runningon the Computer 6. fnput and Output ! 8. Conditipnal Branching or Transfer Statements 9.: Arrays and Subscriptea Variables 10. Lobps )( 1Y. Input, Output, Formats 12. ,Arithmetic Concepts 13, Subprograms 14. Debuggimg 16, Computer Concepts 17. General Forti:an Programs Units 117 and #13 are omitted% APPENDIX,J. Comparisons of Various Fortran Implemeritations APPENDIX II: Computeer Science Closaary APPENDIX III. Running a WATFIV ...lob on the IBM System/360 Model 65 User Terminal 'APPENDIXIV. Additional Instructions for Operating the IBM 2501 Card Reader APPENDIX V. Instructions for Using the IBM 1403 Printer . APPENDIX VI. How to.Get an 80/80 Listing With the *ystem/360 a User TermUal a 4 vi 4 APPENDIX VII. Running Fortran Jobso the IBM 1130 Computer APPENDIX VIII, User Terminal WATFIV APPENDIX IX.
Recommended publications
  • At—At, Batch—Execute Commands at a Later Time
    at—at, batch—execute commands at a later time at [–csm] [–f script] [–qqueue] time [date] [+ increment] at –l [ job...] at –r job... batch at and batch read commands from standard input to be executed at a later time. at allows you to specify when the commands should be executed, while jobs queued with batch will execute when system load level permits. Executes commands read from stdin or a file at some later time. Unless redirected, the output is mailed to the user. Example A.1 1 at 6:30am Dec 12 < program 2 at noon tomorrow < program 3 at 1945 pm August 9 < program 4 at now + 3 hours < program 5 at 8:30am Jan 4 < program 6 at -r 83883555320.a EXPLANATION 1. At 6:30 in the morning on December 12th, start the job. 2. At noon tomorrow start the job. 3. At 7:45 in the evening on August 9th, start the job. 4. In three hours start the job. 5. At 8:30 in the morning of January 4th, start the job. 6. Removes previously scheduled job 83883555320.a. awk—pattern scanning and processing language awk [ –fprogram–file ] [ –Fc ] [ prog ] [ parameters ] [ filename...] awk scans each input filename for lines that match any of a set of patterns specified in prog. Example A.2 1 awk '{print $1, $2}' file 2 awk '/John/{print $3, $4}' file 3 awk -F: '{print $3}' /etc/passwd 4 date | awk '{print $6}' EXPLANATION 1. Prints the first two fields of file where fields are separated by whitespace. 2. Prints fields 3 and 4 if the pattern John is found.
    [Show full text]
  • TDS) EDEN PG MV® Pigment Ink for Textile
    Technical Data Sheet (TDS) EDEN PG MV® Pigment Ink for Textile Product Description: Applications: EDEN PG MV water based pigment Ink is ideal for high-speed direct digital printing on all standard fabrics available on the market. The ink prints on all types of fabrics with equal quality and coverage without color shifts or patches. EDEN PG MV Pigment Ink may be used on cotton, cotton blends, polyester, polyamide (nylon) and treated & untreated fabrics. EDEN PG MV is ideal for a wide range of applications including sportswear, footwear, fashion, home décor and home textile and is designed for indoor and outdoor applications. This ink is manufactured using cutting edge technology and • Home textile • Bags • Indoor furnishing high-performance pigments, for optimal ink fluidity and • Décor • Sport apparel • Fashion & apparel printability through piezo printheads without bleeding or • Footwear migration. Compatible Print Head Technology: Ricoh Gen 4 & Gen 5 Industrial print heads based printers. Pre-treatment: The use of Bordeaux EDEN PG™ OS® (pretreatment liquid) is Product Line: recommended in order to achieve higher chemical attributes (see table below for comparison). The pretreatment process for fabrics is done offline using a standard textile padder. Red Cleaning Print procedure: Cyan Magenta Yellow Black Magenta Liquid The printing process can be done either inline or in individual segments. Inline printing allows the printed fabric to be fed Material Compatibility: through a standard textile dryer directly. Alternatively, if the printing stage is separated from the drying stage, drying is • Cotton required before rolling the fabric. • Viscose • Polyester • Lycra Drying Working Parameters: • Silk Recommended drying time: 3 minutes • Polyamide Recommended temperature: 150°C (302°F) • Leather • Synthetic leather Post-treatment: No chemical post treatment is needed.
    [Show full text]
  • On-Line Computing with a Hierarchy of Processors
    University of Pennsylvania ScholarlyCommons Technical Reports (CIS) Department of Computer & Information Science December 1968 On-Line Computing With a Hierarchy of Processors Richard P. Morton University of Pennsylvania Follow this and additional works at: https://repository.upenn.edu/cis_reports Recommended Citation Richard P. Morton, "On-Line Computing With a Hierarchy of Processors", . December 1968. University of Pennsylvania Department of Computer and Information Science Technical Report No. MS-CIS-69-13. This paper is posted at ScholarlyCommons. https://repository.upenn.edu/cis_reports/804 For more information, please contact [email protected]. On-Line Computing With a Hierarchy of Processors Abstract Time shared computer systems have been based upon the two techniques of multiprogramming and swapping. Multiprogramming is based on restricting each program to a portion of the total computer memory. Swapping requires considerable overhead time for loading and unloading programs. To alleviate the size restriction due to multiprogramming, segmentation is employed, resulting in fact in vastly increased swapping. A new system architecture is proposed for time shared computing that alleviates the high overhead or program size restriction. It utilizes a hierarchy of processors, where each processor is assigned tasks on the basis of four factors: interactive requirements, frequency of use, execution time, and program length. In order to study the hierarchical approach to system architecture, the Moore School Problem Solving Facility (MSPSF) was built and used. The study of the manner of operation and the reactions of the users clarified and defined the Hierarchy of Processors system architecture. The Moore School Problem Solving Facility was implemented on second generation equipment, the IBM 7040, and therefore it is not possible to adequately compare the efficiency with third generation computers operating in a swapping mode.
    [Show full text]
  • UNIX Commands
    UNIX commands ls list the contents of a directory ls -l list the content of a directory with more details mkdir <directory> create the directory <directory> cd <directory> change to the directory <directory> cd .. move back one directory cp <file1> <file2> copy the file <file1> into <file2> mv <file1> <file2> move the file <file1> to <file2> rm <file> remove the file <file> rmdir <directory> delete the directory <directory> man <command> display the manual page for <command> module load netcdf load the netcdf commands to use module load ferret load ferret module load name load the module “name” to use its commands vi <file> read the content of the file <file> vimdiff <file1> <file2> show the differences between files <file1> and <file2> pwd show current directory tar –czvf file.tar.gz file compress one or multiple files into file.tar.gz tar –xzvf file.tar.gz extract the compressed file file.tar.gz ./name execute the executable called name qsub scriptname submits a script to the queuing system qdel # cancel the submitted job number # from the queue qstat show queued jobs qstat –u zName show only your queued jobs Inside vi ESC, then :q! Quit without saving ESC, then :wq Quit with saving ESC, then i Get in insert mode to edit text ESC, then /word Search content for word ESC, then :% Go to end of document ESC, then :0 Go to beginning of document ESC, then :set nu Add line numbers ESC, then :# Go to line number # N.B.: If inside vimdiff, you have 2 files opened, so you need to quit vi twice.
    [Show full text]
  • LATEX for Beginners
    LATEX for Beginners Workbook Edition 5, March 2014 Document Reference: 3722-2014 Preface This is an absolute beginners guide to writing documents in LATEX using TeXworks. It assumes no prior knowledge of LATEX, or any other computing language. This workbook is designed to be used at the `LATEX for Beginners' student iSkills seminar, and also for self-paced study. Its aim is to introduce an absolute beginner to LATEX and teach the basic commands, so that they can create a simple document and find out whether LATEX will be useful to them. If you require this document in an alternative format, such as large print, please email [email protected]. Copyright c IS 2014 Permission is granted to any individual or institution to use, copy or redis- tribute this document whole or in part, so long as it is not sold for profit and provided that the above copyright notice and this permission notice appear in all copies. Where any part of this document is included in another document, due ac- knowledgement is required. i ii Contents 1 Introduction 1 1.1 What is LATEX?..........................1 1.2 Before You Start . .2 2 Document Structure 3 2.1 Essentials . .3 2.2 Troubleshooting . .5 2.3 Creating a Title . .5 2.4 Sections . .6 2.5 Labelling . .7 2.6 Table of Contents . .8 3 Typesetting Text 11 3.1 Font Effects . 11 3.2 Coloured Text . 11 3.3 Font Sizes . 12 3.4 Lists . 13 3.5 Comments & Spacing . 14 3.6 Special Characters . 15 4 Tables 17 4.1 Practical .
    [Show full text]
  • Fortran Reference Guide
    FORTRAN REFERENCE GUIDE Version 2018 TABLE OF CONTENTS Preface............................................................................................................ xv Audience Description......................................................................................... xv Compatibility and Conformance to Standards............................................................ xv Organization................................................................................................... xvi Hardware and Software Constraints...................................................................... xvii Conventions................................................................................................... xvii Related Publications........................................................................................ xviii Chapter 1. Language Overview............................................................................... 1 1.1. Elements of a Fortran Program Unit.................................................................. 1 1.1.1. Fortran Statements................................................................................. 1 1.1.2. Free and Fixed Source............................................................................. 2 1.1.3. Statement Ordering................................................................................. 2 1.2. The Fortran Character Set.............................................................................. 3 1.3. Free Form Formatting..................................................................................
    [Show full text]
  • Systems IBM 1130 Bibliography
    GA26 -5916-1 0 File No. 1130-00 Systems IBM 1130 Bibliography This bibliography lists and describes all technical manuals and related materials needed by those who plan for, install, program, or operate the IBM 1130 Computing System. Order numbers, titles, current status, subject codes, and abstracts of the publications are provided. This bibliography is regularly updated to include new or revised publications pertaining to this systems reference library. Eleventh Edition (December 1973) This is a major revision of, and supersedes, GA26 -5916-9. The listings and abstracts are com­ pletely updated; and in Part 3, which was introduced in the Tenth Edition, the subject code of each publication has now been added to the left of its order number. Requests for IBM publications should be made to your IBM representative or to the IBM branch office serving your locality. A form for readers' comments is provided at the back of this bibliography. If the form has been removed, comments may be addressed to IBM Corporation, Dept. 77 A, 1133 Westchester Avenue, White Plains, New York 10604. Comments and suggestions become the property of IBM. Page of GA26-5916-1 0 Updated Sept. 19, 1974 By TNL: GN20-1131-0 Preface For each major IBM data processing system, publica­ Part 1 tions useful in planning, programming, installing and In Part 1, the subject code listing, one code is as­ operating that system are assembled in a system signed to a publication. Items within the cluster for bibliography. each code are in sequence. Normal sequencing is alphameric, by the most apparent keywords in the Organization of Bibliography titles of the manuals.
    [Show full text]
  • SPSS to Orthosim File Conversion Utility Helpfile V.1.4
    SPSS to Orthosim File Conversion Utility Helpfile v.1.4 Paul Barrett Advanced Projects R&D Ltd. Auckland New Zealand email: [email protected] Web: www.pbarrett.net 30th December, 2019 Contents 3 Table of Contents Part I Introduction 5 1 Installation Details ................................................................................................................................... 7 2 Extracting Matrices from SPSS - Cut and Paste ................................................................................................................................... 8 3 Extracting Matrices from SPSS: Orthogonal Factors - E.x..c..e..l. .E..x..p..o..r.t................................................................................................................. 17 4 Extracting Matrices from SPSS: Oblique Factors - Exce.l. .E..x..p..o..r..t...................................................................................................................... 24 5 Creating Orthogonal Factor Orthosim Files ................................................................................................................................... 32 6 Creating Oblique Factor Orthosim Files ................................................................................................................................... 41 3 Paul Barrett Part I 6 SPSS to Orthosim File Conversion Utility Helpfile v.1.4 1 Introduction SPSS-to-Orthosim converts SPSS 11/12/13/14 factor loading and factor correlation matrices into the fixed-format .vf (simple ASCII text) files
    [Show full text]
  • Computer Technology History
    Computer Technology History The affects of technology on our society. After completing this lesson, you will know: The history of computers from the 1940s up to the present. The future of computing. The many ways in which computers are used in modern life. How to make computers accessible to persons with disabilities. How computers are used in business and education. First Off…What are Computers? A Computer is an electronic device that receives data (input), processes data, stores data, and produces a result (output). Software is the instructions and/or programs that control the computer. Atanasoff-Berry Computer 1939 The first computing machine to use electricity, vacuum tubes, binary numbers and capacitors was created. The capacitors were in a rotating drum that held the electrical charge for the memory. History of Computing 1940s The first computers were built for breaking enemy codes in WWII The first all-electronic computer was developed during the 1940s. MARK series - 1944 Howard Aiken and Grace Hopper designed the MARK series of computers at Harvard University. The MARK series of computers began with the Mark I in 1944. Imagine a giant roomful of noisy, clicking metal parts, 55 feet long and 8 feet high. The 5-ton device contained almost 760,000 separate pieces. Used by the US Navy for gunnery and ballistic calculations, the Mark I was in operation until 1959. Vacuum Tube The vacuum tube was used to amplify voice and music. However, the tubes consumed power, created heat, burned out quickly, and required high maintenance. “Debugging” In the 1940s, computers were housed in buildings with no air conditioning.
    [Show full text]
  • Relational Constraint Driven Test Case Synthesis for Web Applications
    Relational Constraint Driven Test Case Synthesis for Web Applications Xiang Fu Hofstra University Hempstead, NY 11549 [email protected] This paper proposes a relational constraint driven technique that synthesizes test cases automatically for web applications. Using a static analysis, servlets can be modeled as relational transducers, which manipulate backend databases. We present a synthesis algorithm that generates a sequence of HTTP requests for simulating a user session. The algorithm relies on backward symbolic image computation for reaching a certain database state, given a code coverage objective. With a slight adaptation, the technique can be used for discovering workflow attacks on web applications. 1 Introduction Modern web applications usually rely on backend database systems for storing important system infor- mation or supporting business decisions. The complexity of database queries, however, often complicates the task of thoroughly testing a web application. To manually design test cases involves labor intensive initialization of database systems, even with the help of unit testing tools such as SQLUnit [25] and DBUnit [8]. It is desirable to automatically synthesize test cases for web applications. There has been a strong interest recently in testing database driven applications and database man- agement systems (see e.g., [12, 4, 20]). Many of them are query aware, i.e., given a SQL query, an initial database (DB) instance is generated to make that query satisfiable. The DB instance is fed to the target web application as input, so that a certain code coverage goal is achieved. The problem we are trying to tackle is one step further – it is a synthesis problem: given a certain database state (or a relational constraint), a call sequence of web servlets is synthesized to reach the given DB state.
    [Show full text]
  • Data Definition Language
    1 Structured Query Language SQL, or Structured Query Language is the most popular declarative language used to work with Relational Databases. Originally developed at IBM, it has been subsequently standard- ized by various standards bodies (ANSI, ISO), and extended by various corporations adding their own features (T-SQL, PL/SQL, etc.). There are two primary parts to SQL: The DDL and DML (& DCL). 2 DDL - Data Definition Language DDL is a standard subset of SQL that is used to define tables (database structure), and other metadata related things. The few basic commands include: CREATE DATABASE, CREATE TABLE, DROP TABLE, and ALTER TABLE. There are many other statements, but those are the ones most commonly used. 2.1 CREATE DATABASE Many database servers allow for the presence of many databases1. In order to create a database, a relatively standard command ‘CREATE DATABASE’ is used. The general format of the command is: CREATE DATABASE <database-name> ; The name can be pretty much anything; usually it shouldn’t have spaces (or those spaces have to be properly escaped). Some databases allow hyphens, and/or underscores in the name. The name is usually limited in size (some databases limit the name to 8 characters, others to 32—in other words, it depends on what database you use). 2.2 DROP DATABASE Just like there is a ‘create database’ there is also a ‘drop database’, which simply removes the database. Note that it doesn’t ask you for confirmation, and once you remove a database, it is gone forever2. DROP DATABASE <database-name> ; 2.3 CREATE TABLE Probably the most common DDL statement is ‘CREATE TABLE’.
    [Show full text]
  • Origins of Operating Systems OS/360 Martin Grund
    Origins of Operating Systems OS/360 Martin Grund HPI Table of Contents ● IBM System 360 ● Functional Structure of OS/360 ● Virtual Machine Time Sharing Juni 2006 Origins of Operating Systems - OS/360 2 Martin Grund Welcome to Big Blue Juni 2006 Origins of Operating Systems - OS/360 3 Martin Grund IBM System 360 ● In 1964 IBM announced the IBM-360 family for computers ● All machines, despite their differences, had the same user instruction set ● Different operating systems available for these machines ● Only midrange and high-end system run OS/360 ● IBM introduced the new term of hardware architecture ● In 1970 IBM announced System 370 with hardware virtual memory support Juni 2006 Origins of Operating Systems - OS/360 4 Martin Grund IBM System 360 ● High-end machines established 32 bit as standard for computers ● Virtual Memory Support – hardware support for dynamic address translation ● Within ten years S/360 achieved standard status ● Flashback prices: ● 1970 – $279/MB hard disk ● 1980 - $35/MB hard disk | $50.000 /MB DRAM Juni 2006 Origins of Operating Systems - OS/360 5 Martin Grund IBM System 360 Specials ● Introduced 8bit entities ● Introduction of 32 or 64 bit floating point words based on a hexadecimal base ● Variable length strings using length field in the first byte ● All registers are universal registers – accumulators as well as address registers ● Registers use 32 bit, 24 bit for addressing -> 16MB Juni 2006 Origins of Operating Systems - OS/360 6 Martin Grund IBM S/360 - Pictures Juni 2006 Origins of Operating Systems -
    [Show full text]