This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
1 External Action Block Usable 1 External Action Block Usable EverywhereEverywhere Supporting both ‘With’ and ‘Without’ Supporting both ‘With’ and ‘Without’ Missing Missing Flag ModesFlag Modes
Reads and Writes all PS File TypesReads and Writes all PS File Types All Work done in Standard GEN CodeAll Work done in Standard GEN Code Contains Many FeaturesContains Many Features
GEN FILE MANAGER GEN FILE MANAGER Overall Solution (1)Overall Solution (1)
Small – Fast – Stable Assembler HSmall – Fast – Stable Assembler H Dynamically InvokedDynamically Invoked Reusable (Single Load / Multiple Use)Reusable (Single Load / Multiple Use) Usable in non-GEN applications as well Usable in non-GEN applications as well Easy to Install – Easy in UseEasy to Install – Easy in Use
Overview of Supported Features (1)Overview of Supported Features (1)
Full Physical Sequential File HandlingFull Physical Sequential File Handling
Data Types and Type ConversionData Types and Type Conversion
All-Round Record Characteristics All-Round Record Characteristics All GEN Supported Field TypesAll GEN Supported Field Types Multi GEN View Attribute Distribution Multi GEN View Attribute Distribution Adaptation to Missing-Flag modeAdaptation to Missing-Flag mode
GEN FILE MANAGERGEN FILE MANAGERData Types and Type ConversionData Types and Type Conversion
Fixed Char and Varchar Fixed Char and Varchar Numeric Numeric (BIN, Fixed/Zoned Decimal, (BIN, Fixed/Zoned Decimal,
Signed/Unsigned)Signed/Unsigned)
Conversion of Numeric Data TypesConversion of Numeric Data Types All Data Types Usable with Reading andAll Data Types Usable with Reading and
Writing RecordsWriting Records Conversion Rules Stored with 1st File AccessConversion Rules Stored with 1st File Access Reference Conversion for PerformanceReference Conversion for Performance
I I Explicit Open of an Input File Explicit Open of an Input File - optional- optional O O Explicit Open of an Output File Explicit Open of an Output File - optional- optional
CC Explicit Close of an Input or Output File Explicit Close of an Input or Output File - optional- optional
GG G(et) – Read next Record on an Input FileG(et) – Read next Record on an Input File
RR Re-Read last Record Read on an Input FileRe-Read last Record Read on an Input File
PP P(ut) – Write a Record to an Output FileP(ut) – Write a Record to an Output File
YY Ask Current Record Count of 1 or All FilesAsk Current Record Count of 1 or All Files ZZ Reposition on 1 or All Files (with Checkpoint / Reposition on 1 or All Files (with Checkpoint /
GEN FILE MANAGERGEN FILE MANAGER Data Structures and Record Views (1)Data Structures and Record Views (1)
GEN uses Views and AttributesGEN uses Views and AttributesCOBOL uses Level-ed Structures and FieldsCOBOL uses Level-ed Structures and FieldsFILE MANAGER uses Displacements onlyFILE MANAGER uses Displacements only
GEN Structure passed to the File Manager is seenGEN Structure passed to the File Manager is seenas a Series of Consecutive GEN Attributes each as a Series of Consecutive GEN Attributes each having a Starting Position, a Length and a Typehaving a Starting Position, a Length and a Type
RECORD VIEW: RECORD VIEW: A group of consecutive GEN A group of consecutive GEN Attributes matching a FILE Record.Attributes matching a FILE Record.A Record View can - but does not have to ! – A Record View can - but does not have to ! – correspond to a GEN View.correspond to a GEN View.
GEN FILE MANAGERGEN FILE MANAGER Data Structures and Record Views Data Structures and Record Views
(2)(2)Example 1Example 1: Record View(s) Matching GEN View(s): Record View(s) Matching GEN View(s) GEN COBOL WS FILE MANAGER
VIEWS/ATTRIBUTES STRUCTURES/FIELDS DISPLACEMENTS
Group View my_group(1) 05 MY-GROUP-0001GV. Starting 0 Conversion_Rule
Work View matching_view 09 MATCHING-VIEW-002EV. attribute match_attr 13 MATCH-ATTR PIC XX. Skipped by File Manager Work View first_view 09 FIRST-VIEW-004EV. attribute a 13 A PIC X(12). + 0 12X, attribute b 13 B PIC X(9) COMP-3. + 12 5P, attribute c 13 C PIC S9(4). + 21 4N, attribute d 13 D PIC X. + 23 1X //
Spec View next 09 NEXT-018EV. attribute n 13 M PIC X(50). + 24 50X//
Work View another_one 09 ANOTHER-ONE-022EV. attribute v 13 V PIC X(5) COMP-3 + 74 3P, attribute w 13 W PIC X(24) + 77
24X, attribute x 13 X PIC X(9) COMP-3 + 101 5P, attribute y 13 Y PIC X(3) + 106 3X, attribute z 13 Z PIC X(9) + 109 9Xbb
GEN FILE MANAGERGEN FILE MANAGER Data Structures and Record Views (3)Data Structures and Record Views (3)
Example 2Example 2: Record View(s) Not Matching GEN View(s): Record View(s) Not Matching GEN View(s)
GEN COBOL WS FILE MANAGERVIEWS/ATTRIBUTES STRUCTURES/FIELDS DISPLACEMENTS
Group View my_group(1) 05 MY-GROUP-0001GV. Starting 0 Conversion_Rule
Work View matching_view 09 MATCHING-VIEW-002EV. attribute match_attr 13 MATCH-ATTR PIC XX. Skipped by File Manager Work View first_view 09 FIRST-VIEW-004EV. attribute a 13 A PIC X(12). + 0 12X, attribute b 13 B PIC X(9) COMP-3. + 12 5P, attribute c 13 C PIC S9(4). + 21 4N, attribute d 13 D PIC X. + 23 1X,
Spec View next 09 NEXT-018EV. attribute n 13 M PIC X(50). + 24 50X,
Work View another_one 09 ANOTHER-ONE-022EV. attribute v 13 V PIC X(5) COMP-3 + 74 3P // attribute w 13 W PIC X(24) + 77 24X, attribute x 13 X PIC X(9) COMP-3 + 101 5P, attribute y 13 Y PIC X(3) + 106 3X, attribute z 13 Z PIC X(9) + 109 9Xbb
Pass the File Manager the Starting Position, Length and Type of eachPass the File Manager the Starting Position, Length and Type of eachAttribute in the GEN Group View or of each Field in the File Record.Attribute in the GEN Group View or of each Field in the File Record.Inform the File Manager about the Attributes/Fields belonging to the Inform the File Manager about the Attributes/Fields belonging to the samesame
Record View (each Record View is delimited by //)Record View (each Record View is delimited by //)
Tell File Manager which Record View(s) need(s) to be filled with DataTell File Manager which Record View(s) need(s) to be filled with Data Read from an Input File or which Record View must be taken to write a Read from an Input File or which Record View must be taken to write a
Record to an Output FileRecord to an Output File
GEN FILE MANAGERGEN FILE MANAGER Data Structures and Record Views (4)Data Structures and Record Views (4)
InstallationInstallation Define a ‘dummy’ EAB to GEN Using the ImportDefine a ‘dummy’ EAB to GEN Using the Import
Identification Area + the Export Matching AreaIdentification Area + the Export Matching Area Link-Edit Bootstrap Module Using the Link-Edit Bootstrap Module Using the
‘dummy’ ‘dummy’
EAB name (LE compliant !)EAB name (LE compliant !) Link-Edit the File Manager Module and Sub-Link-Edit the File Manager Module and Sub-
Modules Modules
Install GEN Application Package incl. BootstrapInstall GEN Application Package incl. Bootstrap
Use The GEN FILE MANAGER in Your GEN ABs Use The GEN FILE MANAGER in Your GEN ABs
Over and Over and Over and Over AgainOver and Over and Over and Over Again25
ESCROW ServiceESCROW Service GEN FILE MANAGER Sources Deposed at theGEN FILE MANAGER Sources Deposed at the
““Stockholm Chamber of Commerce” in 2006Stockholm Chamber of Commerce” in 2006
Licensees can Sign a ‘Licensee Acceptance’ to Licensees can Sign a ‘Licensee Acceptance’ to
become a Party Involved in the ESCROW Agreement.become a Party Involved in the ESCROW Agreement. Licensees Pay an Initial, Annual and Update Fee Licensees Pay an Initial, Annual and Update Fee
Licensees Get GEN FILE MANAGER Sources when Licensees Get GEN FILE MANAGER Sources when
KAIZEN/TISS Stops DistributionKAIZEN/TISS Stops Distribution