WebFOCUS Friday for Beginners

33
WebFOCUS Friday for Beginners “Ad hoc” Querying and Reporting with WebFOCUS Twanette Jurd 9 April 2010

description

WebFOCUS Friday for Beginners. “Ad hoc” Querying and Reporting with WebFOCUS. Twanette Jurd 9 April 2010. My theory (or theories) …. BI Tools vs. BI Applications. Technology is not the answer …. the result of applying the technology provides the answers. - PowerPoint PPT Presentation

Transcript of WebFOCUS Friday for Beginners

Page 1: WebFOCUS Friday for Beginners

WebFOCUS Friday for Beginners

“Ad hoc” Querying and Reporting with WebFOCUS

Twanette Jurd9 April 2010

Page 2: WebFOCUS Friday for Beginners

My theory (or theories) ….

Page 3: WebFOCUS Friday for Beginners

BI Tools vs. BI Applications

• Technology is not the answer …. • the result of applying the technology provides the

answers.

• Point and Click, Drag and Drop, and an intuitive and “functionality-rich” interface may be the requirement for a good BI tool ….

• but a good BI application is one that provides a faster, easier way to get the information that is needed.

Most users need applications, not tools

Page 4: WebFOCUS Friday for Beginners

How ad hoc does ad hoc need to be?

• WebFOCUS has a number of really good ad hoc “tools” which users could use to build their own queries and reports.

• But is that really what users want or need? Will the broader user base use them?

• Furthermore, often data is simply too complex to simplify! And therefore we would not always be able to give users out-of-the-box tools to simply build their own queries and reports.

Page 5: WebFOCUS Friday for Beginners

Understand the real requirements

• Perhaps the project team is envisioning a totally ad hoc environment, whereas business management is more interested in the delivery of standardized analysis?

• We need to make sure the BI implementation’s deliverable matches the business demand and expectations – obviously!

Self-service parameter-driven reports allow users to easily retrieve what they want in the format that they

need, with limited training

Page 6: WebFOCUS Friday for Beginners

In support of my theory ….

Page 7: WebFOCUS Friday for Beginners

Information Builders White Paper

Assumption that the average business user has the know-how or the time to use BI tools

• An end-user market that is flooded with misguided hype from the vendor community, indicating that, “BI tools are for everyone”

• Users don’t have the time to work with a BI tool and navigate a data warehouse to produce the information they need

Page 8: WebFOCUS Friday for Beginners

Anecdote by Ralph Kimball

• Ralph Kimball, an expert on data warehousing, says the following in his book, The Data Warehouse Toolkit; 2nd Edition:

“The majority of the user base likely will access the data via pre-built parameter-driven analytic applications.

Approximately 90 to 95 percent of the potential users will be served by these canned applications that are essentially finished templates that do not require users to construct relational queries directly.”

Page 9: WebFOCUS Friday for Beginners

WebFOCUS does ad hoc …. very well !!

Page 10: WebFOCUS Friday for Beginners

With Dialogue Manager you can parameterize virtually anything

• WebFOCUS isn’t just a tool – it is a complete toolbox• Understand all the pieces:

APP commands, SET commands CHECK FILE, USE JOIN, DEFINE, TABLE, GRAPH, MATCH MODIFY

• And especially: Dialogue Manager Dialogue Manager Dialogue Manager

Don’t use a hammer to tighten the screw!

Page 11: WebFOCUS Friday for Beginners

Dialogue Manager Amper VariablesUser Variables

• &variable Single ampersand (&) precedes variable name In effect throughout a single procedure

• &&variable Remain in effect throughout the FOCUS session Change with -SET &&variable Cleared by the LET CLEAR command In a non-persistent connection, set in edasprof, or controlled

by IBIF_persistentamp setting• &variable.&index

Indexed variables Multiple selections for the same variable name

Page 12: WebFOCUS Friday for Beginners

Dialogue Manager Amper VariablesNames and Values

• &variable names Each name from 1-100 characters Case sensitive

• Variable values Variables may be from 1 - 32K in length Stored as alphanumeric values Interpreted as integer or alphanumeric based on usage SET DMPRECISION introduces decimal values

Page 13: WebFOCUS Friday for Beginners

Dialogue Manager Amper Variables System Variables

• &DATE MM/DD/YY • &DATEYYMD YYYY/MM/DD• &YMD YYMMDD• &DMY DDMMYY• &MDY MMDDYY• &TOD HH.MM.SS• &FOCFOCEXEC <focexecname>• &FOCREL WebFOCUS release number

• …and many more, check the manual.

Page 14: WebFOCUS Friday for Beginners

Dialogue Manager Amper Variables Statistical Variables

• TABLE Command &LINES, &RECORDS, &BASEIO, &FOCERRNUM

• Operating System Command &RETCODE

• -READ &IORETURN

• Referencing a statistical variable implies –RUN Needs execution to get a value

Page 15: WebFOCUS Friday for Beginners

Dialogue Manager Amper Variables Supplying Values for User Variables

• EX focexec variable1=value1,variable2=value2• -DEFAULT • -SET• -READ• -HTMLFORM

Page 16: WebFOCUS Friday for Beginners

• Table file car …. No parameters

