migrating hp3000 applications to microsoft .net using...

26
Migrating HP3000 Applications to Microsoft .NET using ASP.NET Tim O’Brien Senior Systems Engineer Fujitsu Software Corporation

Upload: others

Post on 28-Apr-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

Migrating HP3000 Applications to Microsoft .NET using ASP.NET

Tim O’BrienSenior Systems Engineer

Fujitsu Software Corporation

Page 2: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 211/14/2003

Agenda

OptionsCode CompatibilityData FilesUser Interfaces (Before and After)Non-COBOL CodeBatch JobsDeveloper TrainingEnd-User TrainingSummary and Conclusions

Page 3: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 311/14/2003

HP e3000 Migration Options

2006 end of life for HPe3000Options– Stay on HPe3000 after support ends– Migrate to Unix / Linux / Windows– Migrate to Microsoft .NET

Page 4: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 411/14/2003

Why .NET

Design– Well thought-out internet connectivity– Scalable solution– Extensive framework giving access to the latest

technologiesFeature Rich– Frameworks

• Winforms• Web Forms• Web Services• ADO.NET

Visual Studio Integration

Page 5: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 511/14/2003

Enhance Your Appearance!

Page 6: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 611/14/2003

COBOL Code Compatibility

Converter + Sweet3000 run-time routines provide close to 100% compatibilityMain Areas:– HP Intrinsics– Image Databases– COBOL File I/O– VPLUS Screens– Minor Syntax Details

Page 7: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 711/14/2003

COBOL Code CompatibilityHP Intrinsics

VGETKEYLABELS VGETNEXTFORM VINITFORM VOPENFORMF VOPENTERM VPRINTFORM VPUTBUFFER VPUTFIELD VPUTWINDOW VREADFIELDS VSETERROR VSETKEYLABEL VSETKEYLABELS VSHOWFORM WHO

PROCINFO PROCTIME PUTJCW QUIT RECEIVEMAIL SENDMAIL SORTEND SORTERRORMESS SORTINIT SORTINPUT SORTOUTPUT SUSPEND TIMER VCLOSEFORMF VCLOSETERMVERRMSG VFIELDEDITS VFINISHFORMVGETBUFFER

FREADDIR FREADLABEL FREEDSEG FSETMODE FSPACE FWRITE FWRITEDIRFWRITELABELGETDSEG GETINFO HPCICOMMAND HPCIGETVAR HPCIPUTVAR JOBINFO KILL MAILPAUSE PRINT PRINTFILEINFO

DBLOCK DBOPEN DBPUT DBUNLOCK DBUPDATE DMOVIN DMOVOUT FCHECK FCLOSE FCONTROL FERRMSG FFILEINFO FGETINFO FINDJCW FLABELINFOFOPEN FPOINT FREAD FREADBYKEY

.LEN.

.LOC.ACTIVATE BINARY COMMAND CREATE CREATEPROCESS CTRANSLATE DATELINE DBBEGIN DBCLOSE DBCONTROL DBDELETE DBEND DBERROR DBEXPLAIN DBFIND DBGET DBINFO

Page 8: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 811/14/2003

COBOL Code Compatibility

Image, COBOL File I/O, VPLUS– Syntax changed by converter– Matches changes to screens and data– Ties into run-time support

Minor Syntax Details– Handled by converter

Page 9: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 911/14/2003

Data FilesImage and COBOL Data Files

COBOL Data Files– KSAM and relative files converted to SQL tables– File I/O statements converted to CALLs– Sequential files remain unchanged

Image Database– Image data moved to SQL tables– Equivalent routines provided to support Image I/O calls

Page 10: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 1011/14/2003

Data Files

OPEN Master-fileREAD Master-fileWRITE Master-RecordCLOSE Master-file

OPEN Master-fileREAD Master-fileWRITE Master-RecordCLOSE Master-file

CALL S3000-IO USING <<open-params>>CALL S3000-IO USING <<read-params>>CALL S3000-IO USING <<write-params>>CALL S3000-IO USING <<close-params>>

CALL S3000-IO USING <<open-params>>CALL S3000-IO USING <<read-params>>CALL S3000-IO USING <<write-params>>CALL S3000-IO USING <<close-params>>

COBOL Data Files

CALL “DBLOCK” USING I-BASE CUST-LD I-...

CALL “DBGET” USINGI-BASE I-DSET I-MO..

CALL “DBLOCK” USING I-BASE CUST-LD I-...

CALL “DBGET” USINGI-BASE I-DSET I-MO..

CALL “HPDBLOCK” USING I-BASE CUST-LD I-...

CALL “HPDBGET” USINGI-BASE I-DSET I-MO..

CALL “HPDBLOCK” USING I-BASE CUST-LD I-...

CALL “HPDBGET” USINGI-BASE I-DSET I-MO..

MigrateMigrateMigrateSQLDB InterfaceSQLDB Interface

Relational DatabaseHP-ImageDatabase

Page 11: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 1111/14/2003

Data Files

Benefits– Data consolidated into a single database– SQL Queries available for all data– Choice of databases

• SQL Server• Oracle• DB2• Informix

Page 12: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 1211/14/2003

User Interfaces

Formspec used to dump binaries to text filesFiles processed to produce ASP.NET page definitionsCOBOL Code stays the sameSubroutines interface the VPLUS calls to ASP.NET pages

Page 13: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 1311/14/2003

User Interface VPLUS Screen (Before)

Page 14: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 1411/14/2003

After: .NET Web Form

Page 15: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 1511/14/2003

After: Windows / Unix

Page 16: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 1611/14/2003

User Interfaces

