Creating Java Applications Using Netrexx

Total Page:16

File Type:pdf, Size:1020Kb

Creating Java Applications Using Netrexx SG24-2216-00 Creating Java Applications Using NetRexx September 1997 IBML International Technical Support Organization SG24-2216-00 Creating Java Applications Using NetRexx September 1997 Take Note! Before using this information and the product it supports, be sure to read the general information in Appendix B, “Special Notices” on page 273. First Edition (September 1997) This edition applies to Version 1.0 and Version 1.1 of NetRexx with Java Development Kit 1.1.1 for use with the OS/2 Warp, Windows 95, and Windows NT operating systems. Because NetRexx runs on any platform where Java is implemented, it applies to other platforms and operating systems as well. SAMPLE CODE ON THE INTERNET The sample code for this redbook is available as nrxredbk.zip on the ITSO home page on the Internet: ftp://www.redbooks.ibm.com/redbooks/SG242216 Download the sample code and read “Installing the Sample Programs” on page 4. Comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. QXXE Building 80-E2 650 Harry Road San Jose, California 95120-6099 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. Copyright International Business Machines Corporation 1997. All rights reserved. Note to U.S. Government Users — Documentation related to restricted rights — Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp. Contents Figures . xi Tables . xv Preface . xvii How This Document is Organized ................................ xviii The Team That Wrote This Redbook ................................ xix Comments Welcome . xix Chapter 1. Introduction . 1 What Is NetRexx? ............................................ 1 Design Objectives . 1 Why NetRexx? . 1 Installation . 2 Installation Verification . 3 Software Prerequisites . 4 Installing the Sample Programs .................................... 4 Installing the Packages of this Redbook ............................... 5 NetRexx Documentation . 5 NetRexx Home Page on the Internet ................................. 6 Java Toolkit Documentation ...................................... 6 Chapter 2. Starting with NetRexx ................................ 7 Our First NetRexx Program ...................................... 7 File Types Used by NetRexx ...................................... 9 Chapter 3. The NetRexx Compiler ............................... 11 Command Files . 11 Arguments and Return Codes .................................... 12 How Does the Compiler Work? ................................... 13 Invoking the Compiler from NetRexx or Java ........................... 14 Compile Options . 14 Compiler-Only Options . 14 Options Keyword . 15 More Details on Options ...................................... 16 Chapter 4. The NetRexx Language .............................. 19 Case Sensitivity . 19 Comments . 19 Continuation Character . 20 Input and Output ............................................ 20 Data Types . 20 Operators and Expressions ..................................... 22 String Expressions . 22 Arithmetic Expressions . 22 Comparative Expressions . 23 Normal Comparative Operators ................................ 23 Strict Comparative Operators ................................. 23 Logical Expressions . 23 Copyright IBM Corp. 1997 iii Variables . 24 Class Definition . 25 Class Instruction . 25 Properties Instruction . 26 Method Instruction . 28 Special Keywords Used in Methods ............................... 29 Exceptions . 30 The Rexx Class for Strings ...................................... 30 Parsing a String ........................................... 30 Built-In Methods . 31 Abbrev . 31 Abs . 32 B2x . 32 Center . 32 Changestr . 32 Compare . 32 Copies . 32 Countstr . 32 C2d . 32 C2x . 32 Datatype . 33 Delstr . 33 Delword . 33 D2c . 33 D2x . 33 Exists . 34 Format . 34 Insert . 34 Lastpos . 34 Left . 34 Length . 34 Lower . 35 Max . 35 Min . 35 Overlay . 35 Pos . 35 Reverse . 35 Right . 35 Sequence . 35 Sign . 36 Space . 36 Strip . 36 Substr . 36 Subword . 36 Translate . 36 Trunc . 36 Upper . 36 Verify . ..
Recommended publications
  • Rexx Programmer's Reference
    01_579967 ffirs.qxd 2/3/05 9:00 PM Page i Rexx Programmer’s Reference Howard Fosdick 01_579967 ffirs.qxd 2/3/05 9:00 PM Page iv 01_579967 ffirs.qxd 2/3/05 9:00 PM Page i Rexx Programmer’s Reference Howard Fosdick 01_579967 ffirs.qxd 2/3/05 9:00 PM Page ii Rexx Programmer’s Reference Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2005 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 0-7645-7996-7 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 1MA/ST/QS/QV/IN No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, e-mail: [email protected]. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COM- PLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WAR- RANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE.
    [Show full text]
  • REXX Parsing for Today’S Slides and Other Webinars Visit: PARSE Forms
    REXX Parsing For today’s slides and other webinars visit: www.themisinc.com/webinars PARSE Forms PARSE ARG template Parameters passed to program or subroutine PARSE EXTERNAL template Read from Terminal (TSO/E, VM only) PARSE NUMERIC template Current NUMERIC settings (TSO/E, VM only) PARSE PULL template Remove data from REXX STACK PARSE SOURCE template Information about the current program PARSE VALUE expression WITH template Information comes from expression PARSE VAR name template Parse one variable into other variables PARSE VERSION template Information about the REXX interpreter General Rules for Parsing • Parsing processes the data string from left to right • If there is more data than defined variables, the last variable receives ALL the remaining data • If there are more variables than data, the remaining variables are set as null • A period (.) may be used as a “placeholder” to bypass setting a variable PARSE VAR Keyword PARSE [UPPER] VAR origin template Use designated variable as input to template PARSING Example origin_data = ‘This is the original data’ PARSE VAR origin_data var1 var2 var3 var1 = This var2 = is var3 = the original data PARSING Example #2 origin_data = ‘This is the original data’ PARSE VAR origin_data var1 . var3 var1 = This var3 = original data PARSING Example #3 origin_data = ‘This is the original data’ PARSE VAR origin_data var1 var2 var3 . var1 = This var2 = is var3 = the PARSING Example #4 origin_data = ‘This is the original data’ PARSE VAR origin_data var1 “the” var3 . var1 = This is var3 = original NOTE: The placeholder (.) removes the last bit of data as space-delimited. Parsing Example Evaluate the following PARSE template: • What will dsn and member contain? dsname = "'SYS1.PROCLIB(JES2)'" PARSE VAR dsname "'" dsn '(' member ')' .
    [Show full text]
  • The Design of the REXX Language
    The design of the REXX language by M. F. Cowlishaw One way of classifying computer languagesis by two (consciously or otherwise) to be easy to compile or classes: languages needing skilled programmers, and easy to interpret, it is designed (with the help of personal languages usedby an expanding population of general users. REstructured extended executor feedback from hundreds of users) to be easy to use. (REXX) isa flexible personal language designed with particular attention to feedback from its users. It has Three major factors affect the usability of a language. proved to be effective and easyto use, yet it is suffi- First, the basic concepts of a language affect its ciently general and powerfulto fulfil theneeds of many demanding professional applications.REXX is system syntax, grammar, and consistency. Second, the his- and hardware independent,so that it has been possi- tory and development of a language determine its ble to integrate it experimentally into several operating function, usability, and completeness. Third, but systems. Here REXX isused for such purposes as com- quite independently, the implementation of a lan- mand and macro programming, prototyping, educa- guage affects its acceptability, portability, and distri- tion, and personal programming. This paper introduces REXX and describes the basic design principles that bution. This paper introduces REXX and then dis- were followed in developingit. cusses basic concepts and developmental history as applied to the design of the REXX language. There are several experimental implementations of the REXX language within IBM for both large and small machines. One of these, by the author, has omputer languages may be classified in many become a part of the Virtual Machine/System Prod- ways.
    [Show full text]
  • IBM Tivoli Netview for Z/OS Programming: PL/I and C, Describes How to Write Command Processors and Installation Exit Routines for the Netview Product Using PL/I and C
    IBM Tivoli NetView for z/OS Version 6 Release 1 Programming: PL/I and C SC27-2860-00 IBM Tivoli NetView for z/OS Version 6 Release 1 Programming: PL/I and C SC27-2860-00 Note Before using this information and the product it supports, read the information in “Notices” on page 317. This edition applies to version 6, release 1 of IBM Tivoli NetView for z/OS (product number 5697-NV6) and to all subsequent versions, releases, and modifications until otherwise indicated in new editions. © Copyright IBM Corporation 1997, 2011. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures ....................................xi About this publication .............................xiii Intended audience .................................xiii Publications ...................................xiii IBM Tivoli NetView for z/OS library .........................xiii Related publications ...............................xv Accessing terminology online ............................xv Using NetView for z/OS online help .........................xvi Using LookAt to look up message explanations ......................xvi Accessing publications online ............................xvii Ordering publications ..............................xvii Accessibility ..................................xvii Tivoli technical training ...............................xvii Tivoli user groups ................................xviii Downloads ...................................xviii Support information................................xviii
    [Show full text]
  • Open Source - Who Cares and Why?
    Open Source - Who Cares and Why? Al Williams Session 8480 SHARE 103, New York, NY August 20, 2004 http://lily.garden.et-test.psu.edu/~alw/whyopen.pdf Agenda What is Open Source? What is it being used for? Who is using Open Source? Open Source Myths? What does this mean? What is Open Source? Open Source Is Application, program, or utility where The computer instructions (code, source) are provided with the program Licensed in such a way that it can be improved, enhanced, or localized freely Isn’t necessarily zero cost Popular revolution - some good work being done More lengthly definition at http://www.opensource.org Open Source Initiative The Open Source Initiative is now a California public benefit (not-for- profit) corporation Prompted by Netscape source code availability press release: http://wp.netscape.com/newsref/pr/newsrelease558.html http://www.opensource.org/ It’s Free, Right? Lots of software is free to download Not necessarily cost-free Need to have programmers to support yourself Need to have infrastructure to participate in development Can be resold by vendors who add value May need to pay for support from a vendor Some free software isn’t open source If You Want Free Software Free Software Foundation Open Source and Free http://www.fsf.org New Idea? No, our operating systems used to be source maintained HASP CMS We were familiar with source management SHARE has a history of sharing improvements in this area (mods) Perhaps Open Source is a new opportunity for us Circle of Life? Twenty-four years ago our favorite vendor extolled the value of Object Code Only control your system programmers reduce maintenance cost improve security and reliability Now Open Source is in (again) control your destiny share development effort match your business needs support “Open Standards” How is it Developed? Several formal projects (Foundries) What’s a Foundry? Foundries provide a place for end-users, developers and other interested parties to communicate, discuss new ideas, and learn about new software and technologies which may benefit them.
    [Show full text]
  • An Empirical Comparison of C, C++, Java, Perl, Python, Rexx, and Tcl
    Submission to IEEE Computer An empirical comparison of C, C++, Java, Perl, Python, Rexx, and Tcl Lutz Prechelt ([email protected]) Fakult¨at f¨ur Informatik, Universit¨at Karlsruhe D-76128 Karlsruhe, Germany +49/721/608-4068, Fax: +49/721/608-7343 http://wwwipd.ira.uka.de/˜prechelt/ March 14, 2000 Summary memory consumption, and reliability. 80 implementations of the same set of requirements are We will consider the languages both individually and compared for several properties, such as run time, memory combined into groups: Perl, Python, Rexx, and Tcl and consumption, source text length, comment density, program often called scripting languages and will form one group structure, reliability, and the amount of effort required for called the script group. The name scripting language com- writing them. The results indicate that, for the given pro- monly refers to languages that are for instance (more or gramming problem, which regards string manipulation and less) interpreted rather than compiled, at least during the search in a dictionary, “scripting languages” (Perl, Python, program development phase, and that do typically not re- Rexx, Tcl) are more productive than “conventional lan- quire variable declarations. The alternative are the more guages” (C, C++, Java). In terms of run time and mem- conventional programming languages which I will call the ory consumption, they often turn out better than Java and non-script group. These languages (C, C++, and Java) are not much worse than C or C++. In general, the differences more or less compiled and require typed variable declara- between languages tend to be smaller than the typical dif- tions.
    [Show full text]
  • Programming: REXX and the Netview Command List Language
    IBM Tivoli NetView for z/OS Version 6 Release 2 Programming: REXX and the NetView Command List Language IBM SC27-2861-02 IBM Tivoli NetView for z/OS Version 6 Release 2 Programming: REXX and the NetView Command List Language IBM SC27-2861-02 Note Before using this information and the product it supports, read the information in “Notices” on page 203. This edition applies to version 6, release 2 of IBM Tivoli NetView for z/OS (product number 5697-NV6) and to all subsequent versions, releases, and modifications until otherwise indicated in new editions. This edition replaces SC27-2861-01. © Copyright IBM Corporation 1997, 2013. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures ................................... vii About this publication ............................. ix Intended audience ................................. ix Publications ................................... ix IBM Tivoli NetView for z/OS library .......................... ix Related publications ............................... xi Accessing terminology online ............................ xi Using NetView for z/OS online help .......................... xii Accessing publications online ............................ xii Ordering publications ............................... xii Accessibility ................................... xiii Service Management Connect ............................. xiii Tivoli technical training ............................... xiii Tivoli user groups ................................
    [Show full text]
  • Pipelines Guide and Reference
    Pipelines Guide and Reference Ed Tomlinson Jeff Hennick René Jansen Version 4.01-GA of March 20, 2021 THE REXX LANGUAGE ASSOCIATION NetRexx Programming Series ISBN 978-90-819090-3-7 Publication Data ©Copyright The Rexx Language Association, 2011- 2021 All original material in this publication is published under the Creative Commons - Share Alike 3.0 License as stated at http://creativecommons.org/licenses/by-nc-sa/3.0/us/legalcode. The responsible publisher of this edition is identified as IBizz IT Services and Consultancy, Amsteldijk 14, 1074 HR Amsterdam, a registered company governed by the laws of the Kingdom of The Netherlands. This edition is registered under ISBN 978-90-819090-3-7 ISBN 978-90-819090-3-7 9 789081 909037 I Contents The NetR Programming Series i 1 Introduction 1 2 The Pipeline Concept 2 2.1 What is a Pipeline? 2 2.2 Stage 2 2.3 Device Driver 3 3 Running pipelines 4 3.1 Configuration 4 3.2 From the NetREXX Workspace (nrws) with direct execution 5 3.3 From the command line with direct execution 6 3.4 Precompiled Pipelines 6 3.5 Compiled from an .njp file 7 3.6 Compiled from an .njp file with additional stage definitions in NetREXX 7 4 Example Session 8 5 Write your own Filters 12 6 More advanced Pipelines 14 7 Device Drivers 15 8 Record Selection 17 9 Filters 18 10 Other Stages 19 11 Multi-Stream Pipelines 20 12 Pipeline Stalls 22 13 How to use a pipe in a NetR program 24 II 14 Giving commands to the operating system 27 14.1 Built-ins 27 15 TCP/IP Networking 28 16 Selecting from relational databases 30 17 The Pipes Runner 31 18 The Pipes Compiler 32 19 Built-in Stages 33 20 Differences with CMS Pipelines 34 Index 83 III The NetR Programming Series This book is part of a library, the NetR Programming Series, documenting the NetREXX programming language and its use and applications.
    [Show full text]
  • VM/ESA Network Computing with Java and Netrexx
    IBML VM/ESA Network Computing with Java and NetRexx Kris Buelens ** Bengt Heijnesson ** Dave Jones ** Salvador Torres International Technical Support Organization http://www.redbooks.ibm.com This book was printed at 240 dpi (dots per inch). The final production redbook with the RED cover will be printed at 1200 dpi and will provide superior graphics resolution. Please see “How to Get ITSO Redbooks” at the back of this book for ordering instructions. SG24-5148-00 IBML International Technical Support Organization SG24-5148-00 VM/ESA Network Computing with Java and NetRexx November 1998 Take Note! Before using this information and the product it supports, be sure to read the general information in Appendix C, “Special Notices” on page 161. First Edition (November 1998) This edition applies to Virtual Machine/Enterprise Systems Architecture (VM/ESA), Version 2 Release 3.0, Program Number 5654-030, and subsequent releases. Note This book is based on a pre-GA version of a product and may not apply when the product becomes generally available. We recommend that you consult the product documentation or follow-on versions of this redbook for more current information. Comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. HYJ Mail Station P099 522 South Road Poughkeepsie, New York 12601-5400 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. Copyright International Business Machines Corporation 1998. All rights reserved. Note to U.S. Government Users — Documentation related to restricted rights — Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp.
    [Show full text]
  • Optimizing a Bank of Kalman Filters for Navigation Integrity
    Air Force Institute of Technology AFIT Scholar Theses and Dissertations Student Graduate Works 3-2021 Optimizing a Bank of Kalman Filters for Navigation Integrity Luis E. Sepulveda Follow this and additional works at: https://scholar.afit.edu/etd Part of the Computer Sciences Commons, and the Navigation, Guidance, Control and Dynamics Commons Recommended Citation Sepulveda, Luis E., "Optimizing a Bank of Kalman Filters for Navigation Integrity" (2021). Theses and Dissertations. 4908. https://scholar.afit.edu/etd/4908 This Thesis is brought to you for free and open access by the Student Graduate Works at AFIT Scholar. It has been accepted for inclusion in Theses and Dissertations by an authorized administrator of AFIT Scholar. For more information, please contact [email protected]. Optimizing Banks of Kalman Filters for Navigation Integrity using Parallel Computing and Efficient Software Design THESIS Luis E. Sepulveda, Captain, USAF AFIT-ENG-MS-21-M-079 DEPARTMENT OF THE AIR FORCE AIR UNIVERSITY AIR FORCE INSTITUTE OF TECHNOLOGY Wright-Patterson Air Force Base, Ohio DISTRIBUTION STATEMENT A APPROVED FOR PUBLIC RELEASE; DISTRIBUTION UNLIMITED. The views expressed in this document are those of the author and do not reflect the official policy or position of the United States Air Force, the United States Department of Defense or the United States Government. This material is declared a work of the U.S. Government and is not subject to copyright protection in the United States. AFIT-ENG-MS-21-M-079 OPTIMIZING BANKS OF KALMAN FILTERS FOR NAVIGATION INTEGRITY USING PARALLEL COMPUTING AND EFFICIENT SOFTWARE DESIGN THESIS Presented to the Faculty Department of Electrical and Computer Engineering Graduate School of Engineering and Management Air Force Institute of Technology Air University Air Education and Training Command in Partial Fulfillment of the Requirements for the Degree of Master of Science in Computer Science Luis E.
    [Show full text]
  • Building Netrexx Systems.Pdf
    Building NetRexx Systems 21st International Rexx Language Symposium René Vincent Jansen 2010-12-13 maandag, 13 december 2010 Agenda Commandline builds nrc ant make maandag, 13 december 2010 Agenda IDE builds Emacs JEdit Eclipse maandag, 13 december 2010 NetRexx The other Object Oriented successor to Classic Rexx 1995, Mike Cowlishaw Runs on the Java VM Compiles NetRexx to Java classes Added an interpreter in 2000 Will be open sourced, probably this next year maandag, 13 december 2010 Command line Aka Shell aka Prompt Unix vs Windows differences java Com.ibm.netrexx.process.NetRexxC resolves dependencies when classes are compiled together maandag, 13 december 2010 Make 1977, Stuart Feldman, Bell’s Labs. ACM Software award 2003 make is a utility that automatically builds executable programs and libraries from source code by reading files called makefiles which specify how to derive the target program The standard version nowadays is GNU Make maandag, 13 december 2010 Make 1977, Stuart Feldman, Bell’s Labs. ACM Software award 2003 make is a utility that automatically builds executable programs and libraries from source code by reading files called makefiles which specify how to derive the target program The standard version nowadays is GNU Make maandag, 13 december 2010 A makefile (called makefile) will be explained in the next few slides maandag, 13 december 2010 Variables and Rules maandag, 13 december 2010 Suffixes and Targets maandag, 13 december 2010 Take care not to remove sources that only have a *.java version Enables the class-in-source model maandag, 13 december 2010 Ant - Another Neat Tool Java based - Cross Platform - Building utility James Duncan Davidson, July 19, 2000 The most immediately noticeable difference between Ant and Make is that Ant uses XML to describe the build process and its dependencies, whereas Make uses Makefile format.
    [Show full text]
  • An Introduction to Procedural and Object-Oriented Programming (Oorexx) 1
    MIS Department An Introduction to Procedural and Object-oriented Programming (ooRexx) 1 Introduction, Overview, Statement, Procedure, Function Prof. Rony G. Flatscher Vienna University of Economics and Business Administration Wirtschaftsuniversität Wien Augasse 2-6 A-1090 Vienna HierAn Introduction Vortrags-/VorlesungstitelAutomatisierung to Procedural von Windows andim Master Object-oriented Anwendungen eintragen Programming (3) (ooRexx) 1, p. 1 © Prof.© Prof. Dr. Rony G. Flatscher Overview, 1 • Course – Basic concepts of the object-oriented paradigm • Standard application systems – Scripting language • Automation ("remote controlling") of applications • Automation of operating systems like Linux or Windows – Foils http://wi.wu-wien.ac.at/rgf/wu/lehre/autowin/material/foils/ http://wi.wu-wien.ac.at/rgf/wu/lehre/autojava/material/foils/ – Excercises http://wi.wu-wien.ac.at/rgf/wu/lehre/autowin/material/excercises/ HierAn Introduction Vortrags-/Vorlesungstitel to Procedural im and Master Object-oriented eintragen Programming (ooRexx) 1, p. 2 Hier Name des Vortragenden© Prof. im Rony Master G. eintragenFlatscher Overview, 2 • Why Rexx? Why Object Rexx? – Simple syntax ("human-centric" language) • Easy and quick to learn – Powerful object-model • All important concepts of the OO-paradigm available – Windows Scripting Engine (WSE) • Full automation of Windows applications possible • Availability of Software http://www.ooRexx.org HierAn Introduction Vortrags-/Vorlesungstitel to Procedural im and Master Object-oriented eintragen Programming
    [Show full text]