“You Asked For It, You Got It!” Best New [Backend ] Features of WebFOCUS 7.7.03 Renee Teatro Information Builders December 2011.

Slides:



Advertisements
Similar presentations
Database Ed Milne. Theme An introduction to databases Using the Base component of LibreOffice LibreOffice.
Advertisements

Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification.
Copyright 2007, Information Builders. Slide 1 Relational Efficiencies: Part II Overview and JOIN / Sort Scenarios Renee Teatro Information Builders.
McGyver for Dynamic Subtotals/Subfoots Presented by David Smith of Brinker International.
World Class Financial Reporting with FRx Report Writer Elisa R. Vick
Copyright 2007, Information Builders. Slide 1 Accumulation Techniques for Reporting with WebFOCUS Kyle Hachey Systems Engineer.
1 Copyright 2007, Information Builders. Slide 1 Nat Poe WebFOCUS Debugging Techniques.
Introduction to Structured Query Language (SQL)
Developing Effective Reports
Cognos 8.4 Upgrade Business Intelligence. Why Cognos 8.4 Increased Performance on Database due to optimized SQL and more filters passed in native SQL.
Database Systems More SQL Database Design -- More SQL1.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
A Guide to SQL, Seventh Edition. Objectives Retrieve data from a database using SQL commands Use compound conditions Use computed columns Use the SQL.
Microsoft Access 2010 Chapter 7 Using SQL.
WRITING BASIC SQL SELECT STATEMENTS Lecture 7 1. Outlines  SQL SELECT statement  Capabilities of SELECT statements  Basic SELECT statement  Selecting.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Database Programming Sections 5– GROUP BY, HAVING clauses, Rollup & Cube Operations, Grouping Set, Set Operations 11/2/10.
1 Copyright © Oracle Corporation, All rights reserved. Writing Basic SQL SELECT Statements.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports.
Developing Effective Reports
ASP.NET Programming with C# and SQL Server First Edition
Copyright 2007, Information Builders. Slide 1 Tips and Techniques for FOCUS 76 Did You Know? Walter F. Blood Information Builders, Inc.
Chapter 3 Single-Table Queries
October 2003Bent Thomsen - FIT 3-21 IT – som værktøj Bent Thomsen Institut for Datalogi Aalborg Universitet.
“You Asked For It, You Got It!” Best New [Backend ] Features of WebFOCUS Walter Blood Noreen Redden Joel Starkman Information Builders, Inc. August,
WebFOCUS Tips and Techniques WebFOCUS Tips and Techniques The Next Generation.
Tips n Techniques Jenny Lalik. Report Styling Enhancements for 7.7  Accordion By Row  Excel 2007 Output Format  Hide Null Across Columns  Pass dates.
1 Data List Spreadsheets or simple databases - a different use of Spreadsheets Bent Thomsen.
XP 1 Excel Tables Purpose of tables – Process data in a group – Used to facilitate calculations – Used to enhance readability of output Types of tables.
Microsoft Access 2010 Building and Using Queries.
SQL/Lesson 4/Slide 1 of 45 Using Subqueries and Managing Databases Objectives In this lesson, you will learn to: *Use subqueries * Use subqueries with.
SQL: Data Manipulation Presented by Mary Choi For CS157B Dr. Sin Min Lee.
PowerBuilder Online Courses - by Prasad Bodepudi
SQL (DDL & DML Commands)
Tips n Techniques Jenny Lalik. Report Styling Enhancements for 7.7  Accordion By Row  Excel 2007 Output Format  Hide Null Across Columns  Pass dates.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 19 Organizing and Enhancing Worksheets 1 Morrison / Wells / Ruffolo.
“You Asked For It, You Got It!” Best New [Backend ] Features of WebFOCUS Walter Blood Noreen Redden Joel Starkman Information Builders, Inc. June.
BACS 287 Structured Query Language 1. BACS 287 Visual Basic Table Access Visual Basic provides 2 mechanisms to access data in tables: – Record-at-a-time.
XP. Objectives Sort data and filter data Summarize an Excel table Insert subtotals into a range of data Outline buttons to show or hide details Create.
Chapter 6 Creating, Sorting, and Querying a Table
Copyright 2007, Information Builders. Slide 1 FOCUS Internals: Part 2 Update for 7.6.x Renee Teatro FUN Conference August 2008 Internals of Output Processing.
1 Guide to Oracle10G CHAPTER 7: Creating Database Reports 7.
1 Lesson 13 Organizing and Enhancing Worksheets Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Working with Data Lists.
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
Overview Excel is a spreadsheet, a grid made from columns and rows. It is a software program that can make number manipulation easy and somewhat painless.
Microsoft® Excel Create an Excel table. 1 Work with the Table Tools Design tab. 2 Sort and filter records in a table. 3 Identify structured references.
JOIN Syntax and Techniques Noreen Redden Information Builders Copyright 2011, Information Builders. Slide 1.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
A Guide to SQL, Eighth Edition Chapter Four Single-Table Queries.
Copyright 2007, Information Builders. Slide 1 TABLE FILE: The Basics Noreen Redden FOCWizard June, 2008.
25 Copyright © 2009, Oracle. All rights reserved. Showing Results with Pivot Tables.
21 Copyright © 2009, Oracle. All rights reserved. Working with Oracle Business Intelligence Answers.
Chapter 4 Crystal Report Presenter: PEN PHIROM (MscIT) Phone:
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
N5 Databases Notes Information Systems Design & Development: Structures and links.
More SQL: Complex Queries, Triggers, Views, and Schema Modification
Dealing with External Data
Writing Basic SQL SELECT Statements
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
The Basics of FOCUS Reporting Syntax
Using the Set Operators
Creating Database Reports
Contents Preface I Introduction Lesson Objectives I-2
Using the Set Operators
Bent Thomsen Institut for Datalogi Aalborg Universitet
Shelly Cashman: Microsoft Access 2016
Presentation transcript:

