“you asked for it, you got it!” best new [backend ] features of [web]focus 7.7.03 walter blood...

38
“You Asked For It, You Got It!” Best New [Backend] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

Upload: ann-carr

Post on 13-Dec-2015

222 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

“You Asked For It, You Got It!”

Best New [Backend] Features of [Web]FOCUS 7.7.03

Walter BloodInformation Builders, Inc.

October, 2011

Page 2: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!

Page 3: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!WebFOCUS and FOCUS are Like Twins

7.7.03 finally brings together WebFOCUS and FOCUSVirtually identical backend features and functionalityNew features hit all products and platforms togetherMinimal difference between internal code pathsFocexecs work identically in either productBugs are fixed once for everyone

The Siamese Twins atGarden of the Gods Park,

Colorado Springs, Co.

Page 4: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!

MASTER

TABLE

OUTPUT and Efficiencies

Page 5: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

TABLE

OUTPUT and Efficiencies

You Asked For It, You Got It!

MASTER

Absolute Value formatDBA WHERE

FILTER in the MasterExtended LimitsBusiness Views

Page 6: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

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 VALUE4-1484.27 $1484.27 [1,484.27] 1484.27

MASTER

IF implied

REPORT

A – absolute value

Column totals add original signed values

!!

A – absolute value

Page 7: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!WHERE in DBA

FILE = SEGMENT = FIELD= ENDDBAUSER=XYZ, RESTRICT=VALUE, VALUE=ITEM NE RADIO

FILE = SEGMENT = FIELD= ENDDBAUSER=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

Page 8: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

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 filenamePRINT 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

It was actuallyin Release 7.6 !

Page 9: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

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 filenamePRINT FIELD1 FIELD2 DEFFIELD

WHERE FILTFIELDEND

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)

Page 10: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

A VIEW into the original file – no new data, no separate extraction Reflect the business instead of physical field arrangement Limit the fields accessible in the main file, without DBA 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

OriginalMFD

Business View MFD

FILE=ORIG,SUFFIX=any

FILE=anyname,CRFILE = ORIGFOLDER=

You Asked For It, You Got It!Business “View” of a Database

Page 11: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

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 fileEach Business View field relates (maps) to an original fieldTABLE with BV field names translates to original names• Attributes and relationships are taken from the original fieldNew 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

Page 12: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!Extended Limits

256K total length of all fields in a request64 character Define Function name

32 gigabyte XFOCUS partition128 BY/ACROSS sort phrases

1022 JOIN segments

Page 13: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!

TABLE

OUTPUT and Efficiencies

MASTER

Across PrintHide Null AcrossHeading WhenSubtotal Above

Page 14: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

TABLE FILE EMPDATAPRINT 'EMPDATA.EMPDATA.SALARY'BY 'EMPDATA.EMPDATA.MAJ' NOPRINTBY '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-BREAKHEADING"Compensation Report“ …

You Asked For It, You Got It!ACROSSPRT and HIDENULLACRS

One column for each value

One line per record retrieved

Page 15: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

  

COMPENSATION REPORT

DEPTAccounting Admin Services

AREA

Central . .. .. $25,400.00. .. .. .. .. .. .. .

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

Page 16: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

SET ACROSSPRT = COMPRESSEliminates MISSING cellsMoves 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

Page 17: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

COMPENSATION REPORT

DEPT:Admin Services Consulting Marketing

AREA

Central $25,400.00 . $62,500.00North Eastern . . $55,500.00

. . $52,000.00

. . $32,300.00South Eastern . $49,500.00 $62,500.00

. $35,900.00 $50,500.00Western $30,800.00 $40,900.00 $43,400.00

. . $58,800.00  Branch Admin $56,200.00 $126,300.00 $417,500.00        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

Page 18: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

COMPENSATION REPORT

DEPT:Accounting Marketing

AREA

Corporate $83,000.00 $55,500.00$32,400.00 $62,500.00$79,000.00 $35,200.00$62,500.00 .$26,400.00 .

  Total Corp $283,300.00 $153,200.00        PAGE     2

You Asked For It, You Got It!ACROSSPRT and HIDENULLACRS

SET HIDENULLACRS=ON Accounting column returns on this page

Page 19: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

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…

Page 20: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

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 headingalways appears

Page 21: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

                    Compensation Report Branch AdminCentralDepartment PIN Pay

Total Branch Admin $1,592,700.00Total Area Central $493,700.00  ADMIN SERVICES 000000180 $25,400.00MARKETING 000000040 $62,500.00PERSONNEL 000000240 $33,300.00PERSONNEL 000000250 $25,000.00PERSONNEL 000000390 $45,000.00PROGRMING & DVLPMT 000000260 $49,500.00PROGRMING & DVLPMT 000000290 $40,900.00SALES 000000050 $54,100.00SALES 000000200 $115,000.00SALES 000000360 $43,000.00  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 WHEN2 headings selected

Page 22: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

    

               Compensation Report Branch Admin (Continued) North EasternDepartment PIN Pay  Total Area North Eastern $304,200.00  CUSTOMER SUPPORT 000000110 $19,300.00CUSTOMER SUPPORT 000000140 $62,500.00MARKETING 000000060 $55,500.00MARKETING 000000310 $52,000.00MARKETING 000000410 $32,300.00SALES 000000190 $39,000.00SALES 000000210 $43,600.00  Page     2 of     4

You Asked For It, You Got It! Subtotals Above and Headings WHEN

HEADING WHEN2 different headings selected

(due to page 2)

Subtotal above detail

