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.

Slides:



Advertisements
Similar presentations
Chapter 10 Excel: Data Handling or What do we do with all that data?
Advertisements

CC SQL Utilities.
Office Links - Sharing Data in Microsoft Office A Mixed Bag of Treasures Chester N. Barkan Registrar Long Island University, C.W.Post Campus.
Benchmark Series Microsoft Excel 2013 Level 2
Copyright 2007, Information Builders. Slide 1 Relational Efficiencies: Part II Overview and JOIN / Sort Scenarios Renee Teatro Information Builders.
ACOT Intro/Copyright Succeeding in Business with Microsoft Excel 2010: Chapter1.
Student Manager Catalog Builder An ACEware Webinar.
INSERT BOOK COVER 1Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast,
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.
Walter F. Blood Information Builders Nashville User Forum February 23, 2012 THINKing in WEBFOCUS.
Copyright 2007, Information Builders. Slide 1 Tips and Techniques From the FOCWIZARDs Art Greenhaus & Noreen Redden FOCWIZARDS Tech Summit, 2008.
Microsoft Excel Working with Excel Lists, Subtotals and Pivot Tables.
SUNY Morrisville-Norwich Campus- Week 7 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
Slide 1 of 39 Welcome to GSA’s Vendor and Customer Self Service (VCSS) course Section 5: Statement and Dispute Navigation This presentation is compliant.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Chapter 2 Querying a Database
Access Lecture 1 Database Overview and Creating Tables Create an Employee Table.
Tutorial 11: Connecting to External Data
Pasewark & Pasewark 1 Access Lesson 6 Integrating Access Microsoft Office 2007: Introductory.
1 Access Lesson 6 Integrating Access Microsoft Office 2010 Introductory Pasewark & Pasewark.
State of Connecticut Core-CT Project Query 4 hrs Updated 1/21/2011.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
“You Asked For It, You Got It!” Best New [Backend ] Features of WebFOCUS Renee Teatro Information Builders December 2011.
Developing Effective Reports
ASP.NET Programming with C# and SQL Server First Edition
Database Applications – Microsoft Access Lesson 9 Designing Special Queries Updated 4/11.
Database Applications – Microsoft Access Lesson 9 Designing Special Queries.
Chapter Extension 6 Using Excel and Access Together.
Copyright 2007, Information Builders. Slide 1 The Most Requested Features and Techniques for Stylesheets Renee Teatro Information Builders.
“You Asked For It, You Got It!” Best New [Backend ] Features of WebFOCUS Walter Blood Noreen Redden Joel Starkman Information Builders, Inc. August,
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.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Import Data From Text Files and Other Sources Importing is the process of inserting data.
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.
Microsoft Access 2010 Building and Using Queries.
The Advantage Series ©2004 The McGraw-Hill Companies, Inc. All rights reserved Chapter 8 Managing Worksheet Lists Microsoft Office Excel 2003.
Chapter 19 Managing Worksheet Lists. Creating Lists ► Microsoft Office Excel 2003 is inarguably the most powerful electronic spreadsheet available. ►
CREATING TEMPLATES CREATING CUSTOM CHARACTERS IMPORTING BATCH DATA SAVING DATA & TEMPLATES CREATING SERIES DATA PRINTING THE DATA.
Colleague, Excel & Word Best of Friends Presented by: Joan Kaun & Yvonne Nelson College of the Rockies.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
Tips n Techniques Jenny Lalik. Report Styling Enhancements for 7.7  Accordion By Row  Excel 2007 Output Format  Hide Null Across Columns  Pass dates.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
A Guide to SQL, Seventh Edition. Objectives Understand how to use functions in queries Use the UPPER and LOWER functions with character data Use the ROUND.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
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.
EDExpress Training Presented by Doug Baldwin – CPS/SAIG Technical Support Bob Berry – U.S Department of Education/FSA.
Chapter 6 Creating, Sorting, and Querying a Table
CERTIPORT EXCEL PRACTICE. EDITING SORT/FILTER/FIND & REPLACE In the Summary worksheet, sort the data in descending order by Order Number, and then in.
Intro to Excel - Session 5.21 Tutorial 5 - Session 5.2 Working with Excel Lists.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Working with Data Lists.
External Executable Tools The Master's Touch David L. Blankenship.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Aliya Farheen October 29,2015.
With Microsoft Excel 2007Comprehensive 1e© 2008 Pearson Prentice Hall1 Chapter 4: PowerPoint Presentation GO! with Microsoft Excel ® 2007 Comprehensive.
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.
DAY 18: MICROSOFT ACCESS – CHAPTER 3 CONTD. Akhila Kondai October 21, 2013.
Copyright 2007, Information Builders. Slide 1 TABLE FILE: The Basics Noreen Redden FOCWizard June, 2008.
21 Copyright © 2009, Oracle. All rights reserved. Working with Oracle Business Intelligence Answers.
B Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Working with PDF and eText Templates.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
A Guide to SQL, Sixth Edition 1 Chapter 7 Reports.
Presented by Cheryl Sullivan.  Name  Department  What do you want out of the training?  Favorite food.
A Guide to SQL, Seventh Edition
The Basics of FOCUS Reporting Syntax
What Happens When You Run A Report
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
From and Report.
Presentation transcript:

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 for TABLE/TABLEF/MATCH FILE

