webfocus tips and techniques webfocus tips and techniques the next generation

Download WebFOCUS Tips and Techniques WebFOCUS Tips and Techniques The Next Generation

Post on 29-Dec-2015

229 views

Category:

Documents

11 download

Embed Size (px)

TRANSCRIPT

  • WebFOCUS Tips and Techniques

    WebFOCUS Tips and Techniques The Next Generation

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Joyce HalfordJohn Kutasz

    Summit User Conference June 2008

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Joyce Halford

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Order Report By or BY TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Order Report By or BY TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Order Report By or BY TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Order Report By or BY TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Order Report By or BY TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Order Report By or BY TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Order Report By or BY TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Order Report By or BY TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHENCE

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHENCEHow can you determine which MASTER is being used when MASTER files exist on multiple platforms for the same data source?

    WHENCE filename MASTER

    This is only an issue if the MASTER files are different. An example of this problem can happen if MASTER files are created on a mainframe, copied to a local environment and at a later date, the MASTER files on the mainframe are updated but not copied to the local environment.

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHENCEWHENCE CAR MASTER

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHENCEFOCEXEC and FOCUS file locations can also be determined using WHENCE

    WHENCE filename FOCEXEC

    WHENCE filename FOCUS

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE TOTAL

    WHERE SALARY GT 56200

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE SALARY GT 56200WHERE TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE TOTAL Subset of Previous Page

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE TOTAL

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Concatenate Fields for Sorting

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Concatenate Fields for SortingReport Caster Bursting is on the primary sort field

    By concatenating multiple sort fields you can burst at a more detailed level.

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Concatenate Fields for Sorting

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Concatenate Fields for Sorting

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Concatenate Fields for Sorting

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Concatenate Fields for Sorting

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Concatenate Fields for Sorting

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Concatenate Fields for Sorting

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Concatenate Fields for Sorting

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box (Populated from a Table/File)

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box (Populated from a Table/File)

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box (Populated from Focexec Output)

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    How to Build a Dynamic Dropdown Box

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHEREConditional WHERE statementsSET &parameter to control display of WHERE statements in a TABLE request

    Another option is to use a GOTO label to jump around WHERE statements

    This technique does not allow you to work in the GUI.

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHEREExample of -GOTO

    IF &COUNTRY EQ ALL COUNTRIES GOTO SKIPWHR

    WHERE COUNTRY EQ &COUNTRY

    -SKIPWHR

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERESET &parameter

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERESET &parameter

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERESET &parameter

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERESET &parameter

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERESET &parameter

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERESET &parameter

    -* File DMANDWHR.fex-DEFAULT &COUNTRY = 'ENGLAND

    -SET &SELWHR = IF &COUNTRY EQ 'ALL COUNTRIES' THEN ' '- ELSE 'WHERE COUNTRY EQ ' | '''' | &COUNTRY | '''' ;

    TABLE FILE CARPRINT DEALER_COST RETAIL_COST &SELWHRBY COUNTRYBY CARBY MODELBY BODYTYPEHEADING"The following line displays the value of amperSELWHR""&SELWHR"" ""The value of amperCOUNTRY is &COUNTRY"" "FOOTING""...END

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHEREIf you use the report layout tool, an alternate coding technique is used.

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE

    ALL SELECTED IN DROPDOWN BOX

    TABLE FILE CARPRINT COUNTRY MPGBY COUNTRYWHERE MPG GE 20WHERE CAR EQ 'FOC_NONE'END

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    WHERE

    AUDI SELECTED IN DROPDOWN BOX

    TABLE FILE CARPRINT COUNTRY MPGBY COUNTRYWHERE MPG GE 20WHERE CAR EQ AUDI'END

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Ignoring Code with FOC_NONE

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Ignoring Code with FOC_NONEIf a parameter has a value of FOC_NONE, any row of code containing it will be ignoredwhen the report runs.

    One use for this is the WHERE statement example that you have already seen.

    WebFOCUS Tips and Techniques

  • WebFOCUS Tips and Techniques

    Ignoring Code with FOC_NONE -SET &PARM1 = 'FIRST VALUE';-SET &PARM2 = 'SECOND VALUE';-SET &PARM3 = 'THIRD VALUE';

    TABLE FILE CARPRINT CARBY COUNTRYHEADING"heading line 1 parm value is: &a