DEFINE FILE CARGP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ;END TABLE FILE CAR HEADING"Car Catalog"PRINT COUNTRY CAR MODEL BODYTYPE SEATS DEALER_COST RETAIL_COST GP_PCTON TABLE SET HTMLCSS ONON TABLE SET STYLE *-INCLUDE FPS_STYLEENDSTYLEEND

Page 17: WebFOCUS Friday for Beginners

• Table file car …. No parameters

DEFINE FILE CARGP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ;END TABLE FILE CAR HEADING"Car Catalog"PRINT DEALER_COST BY COUNTRY BY CAR BY MODEL ON TABLE SET HTMLCSS ONON TABLE SET STYLE *-INCLUDE FPS_STYLEENDSTYLEEND

Page 18: WebFOCUS Friday for Beginners

• Table file car …. No parameters

-DEFAULTH FP_COUNTRY = 'FOC_NONE'-SET &FP_COUNTRY_HDR = IF &FP_COUNTRY EQ 'FOC_NONE' THEN - 'All Countries' ELSE &FP_COUNTRY ; DEFINE FILE CARGP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ;END TABLE FILE CAR HEADING"Car Catalog for &FP_COUNTRY_HDR "PRINT DEALER_COST BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&FP_COUNTRY' ;ON TABLE SET HTMLCSS ONON TABLE SET STYLE *-INCLUDE FPS_STYLEENDSTYLEEND

&FP_COUNTRY = 'ENGLAND'

Page 19: WebFOCUS Friday for Beginners

• Table file car …. No parameters

-DEFAULTH FP_BYFIELD = 'FOC_NONE'DEFINE FILE CARGP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ;END TABLE FILE CAR HEADING"Car Catalog for &FP_COUNTRY_HDR "PRINT DEALER_COST BY &FP_BYFIELD NOPRINT BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&FP_COUNTRY' ;ON TABLE SET HTMLCSS ONON TABLE SET STYLE *-INCLUDE FPS_STYLEENDSTYLEEND

&FP_BYFIELD = 'HIGHEST DEALER_COST'

Page 20: WebFOCUS Friday for Beginners

• Table file car …. No parameters

-DEFAULTH FP_PRINTFIELD = 'DEALER_COST'DEFINE FILE CARGP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ;END TABLE FILE CAR HEADING"Car Catalog for &FP_COUNTRY_HDR "PRINT &FP_PRINTFIELDBY &FP_BYFIELD NOPRINT BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&FP_COUNTRY' ;ON TABLE SET HTMLCSS ONON TABLE SET STYLE *-INCLUDE FPS_STYLEENDSTYLEEND

&FP_PRINTFIELD = ‘GP_PCT'

Page 21: WebFOCUS Friday for Beginners

• Table file car …. No parameters

-SET &FP_PRINTFIELD = 'DEALER_COST' ;-SET &FP_COUNTRY = 'ENGLAND' ;-SET &FP_BYFIELD = 'SEATS' ;

DEFINE FILE CARGP_PCT/P7.2% = (RETAIL_COST - DEALER_COST) / RETAIL_COST * 100 ;END TABLE FILE CAR HEADING"Car Catalog for &FP_COUNTRY_HDR "PRINT &FP_PRINTFIELDBY &FP_BYFIELD NOPRINT BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&FP_COUNTRY' ;ON TABLE SET HTMLCSS ONON TABLE SET STYLE *-INCLUDE FPS_STYLEENDSTYLEEND

Page 22: WebFOCUS Friday for Beginners

Architectural Considerations

• Standards: File names (fexes, masters, stylesheets etc.) Amper variable (parameter) names Program labels Report / output formats Styles and stylesheets Program Headers / Documentation Re-usable / generic code stored in “-INCLUDE” files

• Parameter forms / screens: Consistent layout Logical flow Ability to save reports variants (i.e. save parameters)

• Navigation: Consistent Logical Fast navigation: “favorites” and “search” functionality

Page 23: WebFOCUS Friday for Beginners

Demonstration

Page 24: WebFOCUS Friday for Beginners

Manage Report Variants

“Favorites” for fast navigation

Ability to search for Menu Options

Page 25: WebFOCUS Friday for Beginners

Context menu per menu option

Page 26: WebFOCUS Friday for Beginners
Page 27: WebFOCUS Friday for Beginners

Parameterise selections / filters

Page 28: WebFOCUS Friday for Beginners

Parameterise “measure” i.e. which “SUM” field

Page 29: WebFOCUS Friday for Beginners

Parameterise grouping, sort order and navigation

Page 30: WebFOCUS Friday for Beginners

Parameterise report and graph format

Page 31: WebFOCUS Friday for Beginners

Parameterise output destination

Page 32: WebFOCUS Friday for Beginners

Cutting Edge StratWare

• Parameter-driven reporting templates sharing a standard "look-and-feel", significantly reducing the end-user learning curve for receiving information

• Standardised look and feel for each report selection and display output

• Enablement of meaningful analysis with detailed drill-down to any desired depth

• Enhanced flexibility to consider multiple scenarios, enabled by powerful parametric functionality

And with WebFOCUS …. You can do it too!

Page 33: WebFOCUS Friday for Beginners