Copyright 2007, Information Builders. Slide 2 Agenda Order of Processing n Matrix processing n Evaluate COMPUTEs n Apply IF/WHERE TOTAL tests n Secondary sort n Process BY TOTAL n Post matrix processing n Determine ACROSS column n Process ACROSS-TOTAL n Other totals n Format the line ml/html_s390_76/mf_snf76/mf_snf76.pdf 

Copyright 2007, Information Builders. Slide 3 Internal Matrix Generation  Aggregation is performed as record is sorted, with FOCUS sort  Aggregation is performed by external sort if SET EXTAGGR = ON  Numeric Fields are added. Alpha fields being SUMmed, return the LAST value within the BY field, the FST value with external sorts  (SET SUMPREFIX=LST if required)  All verb objects are also COUNTed n Once an acceptable record has been retrieved, the fields for SORTREC are moved, and the record is released to Sort 

Copyright 2007, Information Builders. Slide 4 Internal Matrix Generation  When BINs are full, subsequent records will re-use BINs (EXTSORT is OFF) or be passed to the external sort (EXTSORT is ON)  After all records are retrieved, a final merge will take place  The end of the final merge is noted by: Records = Lines =  76 Feature: Unlimited FOCSORT  Initially SORT occurs in BINs 

Copyright 2007, Information Builders. Slide 5 Internal Matrix Generation Merge – FOCUS Sort SORT MERGE FOCSORT BINs FOCSORT BINs SORT MERGE BINs FOCSORT 

Copyright 2007, Information Builders. Slide 6 Internal Matrix Generation EXTSORT = ON, AUTOTABLEF = OFF FOCSORT BINs ~ First 5000 Records EXTSORT BINs Subsequent Records S001WK09 S001WK08 S001WK07 S001WK06 S001WK05 S001WK04 S001WK03 S001WK02 S001WK01 FOCSORT SORT MERGE FOCSORT 

Copyright 2007, Information Builders. Slide 7 Internal Matrix Generation EXTSORT = ON, AUTOTABLEF = ON S001WK09 S001WK08 S001WK07 S001WK06 S001WK05 S001WK04 S001WK03 S001WK02 S001WK01 EXTSORT Subsequent Records OFFLINE Extract Hotscreen Or… BINs ~ First 5000 Records 

Copyright 2007, Information Builders. Slide 8 Internal Matrix Generation AUTOTABLEF = ON S001WK09 S001WK08 S001WK07 S001WK06 S001WK05 S001WK04 S001WK03 S001WK02 S001WK01 EXTSORT Subsequent Records BINs ~ First 5000 Records OFFLINE Extract Hotscreen Or… FOCSORT SAVEMATRIX=ON Defaults(711=on, 72 =off)

Copyright 2007, Information Builders. Slide 9 Order of Processing  Retrieve an Entry n FOCSORT (AUTOTABLEF = OFF, MATCH FILE) n External sort files (AUTOTABLEF = ON) n Database (TABLEF) n If lowest BY field has changed, release prior line to applicable program n If BY fields change invoke control options on prior sort group 