“You Asked For It, You Got It!” Best New [Backend ] Features of WebFOCUS Renee Teatro Information Builders December 2011

You Asked For It, You Got It! Active Reports for FOCUS Removal of interactive ?F and ?FF prompting Business Views for FOCUS _FOC_NULL Reformatting BY and ACROSS fields Support WHERE clause in DBA VALUE restriction &DATEfmt with date-time formats ACROSS COLUMNS x AS 'title' OR y AS 'title' Across value format in EXL07 ALIAS=INSTANCE COLLATION in the Master CRINCLUDE=ALL CRJOINTYPE DATASET for HOLD DEFINE FUNCTION automatic inclusion DYNAM DEFAULT Extension to SET DROPBLNKLINE Extension to SET HOLDATTR File qualification for MFD constant FILEDEF for holiday file HHMS Function HOLD FORMAT MAGNIFY IOTYPE in Master MFD Profile phase 2 Multi-parent Masters (MFACT) Multipath as MATCH (MFACT) Preserving leading and trailing blanks in DFIX Retrieve data associated with a prefixed field SET DISTRIBUTE SET ROWTOTFORM Simplify FOCUS cache Subqueries in Master Support C notation wherever fieldnames are supported Support for global variables as index for indexed variables TOC Styling Validating &vars to prevent SQL insertion WHERE fld EQ (FILENAME) DATASET for HOLD on PDS MISSING test support for TX fields Optimizing SUBSTR Unequal size GROUPS/RANGES Fiscal year subroutines LCWORD3 BYTEORDER in Master Extended currency symbol for Thailand and China HOLD FORMAT DB2 and index creation Sort objects in Master Support MFD DBA Restrictions in nested Adapter calls Null value testing in left outer JOIN request Ignore ON phrases for absent fields Increased length of all fields Access restrictions in multi-file structure 1024 segments 128 sort phrases in one request 32 gigabyte XFOCUS databases Longer DEFINE FUNCTION names Add and configure fonts Overflow Excel worksheets Position ACROSS titels on report Multiple DST operators in one report Multiple conditional headings and footings Summary lines above the data Record selection without wildcard characters Absolute value display TITLE and DESC for virtual fields FPRINT field conversion function Extract date component as an integer 64-character Dialogue Manager labels -READFILE to read mfd fields into DM variables

