Upload
ca-technologies
View
96
Download
3
Embed Size (px)
Citation preview
World®’16
MigratingtoCOBOL5andBeyondMichaelDuBois,CATechnologies
MFX54E
MAINFRAME
2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.
Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.
ForInformationalPurposesOnlyTermsofthisPresentation
3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Abstract
AscustomersmigratetoCOBOL5andbeyond,attendthiseducationalsessiontolearncommontipsandtricksformainframesystemadminsandprogrammersofCATestingToolsandCAEndevor®SoftwareChangeManager
MichaelDuBoisCATechnologiesVP,ProductManagement
4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MigratingtoCOBOL5andBeyondAgenda
WHAT’SNEWWITHCOBOL V5?
WHYISMIGRATINGHARD?
SUGGESTIONSANDBESTPRACTICES
QUESTIONS?
1
2
3
4
5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
What’sNewWithCOBOL5?
§ InternalImprovements– Morememory,moretime,moreworkdatasets– Betterresults
§ NewCompilerOptions– Architectureexploitation
§ OMVSrequirement§ Programobjects§ Minorsyntaxchanges/improvements§ Internalruntimecontrolblocks
6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Whyismigratinghard?
§ Roadblocks– OS/VSCOBOL– COBOLIINORES– AMODE(24)
§ PDSEs
§ Aggressivetestingrequired– Invalidprogramsanddata
7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SuggestionsandBestPractices
§ Beforeyoustart– LatestandGreatest
§ COBOL§ LanguageEnvironment§ Binder§ Subsystems(CICS,DB2,etc.)§ SoftwareChangeManager§ Anyexecutablesthatmightbe“COBOLaware”
– MigrationGuide– TuningGuide
8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SuggestionsandBestPractices
§ Beforeyoustart– SCM
§ JCLandPROCupdates§ Compileoptionsateachpromotionstage§ (morelater)
– PDSEConversion– LocateallOS/VSCOBOLprograms
§ IGZ0268W/IGZ0269W§ CAOUMRS
9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SuggestionsandBestPracticesCAOUMRS
CA WORLD 2016 LOAD LIBRARY ANALYSIS: DETAILCA SYMDUMP BATCH r9.1 1005ARX00 DAVSC01.OSVS.LOAD (WRKD01)
LEGEND FOR OPTIMIZER OPTIONS: D=DTECT C=XCOUNT X=XTIME P=PFLOW S=SUBRNGCK R=PARMCHK B=DBGSLEEP F=FDCHECK W=WSI
MODULE MODULE-SIZE CSECT CSECT-SIZE PROC-SIZE DATA-SIZE COMPILER-ID REL DATECAMRCOBB 10,104 CAMRCOBB 6,948 2,368 4,580 CZOS 5655-G53 4.0 03/07/2008CRE8RELF 6,384 CRE8RELF 6,384 3,312 3,072 VSR1 5740-CB1 2.4 08/31/1998DISPLAYC 1,640 DISPLAYC 1,634 364 1,270 VSR1 5740-CB1 2.4 03/29/1999EDDIE 2,608 EDDIE 2,608 1,164 1,444 VSR1 5740-CB1 2.4 09/06/2001RECUR 4,832 RECUR 1,676 520 1,156 CZOS 5655-G53 4.0 06/05/2006TOTALS: 25,568 19,250 7,728 11,522
10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SuggestionsandBestPracticesTesting:InvalidData
Usage Display
77 USAGE1 PIC X(4) VALUE ’00 0’. <* x’F0F040F0’, notice the third byte.
77 USAGE1-RD REDEFINES USAGE1 PIC 9(4). <* not valid in<* PIC 9 USAGE DISPLAY
Comparing USAGE1-RD causes problems
ZONEDATA and NUMPROC options decisions
11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SuggestionsandBestPracticesTesting:OccursDependingOn
01 TBLSIZE PIC 9(5) BINARY.01 MY-TABLE.
02 TABLE OCCURS 0 TO 1 TIMES DEPENDING ON TBL-SIZE.05 MY-FIELD PIC X(1).
01 TRAILING-AREA PIC X(500).
MOVE 100 TO TBLSIZE. *> Legal if table not referencedMOVE ALL ‘X' TO MY-TABLE. *> Illegal, ODO object not in range
12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SuggestionsandBestPracticesTesting:OverpopulatedDataItems
01 X PIC X(2).01 Y REDEFINES X PIC 9(2) PACKED-DECIMAL.
…
MOVE x'123F' TO X. MOVE Y TO ANOTHER-DATA-ITEM.
13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SuggestionsandBestPractices
§ FindinginvalidCOBOLstatementscanbehard!– Compilewithdebugginginmind
§ SSRANGE§ OPT(0)§ OPT(n)
– Compilewithoptionsclosertoproduction§ NOSSRANGE§ ARCH(n)§ OPT(n)?§ STGOPT?
Test,Test,Test!
14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SuggestionsandBestPracticesUsingSTATICMap
01 TASK-STRUCTURE. 0CL4303 TASK-CNTL PIC X(4) VALUE 'CORE'. 000000000 4C 03 TASK-SWITCH PIC X. 000000004 1C 03 TASK-SWITCH2 PIC 99. 000000005 2C 03 TASK-SWITCH3 PIC X. 000000007 1C 03 TASKNUM PIC S9(5) COMP-3. 000000008 3P
15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SuggestionsandBestPracticesUsingSTATICMap
* * * * * S T A T I C M A P * * * * *
OFFSET (HEX) LENGTH (HEX) NAME
0 4 BLF_Ptrs4 4 BLL_Ptrs8 C BLT_Ptrs
…308 2B TASK-STRUCTURE
16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RecommendedSessions
SESSION# TITLE DATE/TIME
MFX112SRoadmapSession:MainframeApplicationDevelopmentPortfolioReview 11/16/2016at12:45pm
MFT148SRoadmapSession:AchieveDevOpsontheMainframeforFasterTimetoMarket 11/16/2016at4:30pm
MFX110VMainframeApplicationModernizationforEnterpriseDevelopers[FACET] 11/17/2016at1:45pm
17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MustSeeDemos
ContinuousDevelopmentandTestingMainframeTheater
ModernApplicationDevelopmentMainframeTheater
18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Questions?
19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Thankyou.
Stayconnectedatcommunities.ca.com
@CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.20 @CAWORLD#CAWORLD
MainframeandWorkloadAutomation
Formoreinformationpleasevisitca.com/appdev
MichaelDuBoisVP,[email protected]