20
1 The Master That Tells All Floria Foote Information Builders June 2008

The Master That Tells All

  • Upload
    manasa

  • View
    26

  • Download
    0

Embed Size (px)

DESCRIPTION

The Master That Tells All. Floria Foote Information Builders June 2008. The MASTER That Tells All The Synonym – The Road Map. The MASTER That Tells All The Synonym – The Road Map from the data to the Report. EMPLOYEE.FOC. - PowerPoint PPT Presentation

Citation preview

Page 1: The Master That Tells All

1

The Master That Tells All

Floria Foote

Information Builders

June 2008

Page 2: The Master That Tells All

2

The MASTER That Tells All The Synonym – The Road Map

Page 3: The Master That Tells All

3

The MASTER That Tells All The Synonym – The Road Map from the data to the Report

EMPLOYEE.FOC

Page 4: The Master That Tells All

4

The MASTER That Tells All Where Am I Coming From - The FILE Declaration

FILE=filename,SUFFIX=filetype,[FDFC=cent,FYRT=yy,]

[ACCESS=accessfile/DATASET=datasetname],

[REMARKS|DESC=description]

[DESC_ln=description in another language]

FILENAME=employee, SUFFIX=FOC , $

Page 5: The Master That Tells All

5

The MASTER That Tells All How Will I Get There – SEGMENT Declaration

• Logical Grouping of Data

• For Relational Data Adapters, will represent different tables, identified in the ACCESS file.

•SEGTYPE - S0 -- no sequence,

Sn -- Sequence is low-to-high within parent

on first n keys

SHn – Sequenced high-to-low within parent

on first n keys

U -- Only 1 child instance per parent

SEGNAME=name, SEGTYPE=, PARENT=, [LOCATION=, [DATASET=,]]

Page 6: The Master That Tells All

6

The MASTER That Tells All How Will I Get There – SEGMENT Declaration