You Asked For It, You Got It! WebFOCUS and FOCUS are Like Twins finally brings together WebFOCUS and FOCUS Virtually identical backend features and functionality New features hit all products and platforms together Minimal difference between internal code paths Focexecs work identically in either product Bugs are fixed once for everyone

You Asked For It, You Got It! MASTER TABLE OUTPUT and Efficiencies

TABLE OUTPUT and Efficiencies You Asked For It, You Got It! MASTER MetaTable in the Master (Compute/Filter) DBA WHERE Extended Limits Absolute Value format Business Views

You Asked For It, You Got It! FILTER in MFD FILE = filename SEGMENT = FIELD=FIELD1,, A3,$ FIELD=FIELD2,, A4,$ DEFINE DEFFIELD/A7 = FIELD1 | FIELD2 ;,$ FILTER FILTFIELD = FIELD1 NE FIELD2;,$ TABLE FILE filename PRINT FIELD1 FIELD2 DEFFIELD WHERE FILTFIELD END MASTER FOCEXEC Put your global filters into the metadata for general availability * No operator, no expression Filter format is always I1 * Works independently of FILTER FILE syntax Expression must resolve to 0 or 1 (false or true)

You Asked For It, You Got It! COMPUTE in MFD FILE = filename SEGMENT = FIELD=FIELD1,, A3,$ FIELD=FIELD2,, A4,$ DEFINE DEFFIELD/A7 = FIELD1 | FIELD2 ;,$ COMPUTE COMPFIELD /D12.2 = IF…THEN…ELSE… ;,$ TABLE FILE filename PRINT FIELD1 FIELD2 DEFFIELD COMPUTE COMPFIELD; END MASTER FOCEXEC Put global Computes into the metadata for general availability No operator, no expression, add semicolon Any format Any expression

You Asked For It, You Got It! WHERE in DBA FILE = SEGMENT = FIELD= END DBA USER=XYZ, …RESTRICT=VALUE,VALUE=ITEM NE RADIO FILE = SEGMENT = FIELD= END DBA USER=XYZ, …RESTRICT=VALUE_WHERE, VALUE=ITEM NE RADIO USER=ABC, …RESTRICT=VALUE_WHERE, VALUE=ITEM NE ‘RADIO’ AND BB NE AA MASTER Use WHERE in DBA instead of IF MASTER More complex expressions IF WHERE

You Asked For It, You Got It! Absolute Value Format Option FILE = filename SEGMENT = FIELD= VALUE1,, FORMAT = F8.2,$ DEFINE VALUE2/F8.2AM = VALUE1;,$ DEFINE VALUE3/D8.2B = VALUE1;,$ DEFINE VALUE4/D12.2Ac = VALUE1;,$ VALUE1 VALUE2 VALUE3 VALUE $ [1,484.27] MASTER IF implied REPORT A – absolute value Column totals add original signed values !! A – absolute value

A VIEW into the original file – no new data, no separate extraction  Reflect the business instead of physical field arrangement  Have as many different Business Views as required; Direct via USE  BV recognized only for extract (TABLE[F], GRAPH, MATCH, MORE)  JOIN a Business View to other files  Limit the fields accessible in the main file, without DBA  Make OS impose a View via security MFD Business View Original FILE=ORIG, SUFFIX=any FILE=anyname, CRFILE=ORIG FOLDER= You Asked For It, You Got It! Business “View” of a Database

