Copyright 2007, Information Builders. Slide 1 Did You Know? My Favorite Core New Features 7.6 and 7.7 Noreen Redden
Copyright 2007, Information Builders. Slide 2 The Report Request 1. Selection and Optimization 2. HEADINGs 3. Blank Columns and Rows 4. SUBTOTALs and SUMMARIZEs and WITHIN 5. Documentation
Copyright 2007, Information Builders. Slide 3 Selection and Optimization EQTEST Collation and Selection
Copyright 2007, Information Builders. Slide 4 $ is considered a “wildcard” IF field EQ/IS ‘value with $ or $*’ Section of WHERE that can be transformed into a simple IF SET EQTEST = WILDCARD/EXACT ON TABLE SET EQTEST WILDCARD/EXACT Documented (and in GUI) in 7.7. Available 7.6.9) Selection: EQTEST When is a $ just a $
Selection: EQTEST Copyright 2007, Information Builders. Slide 5 DEFINE FILE CENTINV FLAG/A1=IF CENTINV.INVINFO.PRODNAME CONTAINS 'ZT' THEN '$' ELSE 'Y'; END SET EQTEST = &EQTEST TABLE FILE CENTINV PRINT 'CENTINV.INVINFO.FLAG' 'CENTINV.INVINFO.PRICE' BY 'CENTINV.INVINFO.PRODNAME' HEADING " Setting of EQTEST is &EQTEST " " Filter: WHERE CENTINV.INVINFO.FLAG EQ '$'; “ " AND PRODTYPE EQ 'Digital'; " FOOTING "" WHERE ( CENTINV.INVINFO.FLAG EQ '$' ) AND ( CENTINV.INVINFO.PRODTYPE EQ 'Digital' ); …
Selection: EQTEST Setting of EQTEST is WILDCARD Filter: WHERE CENTINV.INVINFO.FLAG EQ '$' AND PRODTYPE EQ 'Digital'; " Product Name: FLAG Price: 330DX Digital Camera 1024KPY SX Digital Camera 65KP Y DL Digital Camcorder 150 XY SL Digital Camcorder 300 XY Combo Player - 4 Hd VCR + DVDY DVD Upgrade Unit for Cent. VCRY QX Portable CD Player Y R5 Micro Digital Tape Recorder Y ZC Digital PDA - Standard Y ZT Digital PDA - Commercial $ Copyright 2007, Information Builders. Slide 6
Selection: EQTEST Setting of EQTEST is EXACT Filter: WHERE CENTINV.INVINFO.FLAG EQ '$' AND PRODTYPE EQ 'Digital'; Product Name: FLAG Price: ZT Digital PDA – Commercial $ Copyright 2007, Information Builders. Slide 7
Copyright 2007, Information Builders. Slide New Feature Case Insensitive means that all WHERE tests and sorts ignore the case of the elements being compared. Affects sorting, WHERE conditions, Comparison in Calculations, StyleSheets SET COLLATION = {BINARY|SRV_CI|SRV_CS|CODEPAGE} ** Server only Setting **** Selection: COLLATION When Does DIGITAL=digital
Selection: COLLATION Copyright 2007, Information Builders. Slide 9 DEFINE FILE CENTINV FLAG/A1=IF CENTINV.INVINFO.PRODNAME CONTAINS 'ZT' THEN '$' ELSE 'Y'; END SET EQTEST = &EQTEST TABLE FILE CENTINV PRINT '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' ); …
Selection: COLLATION Setting of EQTEST is EXACT COLLATION is set to SRV_CI Filter: WHERE CENTINV.INVINFO.FLAG EQ '$' AND PRODTYPE EQ 'DIGITAL'; Product Name: FLAG Price: ZT Digital PDA – Commercial $ Copyright 2007, Information Builders. Slide 10
Copyright 2007, Information Builders. Slide 11 HEADINGs Multiple HEADINGs with WHEN BYLASTPAGE
Copyright 2007, Information Builders. Slide 12 Region Totals Should Show ONLY in the HEADING on Page 1 for each REGION HEADINGs can reference Computed fields, but blank lines should not be shown Variable HEADINGS/SUBHEADs
Copyright 2007, Information Builders. Slide 13 Variable HEADINGS/SUBHEADs Copyright 2007, Information Builders. Slide 13 HEADING “Page: <TABPAGENO " HEADING "DIVISION: <DIV " WHEN TABPAGENO EQ 1 HEADING "DIVISION: <DIV (CONT) " WHEN TABPAGENO GT 1 HEADING "DEPARTMENT:<DEPT " WHEN DEPT NE LAST DEPT HEADING "DEPARTMENT:<DEPT (CONT) WHEN DEPT EQ LAST DEPT
Copyright 2007, Information Builders. Slide 14 Variable HEADINGS/SUBHEADs Copyright 2007, Information Builders. Slide 14 EMPLOYEES AS OF AUGUST 30, 2010 Page 1 DIVISION: CE DEPARTMENT:ADMIN SERVICES NAME TITLE HIREDATE LAURA N GORDON ASST ADMINISTRATOR 90/12/05 EMPLOYEES AS OF AUGUST 30, 2010 Page 2 DIVISION: CE (CONT) DEPARTMENT:MARKETING NAME TITLE HIREDATE RUTH B ADAMS MARKETING DIRECTOR 90/05/01
Copyright 2007, Information Builders. Slide 15 BYLASTPAGE Pages should be numbered WITHIN the Sort Group REPAGE will start page numbering at 1, at change of BY value TABLASTPAGE contains maximum page number within the report. Solution
Copyright 2007, Information Builders. Slide 16 BYLASTPAGE Copyright 2007, Information Builders. Slide 16 TABLE FILE GGSALES1 SUM CNT.DST.ST AS NUMBERSTS BY REGION ON TABLE HOLD AS REGST FORMAT FOCUS INDEX REGION END JOIN GGSALES1.SALES01.REGION IN ggsales1 TO UNIQUE REGST.SEG01.REGION IN REGST AS J0 END … FOOTING "Page <TABPAGENO of <FST.NUMBERSTS"
Report of Sales For Region: Midwest State:IL Total Region Sales: Units: 452,310 Dollars: 5,658,827 Filters Applied Year EQ '1997'; Percent of CityProductUnit SalesSales DollarsBudget Total158,0531,990,612 ChicagoBiscotti % Coffee Grinder % Coffee Pot % Croissant % Espresso % Latte % Mug % Scone % Thermos % Page 1 of 3 ____________________________________________________________________________________________________________________________ Output Page 1
Report of Sales For Region: Midwest State:MO Percent of CityProductUnit SalesSales DollarsBudget Total146,5941,839,043 St. LouisBiscotti % Coffee Grinder % Coffee Pot % Croissant % Espresso % Latte % Mug % Scone % Thermos % Page 2 of 3 ____________________________________________________________________________________________________________________________ Output Page 2
Report of Sales For Region: Midwest State:TX Percent of CityProductUnit SalesSales DollarsBudget Total147,6631,829,172 HoustonBiscotti % Coffee Grinder % Coffee Pot % Croissant % Espresso % Latte % Mug % Scone % Thermos % Page 3 of 3 ____________________________________________________________________________________________________________________________ Output Page 3
Copyright 2007, Information Builders. Slide 20 Blank Columns and Rows ACROSSPRT HIDENULLACRS DUPLICATECOL
TABLE FILE HOLD1 SUM UNIT BY REGION BY ST ACROSS CATEGORY END CATEGORY CoffeeFoodGifts REGIONST MidwestIL MO TX NortheastCT MA NY SoutheastFL GA TN WestCA WA ACROSSPRT 7.6.9
TABLE FILE HOLD1 PRINT UNIT BY REGION BY ST ACROSS CATEGORY END CATEGORY CoffeeFoodGifts REGIONST MidwestIL MO TX NortheastCT MA NY DEFAULT - PRINT
SET ACROSSPRT = COMPRESS TABLE FILE HOLD1 PRINT UNIT BY REGION BY ST ACROSS CATEGORY END CATEGORY CoffeeFoodGifts REGIONST MidwestIL MO TX NortheastCT MA NY SoutheastFL GA TN WestCA WA Compressed PRINT
HIDENULLACRS SET HIDENULLACRS=&HIDENULLACRS TABLE FILE EMPDATA SUM 'EMPDATA.EMPDATA.SALARY' BY 'EMPDATA.EMPDATA.DIV' NOPRINT BY 'EMPDATA.EMPDATA.DEPT' ACROSS 'EMPDATA.EMPDATA.JOBCLASS' ON EMPDATA.EMPDATA.DIV PAGE-BREAK HEADING "Division: <EMPDATA.EMPDATA.DIV " " "The setting of HIDENULLACRS is set to &HIDENULLACRS" FOOTING ""
Division: CE The setting of HIDENULLACRS is set to OFF JOBCLASS 019PTA019PTB DEPT ADMIN SERVICES.. MARKETING.. PERSONNEL$45, PROGRAMMING & DVLPMT.. SALES.. JOBCLASS 019PUA019PUB019PVA019PVB $54, $115, HIDENULLACRS OFF
Division: CE The setting of HIDENULLACRS is set to ON JOBCLASS 019PTA019PUA DEPT ADMIN SERVICES.. MARKETING.. PERSONNEL$45, PROGRAMMING & DVLPMT.. SALES.$54, HIDENULLACRS ON JOBCLASS 019PVB229PSA229PSB257PRB $40,900.00$49, $115, $43,000.00
DROPBLNKLINE TABLE FILE EMPLOYEE PRINT 'EMPLOYEE.EMPINFO.Name' AS '' OVER 'EMPLOYEE.ADDRESS.ADDRESS_LN1' AS '' OVER 'EMPLOYEE.ADDRESS.ADDRESS_LN2' AS '' OVER 'EMPLOYEE.ADDRESS.ADDRESS_LN3' AS '' BY 'EMPLOYEE.EMPINFO.EMP_ID' NOPRINT ON EMPLOYEE.EMPINFO.EMP_ID SUBFOOT " " HEADING "SET DROPBLNKLINE = &DROPBLNKLINE " "
SET DROPBLNKLINE =OFF DIANE JONES 235 MURRAY HIL PKWY RUTHERFORD NJ RICHARD SMITH APT 1L 136 E 161 ST. NEW YORK NY JOHN BANNING 160 LOMBARDO AVE. APT 4C FREEPORT NY JOAN IRVING APT 2J 123 E 32 ST. NEW YORK NY ANTHONY ROMANS 271 PRESIDENT ST. FREEPORT NY 11520
SET DROPBLNKLINE =ON DIANE JONES 235 MURRAY HIL PKWY RUTHERFORD NJ RICHARD SMITH APT 1L 136 E 161 ST. NEW YORK NY JOHN BANNING 160 LOMBARDO AVE. APT 4C FREEPORT NY JOAN IRVING APT 2J 123 E 32 ST. NEW YORK NY ANTHONY ROMANS 271 PRESIDENT ST. FREEPORT NY ROSEMARIE BLACKWOOD
Copyright 2007, Information Builders. Slide 30 DUPLICATECOL Copyright 2007, Information Builders. Slide 30 Multiple Verb Sets Show each Verbset in its own columns DUPLICATECOL = OFF aligns common columns to show higher verb accumulations above more detail information. Style sheet attribute VERBSET or LINE allows user to specify styling by verb set.
Copyright 2007, Information Builders. Slide 31 DUPLICATECOL Copyright 2007, Information Builders. Slide 31 SET DUPLICATECOL = &DUPL TABLE FILE EMPLOYEE HEADING "DUPLICATECOL IS SET TO &DUPL" SUM CSAL AVE.CSAL BY DEPARTMENT SUM CSAL AVE.CSAL BY DEPARTMENT BY CJC END
Copyright 2007, Information Builders. Slide 32 DUPLICATECOL=ON Copyright 2007, Information Builders. Slide 32 PAGE 1.1 DUPLICATECOL IS SET TO ON AVE DEPARTMENT CURR_SAL CURR_SAL CURR_JOBCODE MIS $108, $18, A07 A17 B02 B03 B04 B14 PRODUCTION $114, $19, A01 A07 A15 A17 B02 B04
Copyright 2007, Information Builders. Slide 33 DUPLICATECOL=OFF Copyright 2007, Information Builders. Slide 33 DUPLICATECOL IS SET TO OFF AVE DEPARTMENT CURR_JOBCODE CURR_SAL CURR_SAL MIS $108, $18, A07 $9, $9, A17 $27, $27, B02 $18, $18, B03 $18, $18, B04 $21, $21, B14 $13, $13, PRODUCTION $114, $19, A01 $9, $9, A07 $11, $11, A15 $26, $26, A17 $29, $29, B02 $16, $16, B04 $21, $21,120.00
Copyright 2007, Information Builders. Slide 34 DUPLICATECOL Copyright 2007, Information Builders. Slide 34 SET DUPLICATECOL = OFF TABLE FILE GGSALES1 SUM UNITS NOPRINT DOLLARS NOPRINT BY REGION NOPRINT SUM UNITS DOLLARS BY REGION NOPRINT BY ST SUM UNITS DOLLARS COMPUTE PCT_OF_BUDGET; AS 'Percent,of,Budget' BY REGION NOPRINT BY ST BY CITY BY PRODUCT … TYPE=TITLE, COLUMN=N10, SIZE=12, $ TYPE=DATA, LINE=2, COLUMN=N10, SIZE=12, STYLE=BOLD, $
Copyright 2007, Information Builders. Slide 35 SUBTOTALs and SUMMARIZE SUBTOTALs ABOVE Detail ACROSS … SUMMARIZE SUMMARIZE ALPHA COLUMNS SUBFOOT WITHIN
Copyright 2007, Information Builders. Slide 36 ROW-TOTAL gives totals at then end of a line when used with ACROSS. ACROSS-TOTAL allows summations at multiple ACROSS levels ON acrossfield SUBTOTAL/SUB- TOTAL/RECOMPUTE/SUMMARIZE allows for recalculation of numeric fields. ACROSS: SUMMARIZE
SUBTOTALs ABOVE the Details SET SUBTOTAL=ABOVE SET SUBTOTALS=ABOVE TABLE FILE CAR SUM RC DC BY COUNTRY BY CAR ON COUNTRY SUBTOTAL AS '*TOTAL' ON TABLE SUMMARIZE AS 'WORLD TOTAL' END
SUBTOTALs ABOVE the Data PAGE 1 COUNTRY CAR RETAIL_COST DEALER_COST WORLD TOTAL 173, ,794 *TOTAL ENGLAND 45,319 37,853 ENGLAND JAGUAR 22,369 18,621 ENGLAND JENSEN 17,850 14,940 ENGLAND TRIUMPH 5,100 4,292 *TOTAL FRANCE 5,610 4,631 FRANCE PEUGEOT 5,610 4,631 *TOTAL ITALY 51,065 41,235 ITALY ALFA ROMEO 19,565 16,235 ITALY MASERATI 31,500 25,000
ACROSS: Summarize Copyright 2007, Information Builders. Slide 39 DEFINE FILE CAR SALESCAT/I7 = IF SALES LT 2000 THEN 1 ELSE 2; SEATS/I7 = SEATS; END TABLE FILE CAR SUM RCOST OVER DCOST OVER COMPUTE MARKUP/F7.2% = (RCOST - DCOST)/DCOST; BY COUNTRY ACROSS SEATS/R ACROSS-TOTAL ACROSS SALESCAT/R IF SEATS EQ 2 OR 4 IF COUNTRY EQ ‘ENGLAND’ OR ‘ITALY’ END …
ACROSS: Summarize SEATS 2 4 TOTAL SALESCAT COUNTRY ENGLAND RETAIL_COST 13, , ,828 DEALER_COST 11, , ,659 MARKUP.19%..19%..39% ITALY RETAIL_COST 31,500 13,640. 5,925 51,065 DEALER_COST 25,000 11,320. 4,915 41,235 MARKUP.26%.20%..21%.67% Copyright 2007, Information Builders. Slide 40
ACROSS: Summarize Copyright 2007, Information Builders. Slide 41 DEFINE FILE CAR SALESCAT/I7 = IF SALES LT 2000 THEN 1 ELSE 2; SEATS/I7 = SEATS; END TABLE FILE CAR SUM RCOST OVER DCOST OVER COMPUTE MARKUP/F7.2% = (RCOST - DCOST)/DCOST BY COUNTRY ACROSS SEATS/R ACROSS SALESCAT/R ON SEATS SUMMARIZE IF SEATS EQ 2 OR 4 END
ACROSS: Summarize SEATS 2 4 TOTAL SALESCAT COUNTRY ENGLAND RETAIL_COST 13, , ,828 DEALER_COST 11, , ,659 MARKUP.19%..19%..19% ITALY RETAIL_COST 31,500 13,640. 5,925 51,065 DEALER_COST 25,000 11,320. 4,915 41,235 MARKUP.26%.20%..21%.24% Copyright 2007, Information Builders. Slide 42
ACROSS: Summarize Copyright 2007, Information Builders. Slide 43 DEFINE FILE CAR SALESCAT/I7 = IF SALES LT 2000 THEN 1 ELSE 2; SEATS/I7 = SEATS; END TABLE FILE CAR SUM RCOST NOPRINT OVER DCOST NOPRINT OVER COMPUTE MARKUP/F7.2% = (RCOST - DCOST)/DCOST; AS '' BY COUNTRY ACROSS SEATS/R ACROSS SALESCAT/R ON SALESCAT RECOMPUTE IF COUNTRY EQ 'ENGLAND' OR 'ITALY' IF SEATS EQ 2 OR 4 END
ACROSS: Summarize SEATS 2 4 SALESCAT 1 2 TOTAL 1 2 TOTAL COUNTRY ENGLAND.19%..19%.19%..19% ITALY.26%.20%.24%..21%.21% Copyright 2007, Information Builders. Slide 44
SET SUMMARYLINES 7.7 -? SET SUMMARYLINES SUMMARYLINES -SET &OUTPT = &OUTPT + 1; TABLE FILE EMPLOYEE SUM 'EMPLOYEE.EMPINFO.CURR_SAL' NOPRINT COMPUTE Salary/A20 = '*****' | FTOA(EMPLOYEE.EMPINFO.CURR_SAL, '(D12.2)', 'A15'); 'EMPLOYEE.EMPINFO.ED_HRS' AS 'Education,Hours' BY 'EMPLOYEE.EMPINFO.DEPARTMENT' BY 'EMPLOYEE.EMPINFO.EMP_ID' AS 'Employee' ON EMPLOYEE.EMPINFO.DEPARTMENT RECOMPUTE * AS '*TOTAL' HEADING "SUMMARIZE Alpha Columns &SUMMARYLINES " " "" " "
SUMMARIZE Alpha Columns OLD Education DEPARTMENTEmployeeSalaryHours MIS ***** 13, ***** 18, ***** 18, ***** 21, ***** 9, ***** 27, *TOTAL MIS PRODUCTION ***** 11, ***** 9, ***** 29, ***** 26, ***** 21, ***** 16, *TOTAL PRODUCTION120.00
SUMMARIZE Alpha Columns NEW Education DEPARTMENTEmployeeSalaryHours MIS ***** 13, ***** 18, ***** 18, ***** 21, ***** 9, ***** 27, *TOTAL MIS***** 108, PRODUCTION ***** 11, ***** 9, ***** 29, ***** 26, ***** 21, ***** 16, *TOTAL PRODUCTION***** 114,
Copyright 2007, Information Builders. Slide 48 SUBFOOT WITHIN Copyright 2007, Information Builders. Slide 48 BY fieldname SUBFOOT WITHIN ON sortfieldname SUBFOOT WITHIN “ <fieldname <prefix.fieldname Generates {prefix.} fieldname WITHIN sortfieldname
Copyright 2007, Information Builders. Slide 49 SUBFOOT WITHIN Copyright 2007, Information Builders. Slide 49 TABLE FILE EMPLOYEE SUM CURR_SAL AS 'Salary' BY DPT BY CURR_JOBCODE ON DPT SUBFOOT WITHIN "</1 Departmental Totals:" " Average Salary is <AVE.CURR_SAL " " Minimum Salary is <MIN.CURR_SAL " " Maximum Salary is <MAX.CURR_SAL " " TOTAL SALARY IS <CURR_SAL </1 " ON TABLE SUBFOOT WITHIN "Company Totals: " " Average Salary is <AVE.CURR_SAL " " Minimum Salary is <MIN.CURR_SAL " " MAXIMUM Salary is <MAX.CURR_SAL " " Total Salary is <CURR_SAL " END
Copyright 2007, Information Builders. Slide 50 SUBFOOT WITHIN Copyright 2007, Information Builders. Slide 50 DEPARTMENT CURR_JOBCODE Salary MIS A07 $9, A17 $27, B02 $18, B03 $18, B04 $21, B14 $13, Departmental Totals: Average Salary is $18, Minimum Salary is $9, Maximum Salary is $27, TOTAL SALARY IS $108, PRODUCTION A01 $9, A07 $11, A15 $26, A17 $29,700.00
Copyright 2007, Information Builders. Slide 51 SUBFOOT WITHIN Copyright 2007, Information Builders. Slide 51 DEPARTMENT CURR_JOBCODE Salary PRODUCTION B02 $16, B04 $21, Departmental Totals: Average Salary is $19, Minimum Salary is $9, Maximum Salary is $29, TOTAL SALARY IS $114, Company Totals: Average Salary is $18, Minimum Salary is $9, MAXIMUM Salary is $29, Total Salary is $222,284.00
Copyright 2007, Information Builders. Slide 52 Documentation SYSCOLUM
Copyright 2007, Information Builders. Slide 53 SYSCOLUM Copyright 2007, Information Builders. Slide 53 Dynamic Information about the Master File Description FILE/SEGMENT/FIELD information Includes Description and Remarks Includes DEFINE/COMPUTE/FILTERS + The Expression Changes as the Product Changes
Copyright 2007, Information Builders. Slide 54 SYSCOLUM File Information (extract) Copyright 2007, Information Builders. Slide 54 FILENAME=SYSCOLUM,SUFFIX=FMI, REMARKS=Cataloged Column Information,$ SEGNAME=SYSCOLUM,SEGTYPE=S2 FIELD=TBNAME,,A64,A64,INDEX=I,$ FIELD=TBCREATOR,,A18,A18,$'EDADBA' or appname FIELD=DBMS_CREATOR,,A8,A8,$AFD if exists FIELD=TBTYPE,,A8,A8,$MFD SUFFIX FIELD=VIEW_OF,,A84,A84,$ NAME OF REAL MFD FOR BV FIELD=FDEFCENT,,I4,I4,$ FILE LEVEL DEFAULT CENTURY FIELD=FYRTHRESH,,I4,I4,$ FILE LEVEL YEAR THRESH FIELD=IS_CUBE,,A1,A1,ACCEPT=Y OR N,$
Copyright 2007, Information Builders. Slide 55 SYSCOLUM Segment Information (extract) Copyright 2007, Information Builders. Slide 55 SEGNAME=SYSSEG, SEGTYPE=S1, PARENT=SYSCOLUM FIELD=SEGNO,,I2S,I4,$ SEGMENT NUMBER FIELD=SEGNAME,,A64,A64,$MFD - SEGNAME/CRSEGNAME FIELD=SEGTYPE,,A4,A4,$MFD - SEGTYPE FIELD=LOCSEGNAME,,A64,A64,$MFD - SEGNAME FROM LOCAL MFD. FIELD=SKEYS,,I2,I4,$MFD - SKEYS FIELD=PARNO,,I2S,I4,$ PARENT SEGMENT NUMBER OF THIS FIELD FIELD=PARENT,,A64,A64,$MFD - PARENT FIELD=TAG,,A8,A8,$ FIELD=FILENAME,,A64,A64,$ File from which segment originated FIELD=SEGSUFFIX,,A8,A8,$SUFFIX FOR A SEGMENT AS SEPARATE FILE FIELD=SEGDESC,,A256,A256,$SEGMANET DESCRIPTION
Copyright 2007, Information Builders. Slide 56 SYSCOLUM Field Information (extract) Copyright 2007, Information Builders. Slide 56 SEGNAME=SYSFIELD,SEGTYPE=S1,PARENT=SYSSEG FIELD=NAME,,A66,A66,$MFD FIELD=COLNO,,I4,I4,$System generated record counter … FIELD=ALIAS,,A66,A66,$MFD - ALIAS FIELD=INDEXED,,A1,A1,ACCEPT=Y OR N OR ' ',$MFD - F(INDX) FIELD=ACTUAL,,A8,A8,$MFD - ACTUAL … FIELD=TITLE,,A78,A78,$Drived from TITLE in master file FIELD=HELPMESSAGE,,A78,A78,$Derived from HELPMESSAGE FIELD=USAGE,,A8,A8,$MFD – USAGE … FIELD=DEFINE,,A1,A1,ACCEPT=Y OR N OR C OR F OR S,$ FIELD=DEFTEXT,,A256,A256,$ TEXT OF DEFINE … FIELD=LONGDESC,,A2048,A2048,$ Derived from DESCRIPTION
Ggsales1 MASTER FILENAME=GGSALES1, SUFFIX=FOC, $ SEGMENT=SALES01, SEGTYPE=S1, $ FIELDNAME=SEQ_NO, ALIAS=SEQ, USAGE=I5, TITLE='Sequence#', DESCRIPTION='Sequence number in database', $,,, DEFINE YEAR/A4 WITH SEQ_NO=EDIT( DATE,'9999'); $ FILTER NINETYSEVEN WITH SEQ_NO=YEAR EQ '1997'; $ FIELDNAME=UNITS, ALIAS=E10, USAGE=I8C, TITLE='Unit Sales', DESCRIPTION='Number of units sold', $ FIELDNAME=DOLLARS, ALIAS=E11, USAGE=I8C, TITLE='Dollar Sales', DESCRIPTION='Total dollar amount of reported sales', $ FIELDNAME=BUDUNITS, ALIAS=E12, USAGE=I08, TITLE='Budget Units', DESCRIPTION='Number of units budgeted', $ FIELDNAME=BUDDOLLARS, ALIAS=E13, USAGE=I08, TITLE='Budget Dollars', DESCRIPTION='Total sales quota in dollars', $ COMPUTE PCT_OF_BUDGET/F7.2%=UNITS/BUDUNITS * 100;, $ FILTER EAST WITH SEQ_NO=REGION EQ 'Northeast' OR 'Southeast'; $ FILTER FOODS WITH SEQ_NO=CATEGORY EQ 'Coffee' OR 'Food'; $
Copyright 2007, Information Builders. Slide 58 SYSCOLUM Describe Copyright 2007, Information Builders. Slide 58 DEFINE FILE SYSCOLUM DEF_TYPE/A15= DECODE DEFINE('C' 'Computes' 'F' 'Filters' 'Y' 'Defines‘ ELSE 'Columns '); XREMARKS/A256=IF DEFINE EQ 'F' OR 'C' OR 'Y' THEN GETTOK(DEFTEXT, 256, -1, '=', 256, 'A256') ELSE REMARKS; DEFORDER/I1 = DECODE DEFINE('C' 1 'Y' 3 'F' 4 ELSE 2); END TABLE FILE SYSCOLUM PRINT SHORTNAME SHORTALIAS USAGE XREMARKS AS 'Remarks,or,Definition' BY SEGNO NOPRINT BY DEFINE NOPRINT ROWS ‘C’ OVER ‘N’ OVER ‘Y’ OVER ‘F’ BY DEF_TYPE NOPRINT BY COLNO NOPRINT ON DEF_TYPE SUBHEAD "<DEF_TYPE " HEADING "Report of file: &FileName" "As of: &DATEMtrDYY" " “ END
Report of file: ggsales1 As of: April 17, 2009 Remarks or SHORTNAMESHORTALIASUSAGEDefinition Computes PCT_OF_BUDGETF7.2%UNITS/BUDUNITS * 100; Columns SEQ_NOSEQI5Sequence number in database CATEGORYE02A11Product category PCDE03A04Product Identification code (for sale) PRODUCTE04A16Product name REGIONE05A11Region code STE06A02State CITYE07A20City STCDE08A05Store identification code (for sale) DATEE09I8YYMDDate of sales report UNITSE10I8CNumber of units sold DOLLARSE11I8CTotal dollar amount of reported sales BUDUNITSE12I08Number of units budgeted BUDDOLLARSE13I08Total sales quota in dollars Defines YearA4EDIT( DATE,'9999'); Filters NINETYSEVENI1Year EQ '1997'; EASTI1REGION EQ 'Northeast' OR 'Southeast'; FOODSI1CATEGORY EQ 'Coffee' OR 'Food'; SYSCOLUM Describe