Dealing with External Data

Slides:



Advertisements
Similar presentations
Overview and Demonstration of declarative workflows in SharePoint using Microsoft SharePoint Designer 2007 Kevin Hughes MCT, MCITP, MCSA, MCTS, MCP, Network+,
Advertisements

CC SQL Utilities.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
1 Chapter 12 Working With Access 2000 on the Internet.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Tutorial 8 Sharing, Integrating and Analyzing Data
Chapter 14: Advanced Topics: DBMS, SQL, and ASP.NET
Tutorial 11: Connecting to External Data
5 Copyright © 2009, Oracle. All rights reserved. Defining ETL Mappings for Staging Data.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
Collections Management Museums EMu 3.1 / 3.2 – New Features EMu 3.1 / 3.2 New Features Bernard Marshall Chief Technology Officer KE Software.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Batch Import/Export/Restore/Archive
WebFOCUS Developer Studio Update Dimitris Poulos Technical Director September 3, 2015 Copyright 2009, Information Builders. Slide 1.
Copyright © 2006, SAS Institute Inc. All rights reserved. Enterprise Guide 4.2 : A Primer SHRUG : Spring 2010 Presented by: Josée Ranger-Lacroix SAS Institute.
Chapter 2: Working with Data in a Project
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty Aug 31,2015
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Using SAS® Information Map Studio
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
Data Management Console Synonym Editor
Introduction to the Adapter Server Rob Mace June, 2008.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
1 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Accessing Remote Data 2.4 Importing Text Files.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
 CONACT UC:  Magnific training   
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty Jan 20,2016
WebFOCUS and Microsoft® Office: Working Together
Data Virtualization Tutorial: Custom Functions
Project Management: Messages
Creating Oracle Business Intelligence Interactive Dashboards
Miscellaneous Excel Combining Excel and Access.
Working in the Forms Developer Environment
Developer 2000 CSE 4504/6504 Lab.
GO! with Microsoft Office 2016
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Physical Changes That Don’t Change the Logical Design
LOCO Extract – Transform - Load
Data Virtualization Tutorial… CORS and CIS
Data Virtualization Tutorial: XSLT and Streaming Transformations
GO! with Microsoft Access 2016
GO! with Microsoft Access 2016
Quick Start: Metadata Basics
WebFOCUS & Microsoft® Office: Working Together
Data Virtualization Tutorial: JSON_TABLE Queries
Data File Import / Export
Pentaho and Yahoo User Interface (YUI)
Microsoft Access 2003 Illustrated Complete
ORACLE SQL Developer & SQLPLUS Statements
Lesson 1: Introduction to Trifacta Wrangler
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Chapter 8 Working with Databases and MySQL
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Data Model.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Navya Thum January 30, 2013 Day 5: MICROSOFT EXCEL Navya Thum January 30, 2013.
Database Applications
Introducing Schoolwires Forms & Surveys Module
Contents Preface I Introduction Lesson Objectives I-2
Links Launch Outlook Launch Skype Place Skype on Do Not Disturb.
Tutorial 8 Sharing, Integrating, and Analyzing Data
Presentation transcript:

Dealing with External Data William Poppe Curriculum Developer

Objectives Report from an Excel file by using the Adapter for Excel (via direct retrieval) Select records by using an External File that contains a literal list of values Use the Upload Data utility to load a comma-delimited file into a table in SQL Server

The Direct Excel Adapter

The Direct Excel Adapter Prior to 7.7.02 ODBC Connection As of 7.7.02 Adapter for Excel (via direct retrieval)

A Management Request MetroCycles is implementing a reporting application for its corporate employees located in several departments such as Human Resources and Sales. The field offices send their sales data to headquarters in the form of Excel workbooks . The Corporate Business Analysts need to analyze data sent from the field offices using WebFOCUS.

Management Request

Task Plan To accomplish this task, you will act as a Developer and perform the following steps: Use the WebFOCUS Direct Excel Data Adapter to create a synonym for an Excel file. Use the Synonym Editor to change the attributes for several columns. Use App Studio to create a report from the Excel file. Use the HTML Canvas to create a launch page for the report. Test your work.

The Excel File You will be uploading an existing Excel file (prodsale.xlsx), which is contained in the metro folder.

WebFOCUS Requirements There are two requirements for WebFOCUS to read a data source. A data adapter must be configured to access a data source by providing a connection to the target data. Data adapters manage the communication between the WebFOCUS Reporting Server and the data source. Metadata must be created for the data source. Metadata are the different items that helps the WebFOCUS Server understand the characteristics of the data source you want to use for discovery, such as the data type, where it is located, the data contents, and how to connect to it. The metadata, also known as a synonym, also provides support for extended metadata features such as virtual fields and additional security mechanisms.

