Home
%3CLINGO-SUB%20id%3D%22lingo-sub-779142%22%20slang%3D%22en-US%22%3EDeploying%20NTT%20Data%20UniKix%20in%20Azure%2C%20Part%202%20-%20Configure%20TPE%20and%20compile%20the%20ACCT%20Application%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-779142%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EOverview%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThis%20post%20continues%20the%20steps%20to%20deploy%20%3CSTRONG%3ENTT%20Data%20UniKix%3C%2FSTRONG%3E%20on%20Azure.%20In%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FAzureCAT%2FDeploying-NTT-Data-UniKix-in-Azure-Part-1-Deploying-the-VM%2Fba-p%2F775840%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3EPart%201%3C%2FA%3E%2C%20you%20deployed%20the%20preconfigured%20VM%20from%20Azure%20Marketplace.%20In%20this%20post%2C%20you%20will%20configure%20the%20TPE%20and%20BPE%2C%20then%20compile%20and%20deploy%20the%20ACCT%20Demo%20application.%20Next%2C%20you%20will%20connect%20to%20the%20ACCT%20application%20using%20any%203270%20emulator%20you%20choose.%20For%20this%20blog%2C%20I%20used%20%3CA%20href%3D%22http%3A%2F%2Fx3270.bgp.nu%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ex3270%3C%2FA%3E%2C%20a%20freely%20available%20open-source%20emulator.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20you%20complete%20this%20walk-through%2C%20you%20will%20be%20running%20a%20mainframe%20legacy%20application%20in%20Azure%20using%20the%20NTT%20Data%20UniKix%20platform.%26nbsp%3B%20The%20ACCT%20application%20is%20an%20example%20of%20a%20CICS%2FVSAM%20application%2C%20a%20type%20that%20was%20prevalent%20from%20the%201970s%20through%20the%201990s.%26nbsp%3BThis%20is%20an%20example%20of%20%3CSTRONG%3EMainframe%20Application%20Rehosting%3C%2FSTRONG%3E.%26nbsp%3B%20Rehosting%20is%20a%20great%20way%20to%20see%20the%20rapid%20benefit%20of%20running%20these%20applications%20in%20the%20Cloud%2C%20typically%20at%201%2F10th%20the%20cost.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ESemantics%20and%20definitions%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EBefore%20you%20begin%2C%20it%20is%20a%20good%20idea%20to%20go%20over%20some%20of%20the%20definitions%20of%20terms%20we%20will%20be%20using.%20Unless%20you%20are%20familiar%20with%20mainframe%20environments%20they%20might%20be%20new%20to%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSTRONG%3ETransaction%20Processing%20Environment%20(TPE).%3C%2FSTRONG%3E%20This%20is%20where%20you%20run%20your%20CICS%20transactions.%20The%20TPC%20is%20for%20online%20users%20running%20applications.%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EUniKix%20Regions.%3C%2FSTRONG%3E%20Like%20CICS%2C%20which%20allows%20you%20to%20have%20separate%20managed%20execution%20environments%20called%20CICS%20Regions%2C%20UniKix%20provides%20a%20similar%20functionality.%20UniKix%20Regions%20provide%20a%20security%20and%20execution%20boundary%20for%20applications.%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EBatch%20Processing%20Environment%20(BPE).%3C%2FSTRONG%3E%20The%20batch%20environment%20is%20a%20major%20component%20of%20mainframe%20systems.%20The%20BPE%20is%20where%20batch%20programs%20are%20typically%20called%20by%20batch%20jobs%20defined%20by%20Job%20Control%20Language%20(JCL).%20%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EConnect%20to%20the%20VM%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E1.%20%3C%2FSPAN%3EComplete%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FAzureCAT%2FDeploying-NTT-Data-UniKix-in-Azure-Part-1-Deploying-the-VM%2Fba-p%2F775840%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3EPart%201%3C%2FA%3E%20if%20you%20have%20not%20done%20so%20already%20to%20create%20and%20access%20the%20VM.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%26nbsp%3B%20On%20the%20%3CSTRONG%3EOverview%3C%2FSTRONG%3E%20tab%20of%20Azure%20portal%2C%20select%20%3CSTRONG%3EConnect.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3.%26nbsp%3B%20In%20the%20%3CSTRONG%3EConnect%20to%20virtual%20machine%3C%2FSTRONG%3E%20dialog%20box%2C%20copy%20the%20public%20IP%20address%20to%20the%20clipboard%20or%20write%20it%20down.%20By%20default%2C%20port%2022%20has%20been%20made%20available%20on%20the%20VM%20for%20connection%20via%20SSH.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E4.%26nbsp%3B%20Initiate%20a%20terminal%20session%20to%20the%20VM.%26nbsp%3B%20This%20can%20be%20done%20in%20several%20ways.%20For%20example%2C%20on%20a%20Windows%2010%20computer%2C%20the%20easiest%20way%20is%20to%20open%20a%20command%20prompt%20and%20type%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Essh%20unikix%4099.99.99.99%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%20Unikix%20in%20the%20command%20is%20the%20name%20of%20the%20administrator%20you%20used%20when%20creating%20the%20VM.%26nbsp%3B%20Also%2C%20if%20you%20choose%20to%20connect%20via%20an%20ssh%20private%20key%2C%20you%20will%20need%20to%20provide%20the%20path%20to%20the%20public%20key%20pair.%20%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20connected%2C%20you%20are%20presented%20with%20a%20terminal%20session%20in%20the%20unikix%20user%20home%20directory.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F160685i0079C07532CD671F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture1.JPG%22%20title%3D%22Capture1.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EOpen%20Port%204444%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20next%20step%20is%20to%20open%20next%20step%20is%20port%204444%2C%20which%20the%20ACCT%20application%20listens%20on%20for%20this%20walk-through.%20This%20port%20is%20used%20to%20connect%20with%20x3270%20(or%20the%20terminal%20emulator%20you%20choose).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20In%20the%20Azure%20portal%2C%20select%20the%20%3CSTRONG%3EVirtual%20machine%3C%2FSTRONG%3E%20menu%2C%20then%20go%20to%20the%20%3CSTRONG%3ENetworking%3C%2FSTRONG%3E%20selection%20under%20%3CSTRONG%3ESettings%3C%2FSTRONG%3E.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Click%20on%20the%20%3CSTRONG%3EAdd%20inbound%20port%20rule%3C%2FSTRONG%3E%20and%20add%20the%20rule%20for%20port%204444.%26nbsp%3B%20Allow%20any%20protocol%20and%20any%20source.%26nbsp%3B%20When%20you%20are%20done%20it%20should%20look%20similar%20to%20the%20following.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F160686iCC0A782BC39A30F2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture2.JPG%22%20title%3D%22Capture2.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ESourcing%20the%20System%20for%20BPE%20and%20TPE%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E1.%20Now%2C%20go%20back%20to%20your%20terminal%20session.%26nbsp%3B%20You%20will%20be%20in%20the%20home%20directory%20for%20the%20unikix%20user.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Change%20to%20the%20opt%2Funikix%20directory%26nbsp%3B%3CSTRONG%3Ecd%20%2Fopt%2Funikix%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3.%20Notice%20that%20a%20license%20file%20is%20provided%20%3CSTRONG%3EVMUniKixMkt.lic%20%3C%2FSTRONG%3Ein%20this%20directory.%20You%20will%20need%20this%20to%20start%20the%20UniKix%20system.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E4.%20Go%20to%20the%20example%20directory%20and%20run%20the%202%20scripts%20that%20will%20%3CSTRONG%3Esource%3C%2FSTRONG%3E%20the%20%3CSTRONG%3EBPE%3C%2FSTRONG%3E%20and%20%3CSTRONG%3ETPE%3C%2FSTRONG%3E%20environment.%26nbsp%3B%20By%20%3CEM%3ESource%3C%2FEM%3E%2C%20we%20mean%20create%20the%20appropriate%20links%2C%20paths%20and%20system%20variables%20needed%20by%20the%20scripts%20we%20will%20launch.%26nbsp%3B%20Type%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E.%26nbsp%3B%20.%2Fbatchenv%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Eand%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E.%26nbsp%3B%20.%2Fuserenv%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E5.%20After%20both%20command%20run%2C%20the%20command%20prompt%20will%20be%20displayed.%26nbsp%3B%20There%20is%20no%20feedback%20from%20these%20scripts.%26nbsp%3B%20Your%20terminal%20should%20look%20similar%20to%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F160762i27C17AAD09722E27%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture3.JPG%22%20title%3D%22Capture3.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EStart%20the%20Batch%20and%20UniKix%20Region%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3ENow%20you%20need%20to%20start%20both%20the%20Batch%20environment%20and%20UniKix%20region.%26nbsp%3B%20To%20start%20Batch%20type%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3Ebam%20start%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20start%20UniKix%2C%20type%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3Ekixregion%20start%20%24KIXSYS%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20you%20run%20both%20scripts%2C%20both%20the%20Batch%20and%20UniKix%20should%20be%20started%20and%20running.%26nbsp%3B%20Look%20for%20any%20errors.%26nbsp%3B%20You%20should%20see%20a%20terminal%20similar%20to%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F160765i2BD2275BDE590086%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture4.JPG%22%20title%3D%22Capture4.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EBuild%20the%20ACCT%20application%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20source%20code%20for%20the%20ACCT%20application%20is%20on%20the%20VM%20in%20the%20%2Fopt%2Funikix%2Fexample%2FTPE%20directory.%26nbsp%3B%20You%20need%20to%20build%20and%20deploy%20the%20application%20to%20the%20UniKix%20Region.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20do%20this%20type%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%2F.build_programs%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20should%20see%20output%20similar%20to%20the%20following%20in%20the%20terminal%20window.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F160798i10ED5DF134B77E9A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture5.JPG%22%20title%3D%22Capture5.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EShut%20Down%20the%20internal%20Red%20Hat%20Firewall%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20last%20action%20you%20will%20need%20to%20perform%20on%20the%20server%20is%20to%20shut%20down%20the%20internal%20Red%20Hat%20Firewall.%26nbsp%3B%20By%20default%2C%20on%20this%20installation%20the%20Red%20Hat%20Firewall%20does%20not%20allow%20network%20traffic%20by%20on%20ports%204444.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EType%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3Esudo%20systemctl%20stop%20firewalld%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EConnect%20to%20ACCT%20with%20the%20x3270%20emulator%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3ENow%20you%20can%20test%20the%20application%20with%20your%203270%20emulator.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Get%20the%20public%20IP%20address%20of%20the%20machine%20that%20you%20copied%20earlier%20when%20you%20connected%20to%20the%20terminal.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Enter%20this%20address%20into%20the%20configuration%20of%20the%203270%20terminal%20emulator%20to%20connect%20to%20the%20UniKix%20region.%26nbsp%3B%20When%20connect%2C%20the%20standard%20UniKix%20start%20screen%20appears.%20%3CSPAN%3EThe%20UniKix%26nbsp%3B%20application%20is%20listening%20on%20port%204444.%26nbsp%3B%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E3.%20On%20the%20UniKix%20screen%2C%20enter%20%3CSTRONG%3EACCT%3C%2FSTRONG%3E%20to%20launch%20the%20initial%20screen%20of%20the%20ACCT%20application.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%203270%20session%20should%20look%20like%20the%20following.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20946px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F160799i630A77091BB8FA40%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture6.JPG%22%20title%3D%22Capture6.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EConclusion%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3ESo%2C%20in%20conclusion%2C%20in%20this%20blog%20post%2C%20you%20have%20successfully%20deployed%20a%20Mainframe%20Rehosting%20solution%20in%20Azure%20and%20have%20connected%20to%20it%20via%20a%203270%20emulator.%26nbsp%3B%20Using%20a%20similar%20approach%2C%20you%20can%20migrate%20your%20legacy%20applications%20to%20a%20modern%20Cloud%20platform%20like%20Azure.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20next%20post%20in%20this%20series%2C%20we%20will%20setup%20the%20Management%20and%20Administration%20tools%20for%20NTT%20Data%20UniKix.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-779142%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20this%20continuation%20of%26nbsp%3BDeploying%20NTT%20Data%20UniKix%20in%20Azure%2C%20you%20will%20configure%20the%20%3CSTRONG%3ETPE%20(Transaction%20Processing%20Environment)%3C%2FSTRONG%3E%20and%3CSTRONG%3E%20BPE%20(Batch%20Processing%20Environment)%3C%2FSTRONG%3E.%26nbsp%3B%20You%20will%20then%20compile%20and%20deploy%20the%20%3CSTRONG%3EACCT%3C%2FSTRONG%3E%20Demo%20application.%26nbsp%3BWhen%20you%20complete%2C%20you%20will%20be%20running%20a%20Mainframe%20legacy%20application%20in%20Azure.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Senior Member