Benefits– User Interfaces given a facelift– Maintain screens using Visual Studio Webforms Designer– Ability to enhance further, unconstrained by proprietary

technology

Page 17: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 1711/14/2003

Non-COBOL Code

SPL– Needs to be rewritten– Quite likely using NetCOBOL

C– NetCOBOL has good run-time integration with C

programsFortran– Use with Lahey/Fujitsu Fortran for .NET that integrates

well with NetCOBOL for .NET

Page 18: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 1811/14/2003

Batch JobsWeekday

Batch-job <date>

• Contain business logic Run Application AWeek-end

Run Application ASortRun Application B

Month-end

Run Application ASortRun Application BRun Application CYear-end

Run Application ASortRun Application BRun Application CRun Application D

Page 19: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 1911/14/2003

Batch JobsSupported Commands

HELPHLDFILHPBIN2UXHPCMB2UXHPCOBVRTHPSORTHPSPLITLIFILDFILILDFILALLILDIMAILDKIFINFOJOBKILLLMKTKULBCLDLISTEQ

LISTFLISTFDLLMLMCLOCALLOGOFFLPALLSPROLSTDDLLTSMAKECTSOMAKEPROSOMAKESOMAPLIBMFMFKMKDDLDIRMN00MN01MODE

DUIECHOEDEDITEDITORELSEENDIFEODEOJEXITEXPEXTFILFCOPYFCUFCUFILFILEFSHDHEADOFFHEADON

CPYFILALLCPYLOWCSPLITCWFDAILYBUDBCHECKDBCHECKALLDBCHECKDODBCLEARALLDBMSSERVDBMSSERVDDCOPYUDDLDDLALLDFDIFFALLDOWNDOWN30DOWNLOADDSPLIT

CMBTOUXCOB74XLCOB85XLCOBERRCOBERRLCOBOLIICOBSPLITCOBSTRIPCOBTOUXCOBTOUXLCOBVERTCOBVRTERRCOMMENTCONVERTCOPYCPDCPDESKCPSEQCPTOFDCPYFIL

AUIAUTOUPDATEBACKUPBUCALALLCALCCALENCBCBFCBUCCCEFCHDIRCHGROUPCHKCHMODALLCHMODSHCLEANUPCLEARCLRMAIL

Page 20: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 2011/14/2003

Batch JobsSupported Commands

SVSALLSYNSYNCSERVSYNCSERVDSYSTATTARUPDATETCTDFTDOTFTPCTICOBVRTLTIMESTOPTRACEONTRACEOFFTSUCIUFUFMUMOUNTCDUMOUNTFDUPCDUPDATE

UPFDURUSECURTYVERIFYVERSIONVIALLVIREMVISOMEVPLUSWEEKLYBUXCCXCCXLEXEXECXELXEOXFDLCXFDLCALLXLE

SNSSORTITSOSSPLTOUXSPSSRPSRPLSTARTDB2STARTORASTARTSQLSTARTSYBSTISTOPDB2STOPORASTOPSQLSTOPSYBSTREAMSTSSTSGSUSSVSVS

SCONTROLSDSDTSECURITYSETSET132SET80SETPAGE33SETPAGE66SETVARSFSF132SFILDSHOWCSHOWDEVSHOWMESHOWTIMESHOWVARSLRSLSTSMMSMS

RDREBOOTRECVMAILRECVMAILNORECVMAILORGRECVMAILYESREDORELOADRENAMEREPRINTREPRINTARESETRESETUCIRGPRINTRMXFDLCRUNSSANESATSBUSCHEDULESCHEMCNV

MONTHBUMONTHENDMOUNTCDMOUNTFDMVDOTSMVUPPERNADBNETRCOFFONPAUSEPFPKZIPPNPREPPRINTSPROCMAILPROGCHKPSFPURGEQQUERY

Page 21: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 2111/14/2003

Developer Training

Migration Preparation– Right questions / Analyze / Add DB Keys

Migration Execution– Transferring Code, Data & Batch Jobs– Extracting & converting Screens

Execution and maintenance in new environment– Testing– Learning .NET / ASP.NET / VS.NET– Maintaining applications in new environment

Page 22: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 2211/14/2003

End-User Training

Minimize By:– Preserving interface layouts– Using Web browsers

Page 23: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 2311/14/2003

Sweet3000 for .NETASP.NET ASP.NET –– Internet browser enabled interfacesInternet browser enabled interfaces

SQL Database

*.cob on Microsoft.NET Servers

Highly compatible end-user experienceGUI facelift–Internet enabled apps–COBOL code preserved

Microsoft’s .NET–Internet connectivity–Scalable solution–Extensive frameworkVisual Studio .NET–Leading edge IDE–RAD designers

Automated migration to your choice of SQL–Easier maintenance–all around performance–Standard query ability

Page 24: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 2411/14/2003

Conclusions

Turn challenge into opportunityRetain the value of your HP e3000 COBOL applicationsMigrate using Sweet3000 for .NETGain benefits of .NET / NetCOBOL– Internet enabled– SQL database– Rich framework– Leading-edge IDE

Fujitsu Software has the tools and expertiseYou make the decision and reap the benefits

Page 25: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 2511/14/2003

The possibilities are infinite…

Page 26: Migrating HP3000 Applications to Microsoft .NET using ASPinterex.classiccmp.org/conference/hpworld2003/...TCTDF TDO TFTPC TICOBVRTL TIMES TOP TRACEON TRACEOFF TS UCI UF UFM UMOUNTCD

HP World 2003 Solutions and Technology Conference & Expo page 2611/14/2003

Interex, Encompass and HP bring you a powerful new HP World.