In App Studio Open App Studio Access the Reporting Server Console

The Reporting Server Console The WebFOCUS Reporting Server: Manages data access, processing of business logic, and generation of fully styled output. Has access to report procedures, WebFOCUS StyleSheets, and metadata (data source descriptions).

The Direct Excel Adapter Access the Adapters.

The Direct Excel Adapter The Adapter for Excel (via direct retrieval) supports direct retrieval from Excel files (.xls and .xlsx files). The Adapter for Excel is available as a named adapter on the Web Console in the Sequential and Indexed folder.

Create a Synonym

Creating a Synonym Create the Synonym

Identify the Excel file Browse to select the Excel file.

Identify the Excel file Locate the Excel file in the metro app.

Create the Synonym Click Next.

Create the Synonym Select Synonym candidates for Excel opens.

Create the Synonym Change the name of the Default Synonym Name from Sheet1_PRODSALES to PRODSALES.

Create the Synonym The Synonym has been created successfully. Close the Reporting Server.

The Synonym The synonym contains a Master File (.mas) and an Access File (.acx).

A Synonym A synonym is comprised of two files: Master File – contains the structure of the data source, the names, data types and attributes of the fields. Access File – contains additional information that completes the description of the data source for the application, such as the full name and location of the data source.

The Master File The Master File contains the following: A SUFFIX=DIREXCEL, the suffix used by default when uploading Excel files. The DATASET file attribute points to the location of the uploaded Excel file, which in this case is DATASET= metro/prodsale.xlsx.

Create a Synonym Check your work.

The Synonym Editor The default properties of a column can be centralized and included in a synonym. These include: Column headings Display formats Open the Synonym Editor.

The Synonym Editor The Synonym Editor

The TITLE Attribute You can create a custom column heading through the TITLE attribute. The text of the TITLE can be up to 64 characters in length, mixed case, and stacked up to five lines. The column heading described in a TITLE can be overridden in a report request.

The TITLE Attribute In a similar way, change the default column heading for the PROD_SUBCAT column.

The USAGE and ACTUAL Attributes It is possible to change how a column displays in a report (USAGE attribute) without affecting how it is stored (ACTUAL attribute). USAGE - Defines the type of data and the number of characters that the field can contain, and how to display the field in reports or in calculations. ACTUAL - Describes the type and length of the field as it is actually stored in the original data source.

Add a Comma to QUANTITY Add a comma to the QUANTITY column display properties.

Change a Column Display Change how the UNIT_PRICE column displays. Remove the two decimal places.

Change a Column Display Change how the UNIT_PRICE column displays. Remove the two decimal places. Add a currency symbol (a dollar sign - $).

Change a Column Display Do the same for the LINE_PRICE column. Remove the two decimal places. Add a currency symbol (a dollar sign - $).

Save your Work Save and close the Synonym.

Check the Synonym Verify your Changes.

Produce a Report

Produce a Report Open a procedure.

Add a Sub-Total Add a Sub-Total for the Order Year column.

Add a StyleSheet Add a WebFOCUS StyleSheet to the report.

Add a Variable Instead of using hard-coded values in a procedure, WebFOCUS allows the value of a variable to be supplied dynamically at run time. Add a variable for Order Year.

Add a Variable The Expression Builder.

Add a Variable The Variable Editor opens: WHERE PRODSALES.PRODSALES.ORDER_YEAR EQ &ORDER_YEAR.(OR(FIND PRODSALES.PRODSALES.ORDER_YEAR IN PRODSALES)).Please select a Year.;

Run the Procedure WebFOCUS generates a launch page through the Auto Prompt facility.

Close the Procedure

Create a Launch Page

Create a Launch Page The App Studio HTML Canvas allows you to create launch pages for your procedures. To save time, a starting template has been created for you.

Create a Launch Page The template opens.

Create a Launch Page Insert a New Report.

Create a Launch Page Add a Reference to an existing procedure.

Create a Launch Page Select the procedure.

Create a Launch Page Customize the configuration of the controls.

Create a Launch Page Reposition the objects.

Create a Launch Page Run the Launch Page.

Create a Launch Page Save your Work.

Selection with an External File

Selection with an External File WebFOCUS allows the values to be referenced that are stored in an external file. This method allows records to be selected based on equality (or inequality) tests on values stored in the file. When using this technique, an FILEDEF command is required to point WebFOCUS to the physical location of the external file. BIKELIST.dat Product_Bike_List_Report.fex