Overview

This post continues the steps to deploy NTT Data UniKix on Azure. In Part 1, you deployed the preconfigured VM from Azure Marketplace. In this post, you will configure the TPE and BPE, then compile and deploy the ACCT Demo application. Next, you will connect to the ACCT application using any 3270 emulator you choose. For this blog, I used x3270, a freely available open-source emulator.

 

When you complete this walk-through, you will be running a mainframe legacy application in Azure using the NTT Data UniKix platform.  The ACCT application is an example of a CICS/VSAM application, a type that was prevalent from the 1970s through the 1990s. This is an example of Mainframe Application Rehosting.  Rehosting is a great way to see the rapid benefit of running these applications in the Cloud, typically at 1/10th the cost.

 

Semantics and definitions

Before you begin, it is a good idea to go over some of the definitions of terms we will be using. Unless you are familiar with mainframe environments they might be new to you.

 

  • Transaction Processing Environment (TPE). This is where you run your CICS transactions. The TPC is for online users running applications.
  • UniKix Regions. Like CICS, which allows you to have separate managed execution environments called CICS Regions, UniKix provides a similar functionality. UniKix Regions provide a security and execution boundary for applications.
  • Batch Processing Environment (BPE). The batch environment is a major component of mainframe systems. The BPE is where batch programs are typically called by batch jobs defined by Job Control Language (JCL).  

 