SEGNAME=name, SEGTYPE=, PARENT=, CRFILE=, [CRSEG=, [CRKEY=,]SEGSUF=suffix [,$]

SEGTYPE: KU Uses Key to access unique instance in CRFILE

KM Uses Key to access multiple instances in CRFILE

KL[U] Uses Linkage in CRFILE to access other segments

CRKEY: Common field in host and cross-referenced file

CRSEG: Name of the segment in its own file/master

SEGSUF: File SUFFIX of cross-reference file (if not equal host) ,$ No field declarations follow

Page 7: The Master That Tells All

7

The MASTER That Tells All How Will I Get There – SEGMENT Declaration

SEGNAME=name, SEGTYPE=, PARENT=, CRFILE=, [CRSEG=,]JOIN_WHERE = where test;[ JOIN_WHERE = where test2;],$ [,$]

Special Cases

Conditional Cross-References

Repeated Groups of Data

(SUFFIX=FIX/VSAM)

SEGNAME=name, SEGTYPE=, PARENT=, OCCURS=VARIABLE|n|fieldname

Page 8: The Master That Tells All

8

The MASTER That Tells All How Will I Get There

SEGMENT=EMPINFO, SEGTYPE=S1, $

SEGMENT=FUNDTRAN, SEGTYPE=U, PARENT=EMPINFO, $

SEGMENT=JOBSEG, SEGTYPE=KU, PARENT=PAYINFO, CRFILE=JOBFILE, CRKEY=JOBCODE, $

SEGMENT=SECSEG, SEGTYPE=KLU, PARENT=JOBSEG, CRFILE=JOBFILE, $

SEGMENT=ADDRESS, SEGTYPE=S1, PARENT=EMPINFO, $

SEGMENT=ATTNDSEG, SEGTYPE=KM, PARENT=EMPINFO, CRFILE=EDUCFILE, CRKEY=EMP_ID, $ SEGMENT=COURSEG, SEGTYPE=KLU, PARENT=ATTNDSEG, CRFILE=EDUCFILE, $

Page 9: The Master That Tells All

9

The MASTER That Tells AllThe Paths to Success

Page 10: The Master That Tells All

10

The MASTER That Tells All What Will I See When I get There? FIELD Declaration

FIELD = field_name, [ALIAS= alternate name] , USAGE=usage format, ACTUAL = physical format, [INDEX|FIELDTYPE =I,][ACCEPT=tests,] [DEFCENT=default century,YRTHRESH=year threshold,] [[ TITLE = "default_title"  [, TITLE_ln="title_for_ln" ...]] [[, DESC="default_desc"  [, DESC_ln="desc_for_ln" ...]], $

Reserved FIELDNAMES

RECTYPE -- Used for Delimited,FIX,VSAM,IMS files to

indicate different groups of data.

MAPVALUE -- Used within a repeating group to indicate

different groups of data

Page 11: The Master That Tells All

11

The MASTER That Tells All What Will I See When I get There? FIELD Declaration

ALIAS

Alternate Name

Relational Data: Column Name from Relational Table

ORDER Used within OCCURS=segment

Virtual field containing occurrence number

Page 12: The Master That Tells All

12

The MASTER That Tells All What Will I See When I get There? GROUP Declaration

GROUP = field_name, ALIAS= alternate name , USAGE=alpha format, ACTUAL = alpha physical format, [INDEX|FIELDTYPE =I,][ACCEPT=tests,] [[ TITLE = "default_title"  [, TITLE_ln="title_for_ln" ...]] [[, DESC="default_desc"  [, DESC_ln="desc_for_ln" ...]], $

GROUP = field_name, ALIAS= alternate name , ELEMENTS = n [INDEX|FIELDTYPE =I,][ACCEPT=tests,] [[ TITLE = "default_title"  [, TITLE_ln="title_for_ln" ...]] [[, DESC="default_desc"  [, DESC_ln="desc_for_ln" ...]], $

Page 13: The Master That Tells All

13

The MASTER That Tells All How Will I Get There – Field Declaration

FIELDNAME=EMP_ID, ALIAS=EID, USAGE=A9, $ GROUP=NAME1, ALIAS=NAME1, ELEMENTS=2, $ FIELDNAME=LAST_NAME, ALIAS=LN, USAGE=A15, $ FIELDNAME=FIRST_NAME, ALIAS=FN, USAGE=A10, $ FIELDNAME=HIRE_DATE, ALIAS=HDT, USAGE=I6YMD, $ FIELDNAME=DEPARTMENT, ALIAS=DPT, USAGE=A10, $ FIELDNAME=CURR_SAL, ALIAS=CSAL, USAGE=D12.2M, $ FIELDNAME=CURR_JOBCODE, ALIAS=CJC, USAGE=A3, $ FIELDNAME=ED_HRS, ALIAS=OJT, USAGE=F6.2, $

Page 14: The Master That Tells All

14

The MASTER That Tells All What Are the Rules of the Road? – DBA Security

FIELD = …

END

DBA=dbavalue,$

USER=password, ACCESS=R|RW|U|W,

[RESTRICT=SEGMENT,NAME=segment name not allowed]

[RESTRICT=FIELD,NAME=field name not allowed]

[RESTRICT=VALUE,

NAME=segment level for testing|SYSTEM

VALUE=“IF test (TABLE)| VALIDATE test (MODIFY)]

,$

Page 15: The Master That Tells All

15

The MASTER That Tells All Can I Limit the ROUTEs - FILTERs

FILTER name [WITH fieldname] =

true/false boolean expression; ,$

FILTER MIS WITH EMPINFO.EMP_ID

=DEPARTMENT EQ 'MIS'; $

Page 16: The Master That Tells All

16

The MASTER That Tells All What Can I do On the Way Create Virtual/Temporary Fields

DEFINE field/format = expression; ,$

DEFINE FULL_NAME/A26 WITH EMPINFO.EMP_ID = FIRST_NAME || (' ' | LAST_NAME); $

•Evaluated on Retrieval of Detail Information

•May be used for selection, verb object, sort field

Page 17: The Master That Tells All

17

The MASTER That Tells All What Can I do Once I Arrive COMPUTE

COMPUTE column_name/format = expression; ,$

DEFINE FULL_NAME/A26 WITH EMPINFO.EMP_ID = FIRST_NAME || (' ' | LAST_NAME); $

•Evaluated after retrieval/sort/aggregation

•May be used in WHERE TOTAL test or BY … TOTAL

Page 18: The Master That Tells All

18

The MASTER That Tells AllThe Journey

Page 19: The Master That Tells All

19

The MASTER That Tells AllThe Procedure

TABLE FILE EMPLOYEESUM COMPUTE NEWSAL; COMPUTE NEWDED;BY DEPARTMENTBY FULL_NAMEBY EMP_ID NOPRINT ON DEPARTMENT RECOMPUTE AS '*TOTAL'HEADING""FOOTING""WHERE MIS;END

Page 20: The Master That Tells All

20

The MASTER That Tells AllThe Arrival