“You Asked For It, You Got It!” Best New [Backend ] Features of WebFOCUS 7.7.03
description
Transcript of “You Asked For It, You Got It!” Best New [Backend ] Features of WebFOCUS 7.7.03
“You Asked For It, You Got It!”
Best New [Backend] Features of WebFOCUS 7.7.03
Renee TeatroInformation Builders
December 2011
You Asked For It, You Got It!
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
You Asked For It, You Got It!
MASTER
TABLE
OUTPUT and Efficiencies
The best features comefrom customer suggestions
TABLE
OUTPUT and Efficiencies
You Asked For It, You Got It!
MASTER
MetaTable in the Master(Compute/Filter)
DBA WHEREExtended Limits
Absolute Value formatBusiness 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 filenamePRINT FIELD1 FIELD2 DEFFIELDWHERE 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)
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 DEFFIELDCOMPUTE 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= ENDDBAUSER=XYZ, …RESTRICT=VALUE,VALUE=ITEM NE RADIO
FILE = SEGMENT = FIELD= ENDDBAUSER=XYZ, …RESTRICT=VALUE_WHERE, VALUE=ITEM NE RADIOUSER=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 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
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
MFDMFD
Business ViewOriginal
FILE=ORIG,SUFFIX=any
FILE=anyname,CRFILE=ORIGFOLDER=
You Asked For It, You Got It!Business “View” of a Database
FILE=ORIG, SUFFIX=FOCSEGNAME=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’,$
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
You Asked For It, You Got It!Extended Limits
256K total length of all fields in a request1022 segments in JOIN or COMBINE
64 character Define Function name32 gigabyte XFOCUS partition
128 BY sort phrases
You Asked For It, You Got It!
TABLE
OUTPUT and Efficiencies
MASTER
Across PrintHide Null AcrossHeading WhenSubtotal Above
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
COMPENSATION REPORTDEPTAccounting Admin Services
AREACentral . .
. .
. $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
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 groupBY group must specify PAGE-BREAK Higher “BY” SUBTOTAL may force column displayIgnored with ACROSS FIELD COLUMNS value … Default is OFF
You Asked For It, You Got It!ACROSSPRT and HIDENULLACRS
COMPENSATION REPORT
DEPT:Admin Services Consulting Marketing
AREACentral $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
COMPENSATION REPORT
DEPT:Accounting Marketing
AREACorporate $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
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 headingalways appears
Compensation Report Branch AdminCentralDepartment PIN PayTotal 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
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
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
TABLE
You Asked For It, You Got It!
OUTPUT and Efficiencies
MASTER Active ReportsOutput to Powerpoint
SQL EfficienciesCharacter Collation
MFACT – Multipath Handling
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
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
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 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 PresentationsHOLD 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 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
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 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
Setting of EQTEST is EXACTCOLLATION is set to SRV_CIFilter: WHERE CENTINV.INVINFO.FLAG EQ '$'AND PRODUCT CONTAINS 'DIGITAL';ProductName: FLAG Price:ZT Digital PDA – Commercial $ 499.00
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
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
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