Connect to the VM

 

1. Complete Part 1 if you have not done so already to create and access the VM.

 

2.  On the Overview tab of Azure portal, select Connect.

 

3.  In the Connect to virtual machine dialog box, copy the public IP address to the clipboard or write it down. By default, port 22 has been made available on the VM for connection via SSH.

 

4.  Initiate a terminal session to the VM.  This can be done in several ways. For example, on a Windows 10 computer, the easiest way is to open a command prompt and type: 

 

ssh unikix@99.99.99.99

 

Note: Unikix in the command is the name of the administrator you used when creating the VM.  Also, if you choose to connect via an ssh private key, you will need to provide the path to the public key pair.   

 

Once connected, you are presented with a terminal session in the unikix user home directory.

 

Capture1.JPG

 

Open Port 4444

The next step is to open next step is port 4444, which the ACCT application listens on for this walk-through. This port is used to connect with x3270 (or the terminal emulator you choose). 

 

1. In the Azure portal, select the Virtual machine menu, then go to the Networking selection under Settings

 

2. Click on the Add inbound port rule and add the rule for port 4444.  Allow any protocol and any source.  When you are done it should look similar to the following.

 

 

Capture2.JPG

 

Sourcing the System for BPE and TPE

1. Now, go back to your terminal session.  You will be in the home directory for the unikix user.

 