FILE=ORIG, SUFFIX=FOC SEGNAME=SEG1, … FIELD=SOCSECNO, … FIELD=NAME, … FIELD=SALARY, … SEGNAME=SEG2, PARENT=SEG1 FIELD=COMPANY, … FILE=ORIG, SUFFIX=FOC SEGNAME=SEG1, … FIELD=SOCSECNO, … FIELD=NAME, … FIELD=SALARY, … SEGNAME=SEG2, PARENT=SEG1 FIELD=COMPANY, … FILE=BUSVIEW, … SEGNAME=SEG1, CRFILE=ORIG, CRINCLUDE=ALL, $ FOLDER=FOLDER1,$ FIELD=FULLNAME,, ALIAS=NAME,$ FIELD=SSN,, ALIAS=SOCSECNO,$ FIELD=COMPANY,,TITLE=‘CO NAME’,$ FILE=BUSVIEW, … SEGNAME=SEG1, CRFILE=ORIG, CRINCLUDE=ALL, $ FOLDER=FOLDER1,$ FIELD=FULLNAME,, ALIAS=NAME,$ FIELD=SSN,, ALIAS=SOCSECNO,$ FIELD=COMPANY,,TITLE=‘CO NAME’,$ Rename or rearrange fields without touching original file Each Business View field relates (maps) to an original field TABLE with BV field names translates to original names Attributes and relationships are taken from the original field New DEFINEs permitted in Business View master SET FOCTRANSFORM = ON You Asked For It, You Got It! Business “View” of a Database This Business View omits SALARY

You Asked For It, You Got It! Extended Limits 256K total length of all fields in a request 1022 segments in JOIN or COMBINE 64 character Define Function name 32 gigabyte XFOCUS partition 128 BY sort phrases

You Asked For It, You Got It! TABLE OUTPUT and Efficiencies MASTER Across Print Hide Null Across Heading When Subtotal Above

TABLE FILE EMPDATA PRINT 'EMPDATA.EMPDATA.SALARY' BY 'EMPDATA.EMPDATA.MAJ' NOPRINT BY 'EMPDATA.EMPDATA.LCAREA' AS 'Area' ACROSS 'EMPDATA.EMPDATA.LCDEPT' AS 'Dept:‘ WHERE LCDEPT EQ 'Admin Services' OR 'Consulting' OR 'Accounting' OR 'Marketing' ON EMPDATA.EMPDATA.MAJ SUBTOTAL AS '' ON EMPDATA.EMPDATA.MAJ PAGE-BREAK HEADING "Compensation Report“ … You Asked For It, You Got It! ACROSSPRT and HIDENULLACRS One column for each value One line per record retrieved

COMPENSATION REPORT DEPT AccountingAdmin Services AREA Central.....$25, North Eastern PAGE 1 You Asked For It, You Got It! ACROSSPRT and HIDENULLACRS One column for each ACROSS value No values in Accounting column

SET ACROSSPRT = COMPRESS  Eliminates MISSING cells  Moves up non-missing values within BY  Default is NORMAL SET HIDENULLACRS = ON  Null ACROSS columns are removed when no value exists for that ACROSS column within the BY group  BY group must specify PAGE-BREAK  Higher “BY” SUBTOTAL may force column display  Ignored with ACROSS FIELD COLUMNS value …  Default is OFF You Asked For It, You Got It! ACROSSPRT and HIDENULLACRS

COMPENSATION REPORT DEPT: Admin ServicesConsultingMarketing AREA Central$25, $62, North Eastern..$55, $52, $32, South Eastern.$49,500.00$62, $35,900.00$50, Western$30,800.00$40,900.00$43, $58, Branch Admin$56,200.00$126,300.00$417, PAGE 1 You Asked For It, You Got It! ACROSSPRT and HIDENULLACRS SET ACROSSPRT=COMPRESS Empty rows are removed SET HIDENULLACRS=ON Accounting column is suppressed Columns may change per pagebreak

COMPENSATION REPORT DEPT: AccountingMarketing AREA Corporate$83,000.00$55, $32,400.00$62, $79,000.00$35, $62, $26, Total Corp$283,300.00$153, PAGE 2 You Asked For It, You Got It! ACROSSPRT and HIDENULLACRS SET HIDENULLACRS=ON Accounting column returns on this page

SET SUMMARYLINES = EXPLICIT SET SUBTOTALS = ABOVE TABLE FILE EMPDATA PRINT PIN SALARY AS 'Pay' BY MAJ NOPRINT PAGE-BREAK REPAGE SUBTOTAL BY AREA NOPRINT PAGE-BREAK ON AREA SUBTOTAL AS 'Total Area' WHEN MAJ NE 'Corporate' BY DEPT AS 'Department' You Asked For It, You Got It! Subtotals Above the Line Code continues…