Copyright 2007, Information Builders. Slide 10 Output Stage SORT Internal Matrix FOCSML Report Extract Formatting HOLD/SAVE FML/EMR Processor Secondary Sort Post Matrix Processing COMPUTE’s IF/WHERE TOTAL BY TOTAL Totals… 

Copyright 2007, Information Builders. Slide 11 BY TOTAL PAGE 1 PIN AVE DEPT SALARY COUNT SALARY ACCOUNTING $283, $56, SALES $395, $56, MARKETING $570, $51, CUSTOMER SUPPORT $198, $49, PROGRAMMING & DVLPMT $182, $45, PERSONNEL $216, $43, CONSULTING $126, $42, ADMIN SERVICES $56, $28, TABLE FILE EMPDATA SUM SALARY CNT.PIN COMPUTE AVGSAL=SALARY/CNT.PIN; AS 'AVE,SALARY' BY HIGHEST TOTAL AVGSAL NOPRINT BY DEPT END 

Copyright 2007, Information Builders. Slide 12 BY TOTAL  Sorting by Report Column  [RANKED] BY [HIGHEST|LOWEST [n] ] TOTAL display field where:  RANKED – Adds a column to the report output that identifies a rank number for each row  n – Is the number of sort field values you wish to display in the report  Display field – Can be a fieldname, prefix-operator.fieldname, or calculated value 

Copyright 2007, Information Builders. Slide 13 Output Stage SORT Internal Matrix FOCSML Report Extract Formatting HOLD/SAVE FML/EMR Processor Secondary Sort Post Matrix Processing COMPUTE’s IF/WHERE TOTAL BY TOTAL Totals… 

Copyright 2007, Information Builders. Slide 14 ACROSS DEFINE FILE EMPLOYEE JOB_CLASS/A1 = EDIT(CJC,’9’); END TABLE FILE EMPLOYEE SUM SALARY NOPRINT CNT.SALARY NOPRINT COMPUTE AVESAL/D7 = SALARY / CNT.SALARY; BY DEPARTMENT ACROSS JOB_CLASS COMPUTE TOTAL =(C1 + C4 + C7 + C10 + C13 + C16)/ (C2 + C5 + C8 + C11 + C14 + C17); END JOB_CLASS A B TOTAL DEPARTMENT AVESAL AVESAL MIS 17,622 17,938 17, PRODUCTION 17,219 17,407 17, 

Copyright 2007, Information Builders. Slide 15 ACROSS (NOPRINT’s Removed) PAGE 1 JOB_CLASS A B SALARY SALARY DEPARTMENT SALARY COUNT AVESAL SALARY COUNT AVESAL MIS $70, ,622 $89, ,938 PRODUCTION $120, ,219 $52, ,407 TOTAL , , C1 C2 C3 C4 C5 C6 COMPUTE TOTAL =(C1 + C4 + C7 + C10 + C13 + C16)/ (C2 + C5 + C8 + C11 + C14 + C17); What Happened To: C7 - C17 

Copyright 2007, Information Builders. Slide 16 ACROSS TABLE FILE EMPLOYEE SUM SALARY NOPRINT CNT.SALARY NOPRINT BY DEPARTMENT SUM SALARY NOPRINT CNT.SALARY NOPRINT COMPUTE AVESAL/D7 = SALARY / CNT.SALARY; BY DEPARTMENT ACROSS JOB_CLASS COMPUTE TOTAL =C1 /C2 ; END JOB_CLASS A B TOTAL DEPARTMENT AVESAL AVESAL MIS 17,622 17,938 17, PRODUCTION 17,219 17,407 17, 

Copyright 2007, Information Builders. Slide 17 Assigning Column Numbers Only to Fields Displayed on Report Output SET CNOTATION= ALL | PRINTONLY | EXPLICIT  ALL - Assigns column reference numbers to every column in the internal matrix. ALL is the default value.  EXPLICIT - Assigns column reference numbers to all fields referenced in the request, whether displayed or not.  PRINTONLY - Assigns column reference numbers only to columns that display in the report output. TABLE FILE CAR PRINT MPG NOPRINT SEATS/D4.1 RCOST COMPUTE TEST1 = C1 * C2; BY CAR END CNOTATION = ALL (default) CAR MPG SEATS SEATS RCOST TEST1 C1 C2 C3 C4 C5 CNOTATION = EXPLICIT CAR MPG SEATS SEATS RCOST TEST1 C1 C2 C3 C4 CNOTATION = PRINTONLY CAR MPG SEATS SEATS RCOST TEST1 C1 C2 C3 

