Skip to content

Commit

Permalink
Adding zAppBuild Sample (#8)
Browse files Browse the repository at this point in the history
* added zAppBuild

* Added MortgageApplicationV2

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Added multiple repo example

* Reset datasets.properties

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md
  • Loading branch information
drbruce-git authored and GitHub Enterprise committed May 24, 2019
1 parent 942fa4f commit d0c9dc0
Show file tree
Hide file tree
Showing 84 changed files with 13,847 additions and 16 deletions.
12 changes: 12 additions & 0 deletions Build/MortgageApplicationV2/Mortgage-Common/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# line endings
* text eol=lf

# file encodings
*.cpy zos-working-tree-encoding=ibm-1047 git-encoding=utf-8
*.cbl zos-working-tree-encoding=ibm-1047 git-encoding=utf-8
*.bms zos-working-tree-encoding=ibm-1047 git-encoding=utf-8
*.pli zos-working-tree-encoding=ibm-1047 git-encoding=utf-8
*.lnk zos-working-tree-encoding=ibm-1047 git-encoding=utf-8
*.properties zos-working-tree-encoding=ibm-1047 git-encoding=utf-8

13 changes: 13 additions & 0 deletions Build/MortgageApplicationV2/Mortgage-Common/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Mortgage-Common</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
<nature>com.ibm.ftt.ui.views.project.navigator.local</nature>
<nature>com.ibm.ftt.dbbz.integration.dbbzprojectnature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Build properties used by zAppBuild/language/BMS.groovy

#
# default BMS map build rank - used to sort language build file list
# leave empty - overridden by file properties if sorting needed
bms_fileBuildRank=

#
# default BMS maximun RC allowed
# can be overridden by file properties
bms_maxRC=0

#
# default BMS parameters
# can be overridden by file properties
bms_copyGenParms=SYSPARM(DSECT),DECK,NOOBJECT
bms_compileParms=SYSPARM(MAP),DECK,NOOBJECT
bms_linkEditParms=MAP,RENT,COMPAT(PM5)







Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Build properties used by zAppBuild/language/Cobol.groovy

#
# default COBOL program build rank - used to sort build file list
# leave empty - overridden by file properties
cobol_fileBuildRank=

#
# COBOL dependency resolution rules
# Rules defined in application.properties
cobol_resolutionRules=[${copybookRule}]

#
# default COBOL compiler version
# can be overridden by file properties
cobol_compilerVersion=V6

#
# default COBOL maximum RCs allowed
# can be overridden by file properties
cobol_compileMaxRC=4
cobol_linkEditMaxRC=0

#
# default COBOL compiler parameters
# can be overridden by file properties
cobol_compileParms=LIB
cobol_compileCICSParms=CICS
cobol_compileSQLParms=SQL
cobol_compileErrorPrefixParms=ADATA,EX(ADX(ELAXMGUX))

#
# default LinkEdit parameters
# can be overridden by file properties
cobol_linkEditParms=MAP,RENT,COMPAT(PM5)

#
# execute link edit step
# can be overridden by file properties
cobol_linkEdit=true

#
# scan link edit load module for link dependencies
# can be overridden by file properties
cobol_scanLoadModule=true











Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Build properties used by zAppBuild/language/LinkEdit.groovy

#
# default link file build rank - used to sort language build file list
# leave empty - overridden by file properties if sorting needed
linkedit_fileBuildRank=

#
# default LinkEdit maximum RC allowed
# can be overridden by file properties
linkedit_maxRC=0

#
# default LinkEdit parameters
# can be overridden by file properties
linkEdit_parms=MAP,RENT,COMPAT(PM5)

#
# scan link edit load module for link dependencies
# can be overridden by file properties
linkedit_scanLoadModule=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Build properties used by zAppBuild/build.groovy

#
# Comma separated list of additional application property files to load
# Supports both relative path (to ${application}/application-conf/) and absolute path
applicationPropFiles=file.properties,BMS.properties,Cobol.properties,LinkEdit.properties

#
# Comma separated list all source directories included in application build. Supports both absolute
# and relative paths. Relative assumed to be relative to ${workspace}.
# ex: applicationSrcDirs=${application},/u/build/common/copybooks
applicationSrcDirs=${application},Mortgage-EPSC,Mortgage-EPSM

#
# Comma separated list of the build script processing order
buildOrder=BMS.groovy,Cobol.groovy,LinkEdit.groovy

#
# The main build branch. Used for cloning collections for topic branch builds instead
# of rescanning the entire application.
mainBuildBranch=master

#
# exclude list used when scanning or running full build
excludeFileList=.*,**/*.properties,**/*.xml,**/*.groovy,**/*.md,**/application-conf/*.*

#
# Impact analysis resolution rules (JSON format)
impactResolutionRules=[${copybookRule},${bmsRule},${linkRule}]

# Rule to locate Cobol copy books
copybookRule = {"library": "SYSLIB", \
"searchPath": [ \
{"sourceDir": "${workspace}", "directory": "${application}/copybook"}, \
{"sourceDir": "${workspace}", "directory": "Mortgage-EPSM/copybook"} \
] \
}

# Rule to locate BMS maps
bmsRule = {"library": "SYSLIB", \
"searchPath": [ \
{"sourceDir": "${workspace}", "directory": "Mortgage-EPSC/bms"}, \
{"sourceDir": "${workspace}", "directory": "Mortgage-EPSM/bms"} \
] \
}

# Rule to locate COBOL programs and Link files for rebuilding statically linked load modules
linkRule = {"category": "LINK", \
"searchPath": [ \
{"sourceDir": "${workspace}", "directory": "Mortgage-EPSC/cobol"}, \
{"sourceDir": "${workspace}", "directory": "Mortgage-EPSM/cobol"}, \
{"sourceDir": "${workspace}", "directory": "Mortgage-EPSM/link"} \
] \
}






Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Application script mappings and file property overrides

#
# Script mappings for all application programs
dbb.scriptMapping = Assembler.groovy :: **/*.asm
dbb.scriptMapping = BMS.groovy :: **/*.bms
dbb.scriptMapping = Cobol.groovy :: **/*.cbl
dbb.scriptMapping = LinkEdit.groovy :: **/*.lnk
dbb.scriptMapping = PLI.groovy :: **/*.pli

#
# Need to build epsnbrvl.cbl first during cobol builds
cobol_fileBuildRank = 1 :: **/cobol/epsnbrvl.cbl

#
# Skip creating a load module for these programs as they will be statically linked to other programs
cobol_linkEdit = false :: **/cobol/epsnbrvl.cbl, **/cobol/epsmlist.cbl

#
# epsmlist needs to compile as CICS but does not have EXEC CICS statements
# so is not automatically flagged as CICS by dependency scanner
isCICS = true :: **/cobol/epsmlist.cbl
10 changes: 10 additions & 0 deletions Build/MortgageApplicationV2/Mortgage-Common/copybook/epsnbrpm.cpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
01 EPS-NUMBER-VALIDATION.
* INPUT - change 7
03 EPSPARM-VALIDATE-DATA PIC X(13).
03 EPSPARM-MAX-LENGTH PIC 99.
* OUTPUT
03 EPSPARM-NUMBER PIC 9(13).
03 EPSPARM-DECIMAL PIC V9(13).
03 EPSPARM-BINARY-NUMBER PIC 9(9)V99 COMP.
03 EPSPARM-RETURN-ERROR PIC X(80).

13 changes: 13 additions & 0 deletions Build/MortgageApplicationV2/Mortgage-Common/copybook/epspdata.cpy
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
01 EPSPDATA.
* INPUT
03 EPSPDATA-PRINCIPLE-DATA PIC S9(9)V99 COMP.
03 EPSPDATA-NUMBER-OF-YEARS PIC S9(4) COMP.
03 EPSPDATA-NUMBER-OF-MONTHS PIC S9(4) COMP.
03 EPSPDATA-QUOTED-INTEREST-RATE
PIC S9(2)v9(3) COMP.
03 EPSPDATA-YEAR-MONTH-IND PIC X.
* OUTPUT
03 EPSPDATA-RETURN-MONTH-PAYMENT
PIC S9(7)V99 COMP.
03 EPSPDATA-RETURN-ERROR PIC X(80).

12 changes: 12 additions & 0 deletions Build/MortgageApplicationV2/Mortgage-EPSC/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# line endings
* text eol=lf

# file encodings
*.cpy zos-working-tree-encoding=ibm-1047 git-encoding=utf-8
*.cbl zos-working-tree-encoding=ibm-1047 git-encoding=utf-8
*.bms zos-working-tree-encoding=ibm-1047 git-encoding=utf-8
*.pli zos-working-tree-encoding=ibm-1047 git-encoding=utf-8
*.lnk zos-working-tree-encoding=ibm-1047 git-encoding=utf-8
*.properties zos-working-tree-encoding=ibm-1047 git-encoding=utf-8

13 changes: 13 additions & 0 deletions Build/MortgageApplicationV2/Mortgage-EPSC/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Mortgage-EPSC</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
<nature>com.ibm.ftt.ui.views.project.navigator.local</nature>
<nature>com.ibm.ftt.dbbz.integration.dbbzprojectnature</nature>
</natures>
</projectDescription>
42 changes: 42 additions & 0 deletions Build/MortgageApplicationV2/Mortgage-EPSC/bms/epsmort.bms
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
*********************************************************************** 00010000
EPSMORT DFHMSD TYPE=&SYSPARM,MODE=INOUT,LANG=COBOL, @P3CX0008000
STORAGE=AUTO,TIOAPFX=YES,DSATTS=(COLOR,HILIGHT), X00090000
MAPATTS=(COLOR,HILIGHT) 00091000
* MENU MAP.
EPMENU DFHMDI SIZE=(24,80),CTRL=(PRINT,FREEKB) 00110000
LITLOAN DFHMDF POS=(8,15),LENGTH=23,INITIAL='Amount of Loan:', *
ATTRB=(ASKIP,NORM)
EPLOAN DFHMDF POS=(8,42),LENGTH=12,INITIAL='999999999.99', *
ATTRB=(NUM,FSET,IC,NORM)
DFHMDF POS=(8,55), *
ATTRB=ASKIP
LITYEARS DFHMDF POS=(9,15),LENGTH=24, *
INITIAL='Length of Loan in Years:', *
ATTRB=(PROT,NORM)
EPYEARS DFHMDF POS=(9,42),LENGTH=2,INITIAL='99', *
ATTRB=(NUM,FSET,NORM),COLOR=GREEN
DFHMDF POS=(9,45),LENGTH=0, *
ATTRB=ASKIP
EPDIFF1 DFHMDF POS=(10,15),LENGTH=22,INITIAL='Interest Rate: ', *
ATTRB=(PROT,NORM)
EPRATE DFHMDF POS=(10,42),LENGTH=5,INITIAL='99.99', *
ATTRB=(NUM,FSET,NORM),COLOR=GREEN
DFHMDF POS=(15,7),LENGTH=60, *
INITIAL='Press PF9 to see companies that can match or be*
at this rate', *
ATTRB=(ASKIP,NORM),HILIGHT=OFF,COLOR=BLUE
DFHMDF POS=(14,15),LENGTH=43, *
INITIAL='Press F3 to quit or Enter to calculate loan', *
ATTRB=(ASKIP,NORM),HILIGHT=OFF,COLOR=BLUE
EPDIFF2 DFHMDF POS=(17,15),LENGTH=22,INITIAL='Monthly Payment: ', *
ATTRB=(PROT,NORM)
EPPAYMNT DFHMDF POS=(17,42),LENGTH=12, *
ATTRB=(PROT,NORM),HILIGHT=OFF,COLOR=YELLOW
MSGERR DFHMDF POS=(24,15),ATTRB=(PROT,DRK),LENGTH=40, X00340000
INITIAL='INVALID KEY PRESSED' 00350000
DFHMDF POS=(2,48),LENGTH=0, *
ATTRB=ASKIP
DFHMDF POS=(5,25),LENGTH=26,INITIAL='EPS MORTGAGE CALCULATOR',*
ATTRB=(ASKIP,BRT)
EPSMORT DFHMSD TYPE=FINAL 0036000
END 00370000
Loading

0 comments on commit d0c9dc0

Please sign in to comment.