Programming Guide

Total Page:16

File Type:pdf, Size:1020Kb

Programming Guide Natural Programming Guide Version 6.3.13 for UNIX October 2012 This document applies to Natural Version 6.3.13 for UNIX. Specifications contained herein are subject to change and these changes will be reported in subsequent release notes or new editions. Copyright © 1992-2012 Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, United States of America, and/or their licensors. Detailed information on trademarks and patents owned by Software AG and/or its subsidiaries is located at http://documentation.softwareag.com/legal/. Use of this software is subject to adherence to Software AG's licensing conditions and terms. These terms are part of the product doc- umentation, located at http://documentation.softwareag.com/legal/ and/or in the root installation directory of the licensed product(s). This software may include portions of third-party products. For third-party copyright notices and license terms, please refer to "License Texts, Copyright Notices and Disclaimers of Third-Party Products". This document is part of the product documentation, located at http://documentation.softwareag.com/legal/ and/or in the root installation directory of the licensed product(s). Document ID: NATUX-NNATPROGRAMMING-6313-20121005 Table of Contents Preface .............................................................................................................................. xv I Natural Programming Modes .......................................................................................... 1 1 Natural Programming Modes ................................................................................. 3 Purpose of Programming Modes ....................................................................... 4 Setting/Changing the Programming Mode ....................................................... 5 Functional Differences ....................................................................................... 5 II Object Types .................................................................................................................. 11 2 Using Natural Programming Objects .................................................................... 13 Types of Programming Objects ........................................................................ 14 Creating and Maintaining Programming Objects ............................................ 14 3 Data Areas ............................................................................................................. 15 Use of Data Areas ............................................................................................. 16 Local Data Area ................................................................................................ 16 Global Data Area .............................................................................................. 17 Parameter Data Area ........................................................................................ 26 4 Programs, Functions, Subprograms and Subroutines .......................................... 31 A Modular Application Structure .................................................................... 32 Multiple Levels of Invoked Objects ................................................................. 32 Program ............................................................................................................ 34 Function ............................................................................................................ 37 Subroutine ........................................................................................................ 39 Subprogram ...................................................................................................... 44 Processing Flow when Invoking a Routine ...................................................... 46 5 Processing a Rich GUI Page - Adapter .................................................................. 49 6 Maps ...................................................................................................................... 51 Benefits of Using Maps .................................................................................... 52 Types of Maps .................................................................................................. 52 Creating Maps .................................................................................................. 53 Starting/Stopping Map Processing ................................................................... 53 7 Helproutines .......................................................................................................... 55 Invoking Help .................................................................................................. 56 Specifying Helproutines ................................................................................... 56 Programming Considerations for Helproutines .............................................. 57 Passing Parameters to Helproutines ................................................................ 57 Equal Sign Option ............................................................................................ 58 Array Indices .................................................................................................... 59 Help as a Window ............................................................................................ 59 8 Multiple Use of Source Code - Copycode ............................................................. 61 Use of Copycode .............................................................................................. 62 Processing of Copycode ................................................................................... 62 9 Documenting Natural Objects - Text ..................................................................... 63 Use of Text Objects ........................................................................................... 64 Writing Text ...................................................................................................... 64 iii Programming Guide 10 Creating Component Based Applications - Class ............................................... 65 11 Using Non-Natural Files - Resource .................................................................... 67 Use of Resources .............................................................................................. 68 Shared Resources ............................................................................................. 68 Private Resources ............................................................................................. 69 API for Processing Resources ........................................................................... 69 III Defining Fields ............................................................................................................. 71 12 Use and Structure of DEFINE DATA Statement ................................................. 73 Field Definitions in DEFINE DATA Statement ................................................ 74 Defining Fields within a DEFINE DATA Statement ........................................ 74 Defining Fields in a Separate Data Area .......................................................... 75 Structuring a DEFINE DATA Statement Using Level Numbers ..................... 75 13 User-Defined Variables ........................................................................................ 79 Definition of Variables ...................................................................................... 80 Referencing of Database Fields Using (r) Notation ......................................... 81 Renumbering of Source-Code Line Number References ................................. 82 Format and Length of User-Defined Variables ................................................ 83 Special Formats ................................................................................................ 85 Index Notation ................................................................................................. 87 Referencing a Database Array .......................................................................... 89 Referencing the Internal Count for a Database Array (C* Notation) .............. 97 Qualifying Data Structures ............................................................................. 100 Examples of User-Defined Variables .............................................................. 101 14 Function Call ...................................................................................................... 103 Calling User-Defined Functions ..................................................................... 104 Function Result ............................................................................................... 105 Evaluation Sequence ...................................................................................... 105 Restrictions ..................................................................................................... 105 Syntax Description ......................................................................................... 106 Example .......................................................................................................... 110 15 Introduction to Dynamic Variables and Fields .................................................. 115 Purpose of Dynamic Variables ....................................................................... 116 Definition of Dynamic Variables ...................................................................
Recommended publications
  • Computer Science & Information Technology 33
    Computer Science & Information Technology 33 Dhinaharan Nagamalai Sundarapandian Vaidyanathan (Eds) Computer Science & Information Technology Fifth International Conference on Computer Science, Engineering and Applications (CCSEA-2015) Dubai, UAE, January 23 ~ 24 - 2015 AIRCC Volume Editors Dhinaharan Nagamalai, Wireilla Net Solutions PTY LTD, Sydney, Australia E-mail: [email protected] Sundarapandian Vaidyanathan, R & D Centre, Vel Tech University, India E-mail: [email protected] ISSN: 2231 - 5403 ISBN: 978-1-921987-26-7 DOI : 10.5121/csit.2015.50201 - 10.5121/csit.2015.50218 This work is subject to copyright. All rights are reserved, whether whole or part of the material is concerned, specifically the rights of translation, reprinting, re-use of illustrations, recitation, broadcasting, reproduction on microfilms or in any other way, and storage in data banks. Duplication of this publication or parts thereof is permitted only under the provisions of the International Copyright Law and permission for use must always be obtained from Academy & Industry Research Collaboration Center. Violations are liable to prosecution under the International Copyright Law. Typesetting: Camera-ready by author, data conversion by NnN Net Solutions Private Ltd., Chennai, India Preface Fifth International Conference on Computer Science, Engineering and Applications (CCSEA-2015) was held in Dubai, UAE, during January 23 ~ 24, 2015. Third International Conference on Data Mining & Knowledge Management Process (DKMP 2015), International Conference on Artificial Intelligence and Applications (AIFU-2015) and Fourth International Conference on Software Engineering and Applications (SEA-2015) were collocated with the CCSEA-2015. The conferences attracted many local and international delegates, presenting a balanced mixture of intellect from the East and from the West.
    [Show full text]
  • The Elinks Manual the Elinks Manual Table of Contents Preface
    The ELinks Manual The ELinks Manual Table of Contents Preface.......................................................................................................................................................ix 1. Getting ELinks up and running...........................................................................................................1 1.1. Building and Installing ELinks...................................................................................................1 1.2. Requirements..............................................................................................................................1 1.3. Recommended Libraries and Programs......................................................................................1 1.4. Further reading............................................................................................................................2 1.5. Tips to obtain a very small static elinks binary...........................................................................2 1.6. ECMAScript support?!...............................................................................................................4 1.6.1. Ok, so how to get the ECMAScript support working?...................................................4 1.6.2. The ECMAScript support is buggy! Shall I blame Mozilla people?..............................6 1.6.3. Now, I would still like NJS or a new JS engine from scratch. .....................................6 1.7. Feature configuration file (features.conf).............................................................................7
    [Show full text]
  • Proposed Work Program As of February 2021
    BUREAU OF PHILIPPINE STANDARDS PROPOSED WORK PROGRAM AS OF FEBRUARY 2021 SUBJECT PROJECT REFERENCE STATUS STAGES OF DEVELOPMENT INTERNATIONAL TECHNICAL COMMITTEE [New/Revision 1. Preparatory CLASSIFICATION FOR (Amd./Cor.)/ 2. Organization Meeting STANDARDS Reconfirmation] 3. Drafting/Deliberation 4. Circulation 5. Finalization 6. Approval 7. Published BUILDING, CONSTRUCTION, MECHANICAL AND TRASPORTATION PRODUCTS BPS/TC 5 Concrete, Reinforced Concrete and Standard Specification for Grout for Masonry DPNS ASTM C476:2021 New Circulation 91.100.30 Prestressed Concrete BPS/TC 5 Concrete, Reinforced Concrete and Standard Specification for Mortar for Unit Masonry DPNS ASTM C270:2021 New Circulation 91.100.30 Prestressed Concrete Standard Test Method for Flexural Strength of Concrete BPS/TC 5 Concrete, Reinforced Concrete and DPNS ASTM C78 / C78M:2021 New Circulation 91.100.30 (Using Simple Beam with Third-Point Loading) Prestressed Concrete BPS/TC 5 Concrete, Reinforced Concrete and Terminology Relating to Concrete and Concrete Aggregates DPNS ASTM C125:2021 Revision Circulation 91.100.30 Prestressed Concrete BPS/TC 5 Concrete, Reinforced Concrete and Practice for Capping Cylindrical Concrete Specimens DPNS ASTM C617/C617M:2021 New Circulation 91.100.30 Prestressed Concrete Practice for Preparing Precision and Bias Statements for BPS/TC 5 Concrete, Reinforced Concrete and DPNS ASTM C670:2021 New Circulation 91.100.30 Test Methods for Construction Materials Prestressed Concrete Practice for Agencies Testing Concrete and Concrete BPS/TC 5 Concrete,
    [Show full text]
  • Openoffice Spreadsheet Override Auto Capatilization
    Openoffice Spreadsheet Override Auto Capatilization Selfsame Randie thraws her anesthesia so debauchedly that Merwin spiles very raspingly. Mitral Gerrard condones synchronically, he catches his pitchstone very unpreparedly. Is Lon Muhammadan or associate when rematches some requisition tile war? For my monobook skin is a list of As arch Capital will change percentage setting in gorgeous Voice Settings dialog. What rate the 4 basic layout types? Class WriteExcel Documentation for writeexcel 104. OpenOfficeorg 3 Getting Started Calamo. Saving Report Output native Excel XLSX Format. Installed tax product to another precious you should attend Office Manager and. Sep 2015 How to boast Off Automatic Capitalization in Excel 2013 middot Click. ExportMode Defaults to 'xlsx' and uses the tow Office XML standards. HttpwwwopenofficeorglicensesPDLhtml with the additional caveat that anyone. The Source Documents window up the Change Summary window but easily be. Usually if you change this option it affects all components. Excel Export allows exporting ag-Grid data create Excel using Open XML format xlsx or its's own XML format. Lionel Elie Mamane fdo57640 Auto capitalization for letters wrong. Associating a document with somewhat different template 75. The Advantages of Apache OpenOffice Apache OpenOffice Wiki. Note We always prompt response keywords in first capital letters for clarity but the. It is based on code from Apache OpenOffice made available getting the. Citations that sort been inserted with automatic citation updates disabled would be inserted. Getting Started with LibreOffice 60 Dash. Ranges in A1 notation must restore in uppercase like outlook Excel. Open up office vs closed plan office advantages and. OpenDocument applications such as OpenOfficeorg let this change the format of.
    [Show full text]
  • U.S. Government Printing Office Style Manual, 2008
    U.S. Government Printing Offi ce Style Manual An official guide to the form and style of Federal Government printing 2008 PPreliminary-CD.inddreliminary-CD.indd i 33/4/09/4/09 110:18:040:18:04 AAMM Production and Distribution Notes Th is publication was typeset electronically using Helvetica and Minion Pro typefaces. It was printed using vegetable oil-based ink on recycled paper containing 30% post consumer waste. Th e GPO Style Manual will be distributed to libraries in the Federal Depository Library Program. To fi nd a depository library near you, please go to the Federal depository library directory at http://catalog.gpo.gov/fdlpdir/public.jsp. Th e electronic text of this publication is available for public use free of charge at http://www.gpoaccess.gov/stylemanual/index.html. Use of ISBN Prefi x Th is is the offi cial U.S. Government edition of this publication and is herein identifi ed to certify its authenticity. ISBN 978–0–16–081813–4 is for U.S. Government Printing Offi ce offi cial editions only. Th e Superintendent of Documents of the U.S. Government Printing Offi ce requests that any re- printed edition be labeled clearly as a copy of the authentic work, and that a new ISBN be assigned. For sale by the Superintendent of Documents, U.S. Government Printing Office Internet: bookstore.gpo.gov Phone: toll free (866) 512-1800; DC area (202) 512-1800 Fax: (202) 512-2104 Mail: Stop IDCC, Washington, DC 20402-0001 ISBN 978-0-16-081813-4 (CD) II PPreliminary-CD.inddreliminary-CD.indd iiii 33/4/09/4/09 110:18:050:18:05 AAMM THE UNITED STATES GOVERNMENT PRINTING OFFICE STYLE MANUAL IS PUBLISHED UNDER THE DIRECTION AND AUTHORITY OF THE PUBLIC PRINTER OF THE UNITED STATES Robert C.
    [Show full text]
  • View the Index
    INDEX Symbols creating the fleet, 258–264 dropping the fleet, 267 + (addition), 26 reaching bottom of * (asterisk) operator, 147 screen, 276 {} (braces), 92, 105 rebuilding the fleet, 270 / (division), 26 bullets, 246–252 ** (double asterisk) operator, 149 collisions, with aliens, == (equality operator), 72–73 268–269, 291–292 ** (exponent), 26 deleting old, 250 // (floor division), 260 firing, 249 > (greater than), 75 limiting number of, 251 >= (greater than or equal to), 75 making larger, 270 # (hash mark), for comments, 29 settings, 247 != (inequality operator), 74 speeding up, 271 < (less than), 75 classes <= (less than or equal to), 75 Alien, 256–258 % (modulo operator), 116–117, 122 Bullet, 247–248 * (multiplication), 26 Button, 280–281 \n (newline), 22 GameStats, 273 ! (not), 74 Scoreboard, 288–289 += operator, 115 Settings, 231 [] (square brackets), 34 Ship, 233–235 - (subtraction), 26 ending the game, 276 \t (tab), 22 files alien_invasion.py, 229 A bullet.py, 247 addition (+), 26 button.py, 280 aliases, 152 game_stats.py, 273 alice.py, 197–199 scoreboard.py, 288 Alien Invasion project. See also settings.py, 231 Pygame ship.bmp, 233 aliens initializing dynamic checking edges, 266 settings, 286 collisions, with bullets, levels 268–269, 291–292 adding, 285–287 collisions, with ship, 272–275 modifying speed controlling fleet settings, 285 direction, 266 resetting the speed, 287 creating an alien, 256 planning, 228 Alien Invasion project, continued asterisk (*) operator, 147 Play button attributes, 159. See also classes: adding, 280–285
    [Show full text]
  • Isofocus #142
    #142 focusYour gateway to International Standards Innovation GENERATION 16 : ESA Photo ISOfocus September-October 2020 – ISSN 2226-1095 ISOfocus, the magazine of the International Organization for Standardization, is published six times a year. You can discover more content on our Website at iso.org/isofocus, or by staying connected with us on : TWITTER FACEBOOK YoutubeFlickrlinkedin Head of Communication | Vanessa Von der Mühll Editor-in-Chief | Elizabeth Gasiorowski-Denis 30 Writers | Ann Brady, Barnaby Lewis, Kath Lockett, Clare Naden, Roxanne Oclarino Copy editor and Proofreader | Vivienne Rojas Designers | Xela Damond, Pierre Granier, Alexane Rosa Translation team | Leïla Esteban, Alexandra Florent Subscriptions and back issues If you enjoy ISOfocus, you can download the pdf for free or subscribe to receive printed issues through our Website iso.org/isofocus. You can also contact our customer service at [email protected]. Contributions You can participate in creating this magazine. If you think your contribution can add value to any of our sections, please get in touch at [email protected]. Views expressed are those of the respective contributors and are not necessarily 38 those of ISO or any of its members. © ISO 2020 Published in Switzerland. All rights reserved. Articles in this magazine may be reproduced for non-commercial purposes only. These may not be modified and must be properly referenced, with due credit to ISO being given. ISO may revoke this permission at its sole discretion. For enquiries, please contact [email protected]. This magazine is printed on certified FSC ® paper. 46 #142 4 ISOfocusSeptember-October 2020 2-3 Innovating for a better future Comment by Sergio Mujica.
    [Show full text]
  • Renaissance Receptions of Ovid's Tristia Dissertation
    RENAISSANCE RECEPTIONS OF OVID’S TRISTIA DISSERTATION Presented in Partial Fulfillment of the Requirements for the Degree Doctor of Philosophy in the Graduate School of The Ohio State University By Gabriel Fuchs, M.A. Graduate Program in Greek and Latin The Ohio State University 2013 Dissertation Committee: Frank T. Coulson, Advisor Benjamin Acosta-Hughes Tom Hawkins Copyright by Gabriel Fuchs 2013 ABSTRACT This study examines two facets of the reception of Ovid’s Tristia in the 16th century: its commentary tradition and its adaptation by Latin poets. It lays the groundwork for a more comprehensive study of the Renaissance reception of the Tristia by providing a scholarly platform where there was none before (particularly with regard to the unedited, unpublished commentary tradition), and offers literary case studies of poetic postscripts to Ovid’s Tristia in order to explore the wider impact of Ovid’s exilic imaginary in 16th-century Europe. After a brief introduction, the second chapter introduces the three major commentaries on the Tristia printed in the Renaissance: those of Bartolomaeus Merula (published 1499, Venice), Veit Amerbach (1549, Basel), and Hecules Ciofanus (1581, Antwerp) and analyzes their various contexts, styles, and approaches to the text. The third chapter shows the commentators at work, presenting a more focused look at how these commentators apply their differing methods to the same selection of the Tristia, namely Book 2. These two chapters combine to demonstrate how commentary on the Tristia developed over the course of the 16th century: it begins from an encyclopedic approach, becomes focused on rhetoric, and is later aimed at textual criticism, presenting a trajectory that ii becomes increasingly focused and philological.
    [Show full text]
  • Translate's Localization Guide
    Translate’s Localization Guide Release 0.9.0 Translate Jun 26, 2020 Contents 1 Localisation Guide 1 2 Glossary 191 3 Language Information 195 i ii CHAPTER 1 Localisation Guide The general aim of this document is not to replace other well written works but to draw them together. So for instance the section on projects contains information that should help you get started and point you to the documents that are often hard to find. The section of translation should provide a general enough overview of common mistakes and pitfalls. We have found the localisation community very fragmented and hope that through this document we can bring people together and unify information that is out there but in many many different places. The one section that we feel is unique is the guide to developers – they make assumptions about localisation without fully understanding the implications, we complain but honestly there is not one place that can help give a developer and overview of what is needed from them, we hope that the developer section goes a long way to solving that issue. 1.1 Purpose The purpose of this document is to provide one reference for localisers. You will find lots of information on localising and packaging on the web but not a single resource that can guide you. Most of the information is also domain specific ie it addresses KDE, Mozilla, etc. We hope that this is more general. This document also goes beyond the technical aspects of localisation which seems to be the domain of other lo- calisation documents.
    [Show full text]
  • There's a Lot to Know About XML, and It S Constantly Evolving. but You Don't
    < Day Day Up > • Table of Contents • Index • Reviews • Reader Reviews • Errata • Academic XML in a Nutshell, 3rd Edition By Elliotte Rusty Harold, W. Scott Means Publisher: O'Reilly Pub Date: September 2004 ISBN: 0-596-00764-7 Pages: 712 There's a lot to know about XML, and it s constantly evolving. But you don't need to commit every syntax, API, or XSLT transformation to memory; you only need to know where to find it. And if it's a detail that has to do with XML or its companion standards, you'll find it--clear, concise, useful, and well-organized--in the updated third edition of XML in a Nutshell. < Day Day Up > < Day Day Up > • Table of Contents • Index • Reviews • Reader Reviews • Errata • Academic XML in a Nutshell, 3rd Edition By Elliotte Rusty Harold, W. Scott Means Publisher: O'Reilly Pub Date: September 2004 ISBN: 0-596-00764-7 Pages: 712 Copyright Preface What This Book Covers What's New in the Third Edition Organization of the Book Conventions Used in This Book Request for Comments Acknowledgments Part I: XML Concepts Chapter 1. Introducing XML Section 1.1. The Benefits of XML Section 1.2. What XML Is Not Section 1.3. Portable Data Section 1.4. How XML Works Section 1.5. The Evolution of XML Chapter 2. XML Fundamentals Section 2.1. XML Documents and XML Files Section 2.2. Elements, Tags, and Character Data Section 2.3. Attributes Section 2.4. XML Names Section 2.5. References Section 2.6. CDATA Sections Section 2.7.
    [Show full text]
  • Liderazgo Biomimético Para Las Organizaciones Del Siglo XXI
    UNIVERSITAT POLITÈCNICA DE CATALUNYA (UPC) PROGRAMA DOCTORAL EN ADMINISTRACIÓN Y DIRECCIÓN DE EMPRESAS DEPARTAMENTO DE ORGANIZACIÓN DE EMPRESAS Tesis presentada para obtener el título de Doctora: Liderazgo biomimético para las organizaciones del siglo XXI Barcelona, julio 2020 Doctoranda: Edita Olaizola Director: Co-Director: Dr. Marcos Eguiguren Huerta Dr. Rafael Morales Sánchez Universitat Politècnica de Catalunya, Barcelona Universidad Pablo de Olavide, Sevilla Liderazgo biomimético para las organizaciones del siglo XXI Edita Olaizola ADVERTIMENT La consulta d’aquesta tesi queda condicionada a l’acceptació de les següents condicions d'ús: La difusió d’aquesta tesi per mitjà del repositori institucional UPCommons (http://upcommons.upc.edu/tesis) i el repositori cooperatiu TDX ( h t t p : / / w w w . t d x . c a t / ) ha estat autoritzada pels titulars dels drets de propietat intel·lectual únicament per a usos privats emmarcats en activitats d’investigació i docència. No s’autoritza la seva reproducció amb finalitats de lucre ni la seva difusió i posada a disposició des d’un lloc aliè al servei UPCommons o TDX. No s’autoritza la presentació del seu contingut en una finestra o marc aliè a UPCommons (framing). Aquesta reserva de drets afecta tant al resum de presentació de la tesi com als seus continguts. En la utilització o cita de parts de la tesi és obligat indicar el nom de la persona autora. ADVERTENCIA La consulta de esta tesis queda condicionada a la aceptación de las siguientes condiciones de uso: La difusión de esta tesis por medio del repositorio institucional UPCommons (http://upcommons.upc.edu/tesis) y el repositorio cooperativo TDR (http://www.tdx.cat/?locale- attribute=es) ha sido autorizada por los titulares de los derechos de propiedad intelectual únicamente para usos privados enmarcados en actividades de investigación y docencia.
    [Show full text]
  • Using Python Release 2.6.2
    Using Python Release 2.6.2 Guido van Rossum Fred L. Drake, Jr., editor April 15, 2009 Python Software Foundation Email: [email protected] CONTENTS 1 Command line and environment 3 1.1 Command line .............................................. 3 1.2 Environment variables .......................................... 7 2 Using Python on Unix platforms 11 2.1 Getting and installing the latest version of Python ............................ 11 2.2 Building Python ............................................. 12 2.3 Python-related paths and files ...................................... 12 2.4 Miscellaneous .............................................. 12 2.5 Editors .................................................. 13 3 Using Python on Windows 15 3.1 Installing Python ............................................. 15 3.2 Alternative bundles ............................................ 15 3.3 Configuring Python ........................................... 16 3.4 Additional modules ........................................... 17 3.5 Compiling Python on Windows ..................................... 18 3.6 Other resources .............................................. 19 4 Using Python on a Macintosh 21 4.1 Getting and Installing MacPython .................................... 21 4.2 The IDE ................................................. 22 4.3 Installing Additional Python Packages .................................. 22 4.4 GUI Programming on the Mac ...................................... 23 4.5 Distributing Python Applications on the Mac .............................
    [Show full text]