Copyright 2007, Information Builders. Slide 18 PAGE 1 YEAR TOTAL QTR Q2 Q3 Q4 YR TOT Q1 Q2 Q3 Q4 YR TOT DIV CE CORP NE SE WE ACROSS-TOTAL Let’s say we wanted to: Count the number of courses taken across each year for each quarter Produce a total for each year and a grand total 

Copyright 2007, Information Builders. Slide 19 JOIN PIN IN EMPDATA TO ALL PIN IN TRAINING AS XX DEFINE FILE EMPDATA SYR/Y=CSTART; SQT/Q=CSTART; END TABLE FILE EMPDATA COUNT COURSECODE ACROSS SYR AS ‘YEAR’ ACROSS-TOTAL AS 'TOTAL' ACROSS SQT AS ‘QTR’ ACROSS-TOTAL AS 'YR TOT' BY DIV IF SYR EQ 89 OR 90 END ACROSS-TOTAL 

Copyright 2007, Information Builders. Slide 20 PAGE 1 YEAR TOTAL QTR Q2 Q3 Q4 YR TOT Q1 Q2 Q3 Q4 YR TOT DIV CE CORP NE SE WE ACROSS-TOTAL Notice:  The Quarter Total column heading stays with correct line  The Year Total column heading stays with correct line 

Copyright 2007, Information Builders. Slide 21 Producing Column Totals With ACROSS-TOTAL  ACROSS sortfield ACROSS-TOTAL [AS 'name'] [COLUMNS col1 AND col2...]column names Where: sortfield – Is the name of the field being sorted across name – Is the new name for the ACROSS-TOTAL column title col1, col2 – Are the titles of the ACROSS columns you want to include in the total ACROSS-TOTAL 

Copyright 2007, Information Builders. Slide 22 ON Sortfield Options  Subtotaling  SUBTOTAL and SUB-TOTAL  RECOMPUTE and SUMMARIZE  MULTILINE suppresses operation if only single detail line  RECAP (COMPUTE)  SUBFOOT/SUBHEAD 

Copyright 2007, Information Builders. Slide 23 Totaling BY specified only and TABLE * BY specified plus Higher Bys TABLE * ADD’s all numeric columns SUBTOTAL COLUMN-TOTAL SUB-TOTAL Recalculates COMPUTE’s ADD’s up other numeric columns RECOMPUTESUMMARIZE * NOTOTAL Suppresses Grand Totals 

Copyright 2007, Information Builders. Slide 24 ON Sortfield Options  PAGE-BREAK [REPAGE]  NOSPLIT  **FOLD-LINE  **SKIP-LINE  UNDERLINE ** May be specified on verb-objects 

Copyright 2007, Information Builders. Slide 25 ON TABLE Options  Totaling – ON TABLE…  COLUMN-TOTAL  ROW-TOTAL  SUMMARIZE  NOTOTAL  RECAP  [PAGE-BREAK AND ] SUBFOOT/SUBHEAD 

Copyright 2007, Information Builders. Slide 26 HEADings and FOOTings  References to fields in SUBHEAD and SUBFOOT become verb objects only if not previously mentioned.  Fields used in HEADINGs and SUBHEADs are taken from the first line within the group (BY phrase or page)  References to fields in HEADING and FOOTING become verb objects with the first verb 

Copyright 2007, Information Builders. Slide 27 HEADings and FOOTings  Fields used in FOOTINGs and SUBFOOTs are taken from the last line within the group, subtotals (ST.field, totals – TOT.field, running totals – CT.field) or RECAP fields.  Maximum storage for all HEADINGs, FOOTINGs, SUBHEADs, or SUBFOOTs is 6K bytes;  </n <n <+n <-n require additional 10 bytes  ] require additional 30 bytes  Each line specified within “ “ requires WIDTH bytes 