HEADING CENTER "&DATEMTRDYY Compensation Report " HEADING "Corporate Division " WHEN MAJ EQ 'Corporate'; HEADING "<MAJ " "<AREA " WHEN MAJ NE 'Corporate' AND TABPAGENO EQ 1; HEADING "<MAJ (Continued) " "<AREA " WHEN MAJ NE 'Corporate’ AND TABPAGENO GT 1 ; END You Asked For It, You Got It! Headings WHEN This heading always appears

Compensation Report Branch Admin Central DepartmentPINPay Total Branch Admin$1,592, Total Area Central$493, ADMIN SERVICES $25, MARKETING $62, PERSONNEL $33, PERSONNEL $25, PERSONNEL $45, PROGRMING & DVLPMT $49, PROGRMING & DVLPMT $40, SALES $54, SALES $115, SALES $43, Page 1 of 4 You Asked For It, You Got It! Subtotals Above and Headings WHEN SET SUBTOTALS = ABOVE Subtotals moved above detail lines HEADING WHEN 2 headings selected

Compensation Report Branch Admin (Continued) North Eastern DepartmentPINPay Total Area North Eastern$304, CUSTOMER SUPPORT $19, CUSTOMER SUPPORT $62, MARKETING $55, MARKETING $52, MARKETING $32, SALES $39, SALES $43, Page 2 of 4 You Asked For It, You Got It! Subtotals Above and Headings WHEN HEADING WHEN 2 different headings selected (due to page 2) Subtotal above detail

Compensation Report Corporate Division DepartmentPINPay Total Corporate$436, ACCOUNTING $83, ACCOUNTING $32, ACCOUNTING $79, ACCOUNTING $62, ACCOUNTING $26, MARKETING $55, MARKETING $62, MARKETING $35, Page 1 of 1 You Asked For It, You Got It! Subtotals Above and Headings WHEN HEADING WHEN just Corporate heading selected Subtotal above detail

TABLE You Asked For It, You Got It! OUTPUT and Efficiencies MASTER Active Reports Output to Powerpoint SQL Efficiencies Character Collation MFACT – Multipath Handling

You Asked For It, You Got It! Output and Efficiencies Active Reports for FOCUS  Provide enduser the same ability to manipulate report  Limited to HTML reports  Complete report including javascript created in FOCUS TABLE FILE filename SUM …. … ON TABLE HOLD AS ABC FORMAT AHTML END

You Asked For It, You Got It! Active Reports for FOCUS COUNTRYCARMODELRETAIL_COSTDEALER_COSTSALES ENGLANDJAGUARV12XKE AUTO8,8787,4270 *TOTAL MODEL V12XKE AUTO8,8787,4270 XJ12L AUTO13,49111, *TOTAL MODEL XJ12L AUTO13,49111, *TOTAL CAR JAGUAR22,36918, JENSENINTERCEPTOR III17,85014,9400 *TOTAL MODEL INTERCEPTOR III17,85014,9400 *TOTAL CAR JENSEN17,85014,9400 TRIUMPHTR75,1004,2920 *TOTAL MODEL TR75,1004,2920 *TOTAL CAR TRIUMPH5,1004,2920 *TOTAL COUNTRY ENGLAND45,31937, ON TABLE HOLD FORMAT HTML

You Asked For It, You Got It! Active Reports for FOCUS ON TABLE HOLD FORMAT AHTML

You Asked For It, You Got It! Active Reports for FOCUS Additional Stylesheet Controls allow you to –  Apply calculations to columns and control display location  Control data display by hiding or freezing columns  Control the user menu display  Limit the number of rows per page  Add graphic visualization of numeric data  Customize colors for most of the report components  Control the Report Menu options available to the user

