The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.

2B Generating DDL from a DDS 2E Model with No Changes Crispin Bates –CPU Inc

Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by , 2017-02-05 02:35:04

2B Generating DDL from a DDS 2E Model with No Changes ...

2B Generating DDL from a DDS 2E Model with No Changes Crispin Bates –CPU Inc

Example DDS

26



Fields in SQL

27



Run GENDDL

28



GENDDL

29



Resulting DDL

30



Resulting DDL missing Long N

— The resulting DDL is missing lon
originally added in the manual

— This is one of the things that w
processing

31

Names

ng field names which I had
DDL that I had created.
will be added in the Post-Compile

2E Compile Processing

— The 2E Compile Processor allow
to be called.

— Data Area YBRTPXA controls th
programs.

— 1 - 10 Pre-compile exit program
— 11 - 20 Pre-compile exit progra
— 21 - 30 Post-compile exit progr
— 31 - 40 Post-compile exit progr

32

ws for User defined Exit Programs

he pre and post compile exit

m
am library
ram
ram library

2e Compile Processing

— For the DDL Generation Process
Compile Exit program.

33

s we take advantage of the Post-

Exit Program

— CL Program TMMFUPC in library
the post compile processing by

— We can then take control of any
happen.

— We have many pre and post co
happen each time an object is g

— After many years of changing C
externalized it all into a databa

34

y CRPDEVUTL is called as part of
y 2E
y processing that we want to

ompile steps that we need to
generated and compiled.
CL Programs to cater for it we
ase

Processing File

35



Processes

36



Post Processing

37



Each Program has the same P

38

Parameter Interface

Parameters

39



Source Code to call each Proce

40

ess

Source Code to call each Proce

41

ess

DDLGEN Post Processing func

— The DDL Generation function th
passed object type is a file, and

— If it is a PF or LF, then the proce

42

ction

hat gets called checks to see if the
d if so, finds the Object Attribute.
ess of generating the DDL is called.

DDLGEN Post Compile Process

43

s

Building the DDL

— Earlier on I noted that there we
be converted to DDL Index’s.

— The DDL Build process checks a
is being processed should be co

— As long as there is no exception
continues.

44

ere some exceptions that could not

a file to see if the current file that
onverted to DDL.
n record, the DDL Build process

Build DDL

45



Adding the long field names

— The Generated DDL is then pars
COLUMN value.

— The field name is derived from
— Over the years there we have lo

characters for SQL field names
— We built an exception table for

that caused us problems
— We also removed invalid charac

46

sed, and each field is given a FOR

the 2E Model Name for the field
ots of fields that contain invalid

r the internal DDS name for fields

cters during the parsing process

Some examples

47



Resulting DDL

48



DSPFFD on the file

49



Fields in SQL

50


Click to View FlipBook Version