Copyright 2007, Information Builders. Slide 28 ON TABLE Options  Extracts  ON TABLE HOLD [FORMAT …] 

Copyright 2007, Information Builders. Slide 29 ON TABLE Options (Not All Shown)  COMMA – Saves all the columns of the WebFOCUS report request and creates a CSV (Comma Separated Values) file. Alphanumeric fields are enclosed in quotation marks. Columns are separated by commas.  COM – Saves the data values as a variable-length text file with fields separated by commas and with character values enclosed in double quotation marks. Leading blanks are removed from numeric fields and trailing blanks are removed from character fields. To issue a request against this data source, the setting PCOMMA=ON is required,  COMT – Saves the column headings in the first row of the output file. It produces a variable-length text file with fields separated by commas and with character values enclosed in double quotation marks. Leading blanks are removed from numeric fields and trailing blanks are removed from character fields. This format is required by certain software packages such as Microsoft Access. 

Copyright 2007, Information Builders. Slide 30 ON TABLE Options (Not All Shown)  DOC – Saves the report output as MS-DOS text with layout and line breaks  EXCEL – Saves the report output as a Microsoft Excel worksheet  EXL2K – Generates fully styled reports in Excel 2000 HTML format. Requires Excel 2000 on your PC  EXL2K PIVOT – Generates fully styled reports in Excel 2000 HTML format, with added pivoting capabilities. Requires Excel 2000 on your PC  HTML – Creates an output file that contains an HTML(Web) document  HTMTABLE – Creates an output file that contains an HTML table, not a complete HTML document 

Copyright 2007, Information Builders. Slide 31 ON TABLE Options (Not All Shown)  INTERNAL – Saves report output without padding the values of integer and packed fields  PDF – Saves the report output in Adobe’s Portable Document Format, which allows precise placement of output (all formatting options) on the printed page so the report looks exactly as it would when printed  PS – Saves the report as a PostScript document. You must have installed a third-party tool capable of displaying PS  SQLMSS – Captures the report data and creates a Microsoft SQL Server data source table 

Copyright 2007, Information Builders. Slide 32 ON TABLE Options (Not All Shown)  SQLODBC – Captures the report data and creates a file or data source table using the current ODBC data source driver  SQLORA – Captures the report data and creates an Oracle data source table  TABT – Creates an extract file in tab delimited format that includes column headings in the first row 

Copyright 2007, Information Builders. Slide 33 Extract SET HOLDLIST = ALL TABLE FILE EMPLOYEE PRINT LAST_NAME FIRST_NAME COMPUTE NEWSAL = CURR_SAL * 1.5; BY EID ON TABLE HOLD AS INT1 FORMAT FOCUS INDEX EID END FILE=INT1,SUFFIX=FOC SEGNAME=SEG01,SEGTYPE=S02 FIELDNAME =EMP_ID,E01,A9, FIELDTYPE=I, $ FIELDNAME =FOCLIST,E02,I5, $ FIELDNAME =LAST_NAME,E03,A15, $ FIELDNAME =FIRST_NAME,E04,A10, $ FIELDNAME =CURR_SAL,E05,D12.2M, $ FIELDNAME =NEWSAL,E06,D12.2, $ INT1.MAS 

Copyright 2007, Information Builders. Slide 34 Extract TABLE FILE EMPLOYEE PRINT LAST_NAME FIRST_NAME COMPUTE NEWSAL = CURR_SAL * 1.5; BY EID ON TABLE HOLD AS INT1 FORMAT FOCUS END CREATE FILE INT1 MODIFY FILE INT1 FIXFORM FROM FOC$HOLD DATA ON FOC$HOLD END FOC$HOLD.FEX SET DIRECTHOLD=ON 7.6 Feature SET HOLDLIST = ALL FOCUS DATABASE 

Copyright 2007, Information Builders. Slide 35 Review  Read Internal Matrix from FOCSORT or External Sort Files  Evaluate COMPUTEs  Apply IF/WHERE TOTAL tests  Secondary sort  Process BY TOTAL  Post Matrix processing  Determine ACROSS column  Process ACROSS-TOTAL  Perform other totals  Format The Line  Write extract file, or Format output using standard style or STYLESHEET 

Copyright 2007, Information Builders. Slide 36 Questions