Page 23: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

    

                   Compensation Report Corporate Division Department PIN Pay  Total Corporate $436,500.00  ACCOUNTING 000000070 $83,000.00ACCOUNTING 000000100 $32,400.00ACCOUNTING 000000300 $79,000.00ACCOUNTING 000000370 $62,500.00ACCOUNTING 000000400 $26,400.00MARKETING 000000010 $55,500.00MARKETING 000000130 $62,500.00MARKETING 000000320 $35,200.00  Page     1 of     1

You Asked For It, You Got It! Subtotals Above and Headings WHEN

HEADING WHENjust Corporate heading selected

Subtotal above detail

Page 24: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

TABLE

You Asked For It, You Got It!

OUTPUT and Efficiencies

MASTERActive Reports

Output to PowerpointSQL Efficiencies

Character CollationMFACT – Multipath Handling

Page 25: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!Output and Efficiencies

Active Reports for FOCUSProvide enduser the same ability to manipulate report Limited to HTML reportsComplete report including javascript created in FOCUS

TABLE FILE filenameSUM ….…ON TABLE HOLD AS ABC FORMAT AHTMLEND

Page 26: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!Active Reports for FOCUS

COUNTRY CAR MODEL RETAIL_COST DEALER_COST SALES

ENGLAND JAGUAR V12XKE AUTO 8,878 7,427 0

 

*TOTAL MODEL V12XKE AUTO 8,878 7,427 0

 

XJ12L AUTO 13,491 11,194 12000

 

*TOTAL MODEL XJ12L AUTO 13,491 11,194 12000

*TOTAL CAR JAGUAR 22,369 18,621 12000 

JENSEN INTERCEPTOR III 17,850 14,940 0

 

*TOTAL MODEL INTERCEPTOR III 17,850 14,940 0

*TOTAL CAR JENSEN 17,850 14,940 0 

TRIUMPH TR7 5,100 4,292 0

 *TOTAL MODEL TR7 5,100 4,292 0*TOTAL CAR TRIUMPH 5,100 4,292 0

*TOTAL COUNTRY ENGLAND 45,319 37,853 12000

 

ON TABLE HOLD FORMAT HTML

Page 27: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!Active Reports for FOCUS

ON TABLE HOLD FORMAT AHTML

Page 28: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

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

Page 29: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

TABLE FILE CARHEADING CENTER"CAR SALES - CURRENT STATISTICS""CREATED ON &DATEMTRDYY""FOR COUNTRY <COUNTRY"" "SUM RCOST DCOST SALES BY COUNTRY PAGE-BREAK NOPRINT BY CAR UNDER-LINE NOPRINTON CAR SUBHEAD"Current Sales for <CAR "" "BY MODEL SUB-TOTAL MULTILINESON TABLE HOLD AS PPT4 FORMAT PPTON TABLE SET STYLE *

You Asked For It, You Got It!Output to Powerpoint

Instant Presentations

HOLD FORMAT PPT

Page 30: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!Output to Powerpoint

WebFOCUS Graphics !

WebFOCUS ReportsWebFOCUS Reports Dashboard, GraphicsDashboard, Graphics

Excel, HTML, PDFExcel, HTML, PDF Visual DiscoveryVisual Discovery

Page 31: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

More Optimization to speed your requests!DEFINE FUNCTION – optimized where possibleBoolean expressions – optimized as SQL CASE

statementsSQL.<sqlfunctionname> – passed directly to the

relational engineDEFINE and IFTHENELSE – optimized as

SQL CASE or SQL COUNT statementsWebFOCUS sorting optimized to ORDER BY

expression

You Asked For It, You Got It!SQL Efficiencies

Page 32: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

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 comparedAffects sorting, WHERE conditions, Comparison

in Calculations, StyleSheets**** Server-only Setting ****

You Asked For It, You Got It!SET COLLATION

Page 33: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

Copyright 2007, Information Builders. Slide 33

DEFINE FILE CENTINVFLAG/A1=IF CENTINV.INVINFO.PRODNAME CONTAINS 'ZT' THEN '$' ELSE 'Y';ENDSET EQTEST = &EQTESTTABLE FILE CENTINVPRINT '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

Page 34: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

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 $ 499.00

Copyright 2007, Information Builders. Slide 34

You Asked For It, You Got It!SET COLLATION

Page 35: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

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/ON

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

Page 36: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!MFACT for Multi-Path

EMPINFO

SALINFOPAYINFO

TABLE FILE EMPLOYEESUM SALARY GROSSBY EID BY LAST_NAMEBY HIGHEST DAT_INCBY PAY_DATEEND

BY EIDBY LAST_NAME

BYPAY_DATE

BY DAT_INC

Page 37: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011

You Asked For It, You Got It!MFACT for Multi-Path

PAGE 1

EMP_ID LAST_NAME DAT_INC PAY_DATE SALARY GROSS ------ --------- ------- -------- ------ ----- 071382660 STEVENS 82/01/01 81/12/31 $11,000.00 $833.33 81/01/01 81/11/30 $10,000.00 $833.33 . 82/01/29 . $916.67 82/02/26 . $916.67 82/03/31 . $916.67 82/04/30 . $916.67 82/05/28 . $916.67 82/06/30 . $916.67 82/07/30 . $916.67 82/08/31 . $916.67 112847612 SMITH 82/01/01 82/01/29 $13,200.00 $1,100.00 . 82/02/26 . $1,100.00 82/03/31 . $1,100.00 82/04/30 . $1,100.00 82/05/28 . $1,100.00 82/06/30 . $1,100.00 82/07/30 . $1,100.00

Page 38: “You Asked For It, You Got It!” Best New [Backend ] Features of [Web]FOCUS 7.7.03 Walter Blood Information Builders, Inc. October, 2011