2. Change to the opt/unikix directory cd /opt/unikix

 

3. Notice that a license file is provided VMUniKixMkt.lic in this directory. You will need this to start the UniKix system. 

 

4. Go to the example directory and run the 2 scripts that will source the BPE and TPE environment.  By Source, we mean create the appropriate links, paths and system variables needed by the scripts we will launch.  Type:

 

.  ./batchenv

and 

.  ./userenv

 

5. After both command run, the command prompt will be displayed.  There is no feedback from these scripts.  Your terminal should look similar to this.

 

Capture3.JPG

 

Start the Batch and UniKix Region

Now you need to start both the Batch environment and UniKix region.  To start Batch type:

 

bam start

 

To start UniKix, type:

 

kixregion start $KIXSYS

 

After you run both scripts, both the Batch and UniKix should be started and running.  Look for any errors.  You should see a terminal similar to this.

 

Capture4.JPG

 

 

Build the ACCT application

The source code for the ACCT application is on the VM in the /opt/unikix/example/TPE directory.  You need to build and deploy the application to the UniKix Region. 

 

To do this type:

 

/.build_programs

 

You should see output similar to the following in the terminal window.

 

Capture5.JPG

 

Shut Down the internal Red Hat Firewall

The last action you will need to perform on the server is to shut down the internal Red Hat Firewall.  By default, on this installation the Red Hat Firewall does not allow network traffic by on ports 4444. 

 

Type the following:

 

sudo systemctl stop firewalld

 

Connect to ACCT with the x3270 emulator

Now you can test the application with your 3270 emulator. 

 

1. Get the public IP address of the machine that you copied earlier when you connected to the terminal.

 

2. Enter this address into the configuration of the 3270 terminal emulator to connect to the UniKix region.  When connect, the standard UniKix start screen appears. The UniKix  application is listening on port 4444. 

 

3. On the UniKix screen, enter ACCT to launch the initial screen of the ACCT application.

 

The 3270 session should look like the following.

 

Capture6.JPG

 

Conclusion

So, in conclusion, in this blog post, you have successfully deployed a Mainframe Rehosting solution in Azure and have connected to it via a 3270 emulator.  Using a similar approach, you can migrate your legacy applications to a modern Cloud platform like Azure.

 

In the next post in this series, we will setup the Management and Administration tools for NTT Data UniKix.