Selection with an External File The advantages of using this technique are the following: Maintaining the external file is easy. Any text editor, like Notepad can be used to add, change, or delete instances in the file. Consistency is assured since the centrally located file may be referenced by one or multiple procedures. The external file may be generated dynamically by a procedure and stored in a HOLD or SAVE file in simple character (ALPHA) format.

A Management Request MetroCycles is implementing a reporting application for its corporate employees located in several departments such as Human Resources and Sales. The Inventory Manager needs a current price list for certain Bicycle products. However, she is supplying us with a list in the form of a flat file (BIKELIST.dat). Is there a way to accomplish this task?

Selection with an External File The rules for this method are the following: Each value must be on a separate line. The first value must start in column one. The values are assumed to be in character format. The literal list is restricted to 32,767 values. Since there is only one value per line, 32,767 lines.

Selection with an External File Open the product_bike_list_report.fex.

The FILEDEF Command The FILEDEF (file definition) command assigns a logical name to a physical file name and specifies file attributes. You can explicitly define an individual file and its location to WebFOCUS using the FILEDEF command. A FILEDEF command can be issued in a procedure and remain in effect for the duration of a single request.

The FILEDEF Command Source Code Syntax Examples: FILEDEF filename DISK location Examples: FILEDEF MYFILE DISK BASEAPP/MYFILE.FTM FILEDEF MYFILE DISK C:\IBI\APPS\BASEAPP\MYFILE.FTM

The Allocation Wizard Use the Allocation Wizard:

The Allocation Wizard Use the Allocation Wizard to create the FILEDEF: FILEDEF BIKELIST DISK metro/BIKELIST.dat

The Selection Statement Next, add the selection statement for the file: WHERE AWV_PRODUCT.AWV_PRODUCT.PRODUCT_NUMBER IN FILE BIKELIST;

The Selection Statement Use the Expression Builder Sample Source Code: WHERE [NOT] fieldname IN FILE filename; or – IF fieldname [EQ or NE] (filename)  

The Selection Statement Run the procedure.

The Selection Statement Save and close your Work.

Uploading Data with ETL

Uploading Data with ETL Extract, Transform and Load You can upload (import) external data files for use in WebFOCUS. This functionality enables you to easily create a WebFOCUS file description and data file for use in your reporting application. The option is available in the Web Console of the Reporting Server, with appropriate user permissions.

Uploading Data with ETL When the following types of files are uploaded, a synonym is created for each as part of the upload process: Delimited flat files. Among the file types you can upload are: txt, csv, ftm, dat, and tmp. The Upload Data facility supports a wide range of delimiters and enclosure options. Excel Workbooks. You can upload and create synonyms for multiple worksheets. The Upload Data facility supports Named Ranges in Excel® worksheets. XML files - for Extensible Markup Language files. JSON files - For JavaScript Object Notation files.

A Management Request MetroCycles is implementing a reporting application for its corporate employees located in several departments such as Human Resources and Sales. The Product Manager would like us to load the updated price for each product into the RDBMS. However, the format of the data is a comma-delimited file. Is there a way to accomplish this task?

The Comma-Delimited File The new price information is contained in a comma-delimited file (NLPRICE.csv).

The Comma-Delimited File Test the existing comma-delimited file (NLPRICE.csv).

Upload Data Start the Upload Data process

Upload Data Select the file.

Upload Data Start the process.

Upload Data Change the Parameters and Run.

Upload Data The file has been loaded successfully.

Upload Data WebFOCUS has converted the comma-delimited file into an SQL table equipped with its own a Master File (nlprice_t).

Upload Data The data has been added to SQL Server as a table.

Upload Data The Master File for the SQL table - nlprice_t displays in the metro application.

Upload Data Check your Work.

Upload Data Return to App Studio.

What’s Next? If You Are Going to Be: Then You Should Take: An administrator or developer, who wants to build data marts, data warehouses, and operational data stores. This course enables you to extract and stage disparate data types, across multiple platforms, while applying business rules to transform and cleanse data to load data warehouses. Data Migrator Essentials An administrator, developer or application programmer who wants to learn how to interpret the data used in an application. This self-study course enables you to create, manage and enhance a WebFOCUS metadata (Master File and Access File), key components in a WebFOCUS application. Metadata Essentials using App Studio – Part 1 (Self-study)

Contact Us – Customer Education Our Curriculum includes: Instructor-Led Online Training Online Movie Library Instructor-Led Seminar eGuide Subscription Self-Paced Training

Please Contact Us Call 1-800-969-INFO Visit us on the Web at www.informationbuilders.com \education

Presentation: Review Report from an Excel file by using the Adapter for Excel (via direct retrieval) Select records by using an External File that contains a literal list of values Use the Upload Data utility to load a comma-delimited file into a table in SQL Server

Dealing with External Data Thanks for Attending!