1 Inside Module 9 Latest Features in Suprtool n Variable Substitution n $Counter n $Clean and $FindClean n $Total and $Subtotal n $SPLIT n $EDIT n $NUMBER.

Slides:



Advertisements
Similar presentations
Database Relationships in Access As you recall, the data in a database is stored in tables. In a relational database like Access, you can have multiple.
Advertisements

Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
1 PowerHouse and Suprtool Page n Why use Suprtool?2 n Combining Suprtool and QUIZ 4 n Linking multiple files8 n Creating complex subfiles14 n Importing.
1 Working with Suprlink Page n Accessing Suprlink4 n A sample scenario6 n Self-describing files15 n Linking files19 n Adding information32 n Suprlink requirements41.
Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Introduction to C Programming
1 Creating and Tweaking Data HRP223 – 2010 October 24, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Introduction to Oracle9i: SQL1 Selected Single-Row Functions.
Guide To UNIX Using Linux Third Edition
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Concepts of Database Management Sixth Edition
Phonegap Bridge – File System CIS 136 Building Mobile Apps 1.
Welcome to SAS…Session..!. What is SAS..! A Complete programming language with report formatting with statistical and mathematical capabilities.
Advanced File Processing
Chapter 3 Single-Table Queries
Inside Module 7 Exporting Data to the World Page n Exporting data to other applications2 n STExport converts the data4 n Running STExport5 n Dates and.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Chapter 10 Selected Single-Row Functions Oracle 10g: SQL.
CHAPTER:14 Simple Queries in SQL Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Chapter 5 Selected Single-Row Functions. Chapter Objectives  Use the UPPER, LOWER, and INITCAP functions to change the case of field values and character.
Advanced File Processing. 2 Objectives Use the pipe operator to redirect the output of one command to another command Use the grep command to search for.
Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.
Chapter Five Advanced File Processing Guide To UNIX Using Linux Fourth Edition Chapter 5 Unix (34 slides)1 CTEC 110.
1 Single Table Queries. 2 Objectives  SELECT, WHERE  AND / OR / NOT conditions  Computed columns  LIKE, IN, BETWEEN operators  ORDER BY, GROUP BY,
ISV Innovation Presented by ISV Innovation Presented by Business Intelligence Fundamentals: Data Cleansing Ola Ekdahl IT Mentors 9/12/08.
Overview · What is PL/SQL · Advantages of PL/SQL · Basic Structure of a PL/SQL Block · Procedure · Function · Anonymous Block · Types of Block · Declaring.
Concepts of Database Management Seventh Edition
 Agenda: 4/24/13 o External Data o Discuss data manipulation tools and functions o Discuss data import and linking in Excel o Sorting Data o Date and.
Transforming TurboIMAGE Data for Eloquence, Oracle, and More By Bob Green, Robelle
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 2 Chapter 2 - Introduction to C Programming.
Copyright © 2010 Certification Partners, LLC -- All Rights Reserved Perl Specialist.
Oracle 11g: SQL Chapter 10 Selected Single-Row Functions.
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 14 Globalization Support in the Database.
Enhancing Forms with OLE Fields, Hyperlinks, and Subforms – Project 5.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Introducing Python CS 4320, SPRING Lexical Structure Two aspects of Python syntax may be challenging to Java programmers Indenting ◦Indenting is.
Chapter Five Advanced File Processing. 2 Lesson A Selecting, Manipulating, and Formatting Information.
Week 7 Lecture 2 Globalization Support in the Database.
Copyright © 2003 ProsoftTraining. All rights reserved. Perl Fundamentals.
1 Copyright © 2011 Tata Consultancy Services Limited Virtual Access Storage Method (VSAM) and Numeric Intrinsic Functions (NUMVAL and NUMVAL-C) LG - TMF148.
Microsoft Visual Basic 2012 CHAPTER FOUR Variables and Arithmetic Operations.
1 Inside Module 8 Extracting Data Page n Using the Extract command2 n Coercion3 n $-functions4 n Extract from a table7.
ORAFACT Text Processing. ORAFACT Searching Inside Files grep - searches for patterns within files grep [options] [[-e] pattern] filename [...] -n shows.
1 Chapter 3 Single Table Queries. 2 Simple Queries Query - a question represented in a way that the DBMS can understand Basic format SELECT-FROM Optional.
Python’s Standard Library Part II Dennis Tran. Output Formatting The repr module provides a version of repr() customized for abbreviated displays of large.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
1 Lecture 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line of Text 2.3Another Simple C Program: Adding.
DAY 20: ACCESS CHAPTERS 5, 6, 7 Larry Reaves October 28,
Databases Chapter 9 Asfia Rahman.
Chapter 10 Selected Single-Row Functions Oracle 10g: SQL
Microsoft Office Access 2010 Lab 2
Database Systems: Design, Implementation, and Management Tenth Edition
Inside Module 10 Editing TurboIMAGE Datasets Page
Inside Module 7 Exporting Data to the World Page
Guide To UNIX Using Linux Third Edition
Inside Module 7 Programming with Suprtool2 Page
Computing in COBOL: The Arithmetic Verbs and Intrinsic Functions
Inside Module 9 Latest Features in Suprtool
Contents Preface I Introduction Lesson Objectives I-2
Chapter 8 Advanced SQL.
Database Systems: Design, Implementation, and Management Tenth Edition
Inside Module 8 Extracting Data Page Using the Extract command 2
CIS 136 Building Mobile Apps
Introduction to C Programming
Presentation transcript:

1 Inside Module 9 Latest Features in Suprtool n Variable Substitution n $Counter n $Clean and $FindClean n $Total and $Subtotal n $SPLIT n $EDIT n $NUMBER n Suprlink’s Join Command n Output,else n FastRead (non-MPE Platforms) n Dbedit (non-MPE Platforms) n List Command (non-MPE Platforms) n Dynamic Loading of Eloquence (non-MPE Platforms)

2 Development is a continuous process n We are always working on new features n New version every month or so

3 Variable Substitution n MPE version has had Variable Substitution for two years Internal MPE routine Same as used by the CI n HP-UX now has the same feature Suprtool functions take precedence $stddate, $total, $date, $today are not replaced Variable must be set and exported prior to running program Suprtool command line, $read function STExport and Suprlink as well Must have Set Varsub On

4 $counter function n Sequential number function n Allows you to retain original output order > get morder > def mycount,1,4,double > ext mycount=$counter > ext orderno > out myfile,link > xeq

5 Clean my data n $clean function in Suprtool clean “^9” Set cleanchar “ “ update extract mybytefield=$clean(mybytefield)

6 Clean Example >base mydb,1,; >get customer >clean "^9","^10","^0","^7" >set cleanchar " " >update >ext address(1) = $clean(address(1)) >ext address(2) = $clean(address(2)) >ext address(3) = $clean(address(3)) >xeq

7 $FindClean Example n Users did not want to blindly $clean all records n Some wanted to track strange characters and corruptions n $FindClean will find fields that could be cleaned >base membrs >get member-file >Clean special >If $findclean(name) >output toclean,link >xeq

8 $Total n $Total and $subtotal functions n Provide running grand total and subtotals n Data is stored in a Packed field

9 $Subtotal n Syntax for the $subtotal function in the extract command is: n extract target = $subtotal(field,sort-field) n Must specify a sort n Sort fields must match >def mytot,1,14,packed >get orders >sort ordnum >ext ordnum >ext part-number,description,sales-amount >ext mytot=$subtotal(sales-amount,ordnum) >out sales,link >xeq

10 $Split n $split function n Extracts out variable length strings from data n Extract from beginning to “/” character >extract first-name=$split(name,first,”/”) >extract last-name=$split(name,”/”,last) n Can also split on multiple occurrences of a certain character Consider the following data: Armstrong/ Neil/ Patrick Green/ Bob/ Miller Edwards/ Janine/ Armstrong/Arthur/Derek

11 $split details n Occurrence is honored n No need to specify an occurrence of one n Can nest inside a $trim or similar string function n $split does check for overflow n First and Last keywords available

12 $edit n $edit function n Converts from numeric or byte to formatted string of bytes n Uses syntax and rules similar to Cobol Edit-Masks n Placeholders and Format characters n Two sets of rules byte type and numeric based on source data type n >ext formatdate=$edit(a,"xxxx/xx/xx") n FORMATDATE = 2003/09/24

13 Numeric source $edit masks n Numeric source $edit masks >ext a=$edit(int-field,"$$,$$$.99-") >ext b=$edit(int-field,"99, ") >ext c=$edit(int-field,"cr ") >ext d=$edit(int-field,"-$ ") >ext e=$edit(int-field,"**,***.99+") >ext f=$edit(int-field,"zz,zzz.99+") >list >xeq >IN FILE1SD.NEIL.GREEN (0) >OUT $NULL (0) A = $ B = 00, C = CR D = -$ E = **** F = 11.11

14 Handling the sign n +, -, CR and DB allowed n Depends on state of the data n Positive, negative, neutral

15 Rules for $ sign n Fixed $ sign edit n Floating $ edit invoked if two “$$” appear in the edit mask n Suprtool attempts to fixup most odd cases –$, becomes $123.45

16 Decimal places n Data is adjusted to number of decimal places n Default Decimal symbol is “.” n Can be changed to “,” or any other single character n Source field decimal value is honored

17 Currency symboland overflow n Currency symbol can be up to four characters n Set currencysymbol “$” n Suprtool by default will not stop if overflow occurs n Set editstoperror on

18 $number n $number function n Converts free-form numbers to numeric in one step n Honors signs, decimal places and currency symbols This means numbers in New-Price can be read by $number: Item-number New-Price

19 $number details n Rounding and decimal places n Error conditions n Currency, Decimals and thousand symbols

20 Suprlink n Combines two files by common key n Link command allows for many to one relationship n Join command allows for many to many relationships n SQL- like feature n Inner Join n Outer Join

21 SQL continued n Left Outer Join n Right Outer Join n Simple Join task

22 Join continued n Only one Join per task n Can specify a secondary key to join on

23 Output,else n One Process Output two files n If condition n Output,else = if NOT condition n MPE Temp file n Other Platforms filename.else

24 Set FastRead On n MPE and MR Nobuf n Set FastRead uses Eloquence Block read routines n Two to Five times faster n Less CPU and Wall Time

25 Dynamic Loading n Dynamically loads whatever version of Eloquence library you have n Shlib_path n Most applications providers set this for you n Enhancement for the future

26 Dbedit n Edit Single Records n Popular in MPE version for editing/fixing single records n Now will work with Eloquence databases on HP-UX

27 Future n Reporting? n More work in a single pass