TABLE FILE CAR HEADING CENTER "CAR SALES - CURRENT STATISTICS" "CREATED ON &DATEMTRDYY" "FOR COUNTRY <COUNTRY" " SUM RCOST DCOST SALES BY COUNTRY PAGE-BREAK NOPRINT BY CAR UNDER-LINE NOPRINT ON CAR SUBHEAD "Current Sales for <CAR " " BY MODEL SUB-TOTAL MULTILINES ON TABLE HOLD AS PPT4 FORMAT PPT ON TABLE SET STYLE * You Asked For It, You Got It! Output to Powerpoint Instant Presentations HOLD FORMAT PPT

You Asked For It, You Got It! Output to Powerpoint WebFOCUS Graphics ! WebFOCUS Reports Dashboard, Graphics Excel, HTML, PDF Visual Discovery

More Optimization to speed your requests!  DEFINE FUNCTION – optimized where possible  Boolean expressions – optimized as SQL CASE statements  SQL. -- passed directly to the relational engine  DEFINE and IFTHENELSE – optimized as SQL CASE or SQL COUNT statements  WebFOCUS sorting optimized to ORDER BY expression You Asked For It, You Got It! SQL Efficiencies

Copyright 2007, Information Builders. Slide 32 When does DIGITAL = digital?  In 7.7 – with SET COLLATION !  SET COLLATION = {BINARY|SRV_CI|SRV_CS|CODEPAGE}  Case Insensitive -- all WHERE tests and sorts ignore the case of the elements being compared.  Affects sorting, WHERE conditions, Comparison in Calculations, StyleSheets  ** Server only Setting **** You Asked For It, You Got It! SET COLLATION

Copyright 2007, Information Builders. Slide 33 DEFINE FILE CENTINV FLAG/A1=IF CENTINV.INVINFO.PRODNAME CONTAINS 'ZT' THEN '$' ELSE 'Y'; END SET EQTEST = &EQTEST TABLE FILE CENTINV PRINT 'CENTINV.INVINFO.FLAG' 'CENTINV.INVINFO.PRICE' BY 'CENTINV.INVINFO.PRODNAME' HEADING " Setting of EQTEST is &EQTEST “ “ COLLATION is set to SRV_CI “ " Filter: WHERE CENTINV.INVINFO.FLAG EQ '$'; “ " AND PRODTYPE EQ 'DIGITAL'; " FOOTING "" WHERE ( CENTINV.INVINFO.FLAG EQ '$' ) AND ( CENTINV.INVINFO.PRODTYPE EQ 'Digital' ); … You Asked For It, You Got It! Collation

Setting of EQTEST is EXACT COLLATION is set to SRV_CI Filter: WHERE CENTINV.INVINFO.FLAG EQ '$' AND PRODUCT CONTAINS 'DIGITAL'; Product Name: FLAG Price: ZT Digital PDA – Commercial $ Copyright 2007, Information Builders. Slide 34 You Asked For It, You Got It! SET COLLATION

 Sort within request must be consistent - all sort fields within path of all verb objects  Multiple parents requires change to this requirement  SET FOCTRANSFORM = MFACT supports requests where sorts are applicable to only some of the verb objects  Request is decomposed to MATCH to sort the appropriate fields, followed by TABLE to format and display the results You Asked For It, You Got It! MFACT for Multi-Path

EMPINFO SALINFOPAYINFO TABLE FILE EMPLOYEE SUM SALARY GROSS BY EID BY LAST_NAME BY HIGHEST DAT_INC BY PAY_DATE END BY EID BY LAST_NAME BY PAY_DATE BY DAT_INC

You Asked For It, You Got It! MFACT for Multi-Path PAGE 1 EMP_ID LAST_NAME DAT_INC PAY_DATE SALARY GROSS STEVENS 82/01/01 81/12/31 $11, $ /01/01 81/11/30 $10, $ /01/29. $ /02/26. $ /03/31. $ /04/30. $ /05/28. $ /06/30. $ /07/30. $ /08/31. $ SMITH 82/01/01 82/01/29 $13, $1, /02/26. $1, /03/31. $1, /04/30. $1, /05/28. $1, /06/30. $1, /07/30. $1,100.00