IBM TRAINING ® Session B34 The Basics of Using z/VM Christine T. Casey / Will J. Roden, Jr

Orlando, FL

© IBM Corporation 2006

TrademarksTrademarks

The following are trademarks of the International Business Machines Corporation in the United States and/or other countries. Language Environment* CICS* S/370 DB2* MQSeries* S/390* DB2 Connect Multiprise* S/390 Parallel Enterprise Server DB2 Universal Database MVS Virtual Image Facility DFSMS/MVS* NetRexx VisualAge* DFSMS/VM* OpenEdition* VisualGen* OpenExtensions e-business logo* VM/ESA* Enterprise Storage Server OS/390* VTAM* ESCON Parallel Sysplex* VSE/ESA FICON PR/SM WebSphere GDDM QMF z/Architecture RACF* HiperSockets z/OS IBM* RAMAC* zSeries IBM logo RISC z/VM* * Registered trademarks of the IBM Corporation S/370 The following are trademarks or registered trademarks of other companies. Lotus, Notes, and Domino are trademarks or registered trademarks of Lotus Development Corporation. Tivoli is a trademark of Tivoli Systems Inc. and all Java-related trademarks and logos are trademarks of Sun Microsystems, Inc., in the United States and other countries UNIX is a registered trademark of The Open Group in the United States and other countries. Microsoft, Windows and Windows NT are registered trademarks of Microsoft Corporation. Notes: Performance is in Internal Throughput Rate (ITR) ratio based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput that any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve throughput improvements equivalent to the performance ratios stated here.

IBM hardware products are manufactured from new parts, or new and serviceable used parts. Regardless, our warranty terms apply.

All customer examples cited or described in this presentation are presented as illustrations of the manner in which some customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics will vary depending on individual customer configurations and conditions.

This publication was produced in the United States. IBM may not offer the products, services or features discussed in this document in other countries, and the information may be subject to change without notice. Consult your local IBM business contact for information on the product or services available in your area.

IBM considers a product “Year 2000 ready” if the product, when used in accordance with its associated documentation, is capable of correctly processing, providing and/or receiving date data within and between the 20th and 21st centuries, provided that all products (for example, hardware, software and firmware) used with the product properly exchange accurate date data with it. Any statements concerning the Year 2000 readiness of any IBM products contained in this presentation are Year 2000 Readiness Disclosures, subject to the Year 2000 Information and Readiness Disclosure Act of 1998.

All statements regarding IBM's future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only.

Information about non-IBM products is obtained from the manufacturers of those products or their published announcements. IBM has not tested those products and cannot confirm the performance, compatibility, or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products.

Copyright IBM Corp., 2004,2005 1-2 DisclaimerDisclaimer

The information contained in this document is not intended to be an assertion of future action by IBM. The use of this information or the implementation of any of these techniques is a customer responsibility and depends on the customer's ability to evaluate and integrate them into the operational environment. While each item may have been reviewed by IBM for accuracy in a specific situation, there is no guarantee that the same or similar results will be obtained elsewhere. Customers attempting to adopt these techniques to their own environment do so at their own risk.

In this presentation, any references made to an IBM licensed program are not intended to state or imply that only IBM's licensed program may be used; any functionally equivalent program may be used instead.

Any performance data contained in this presentation was determined in a controlled environment and, therefore, the results which may be obtained in other operating environments may vary significantly. Users of this presentation should verify the applicable data for their specific environment.

It is possible that this material may contain reference to, or information about, IBM products (machines and programs), programming, or services that are not announced in your country. Such references or information must not be construed to mean that IBM intends to announce such IBM products, programming or services in your country.

Any feedback that you give IBM regarding this presentation will be treated as non-confidential information. IBM reserves the right to use this information in any form.

AgendaAgenda

OverviewOverview GeneralGeneral Concepts EstablishingEstablishing VMVM SessionsSessions LoggingLogging ontoonto thethe VirtualVirtual ConsoleConsole UserUser DirectoryDirectory ExecutionExecution ModesModes UsingUsing CMSCMS CommandsCommands CMSCMS File System DevelopingDeveloping ProgramsPrograms -- Xedit,Xedit, Execs,Execs, Pipelines...Pipelines... DebuggingDebugging

Copyright IBM Corp., 2004,2005 3-4 OverviewOverview VMVM containscontains TwoTwo BasicBasic PartsParts CPCP -- ControlControl ProgramProgram CMSCMS (or(or GuestsGuests LINUX,LINUX, CP,CP, z/OS,z/OS, etc.)etc.)

C C z/ L L M M O I I S S S N N U U X X CP LINUX Control Program

CMSCMS GeneralGeneral ConceptsConcepts

CMS:CMS: ConversationalConversational MonitorMonitor SystemSystem

CMSCMS isis anan interactiveinteractive useruser interfaceinterface thatthat runsruns underunder thethe controlcontrol ofof CPCP

ProvidesProvides anan applicationapplication programmingprogramming andand executionexecution environmentenvironment Commands,Commands, EXECsEXECs (scripts),(scripts), pipelines,pipelines, Xedit,Xedit, compilers,compilers, useruser programsprograms

ManyMany toolstools availableavailable ProductivityProductivity Aids,Aids, ,REXX, VendorVendor programsprograms

Copyright IBM Corp., 2004,2005 5-6 CMSCMS StrengthsStrengths User-friendlyUser-friendly English-like,English-like, extensible command language Simple,Simple, easy-to-useeasy-to-use filefile systemsystem

CooperatesCooperates wellwell withwith CPCP CommandsCommands toto exploitexploit CPCP functionfunction andand devicesdevices ExploitsExploits virtualvirtual machinemachine conceptsconcepts CommandsCommands cancan bebe automaticallyautomatically passedpassed toto CP:CP: IfIf notnot foundfound inin CMS, or directly by issuing #CP command

HighHigh performanceperformance Single-userSingle-user orientationorientation SharedShared CMSCMS Nucleus,Nucleus, DCSSDCSS (Discontiguous(Discontiguous SavedSaved Segment)Segment) FileFile systemsystem performanceperformance

EnvironmentsEnvironments CMSCMS IPLIPL CMSCMS oror Begin,Begin, runrun ProfileProfile ExecExec LinemodeLinemode oror FullscreenFullscreen mode

XEDITXEDIT EnvironmentEnvironment XEDITXEDIT fnfn ftft fm, runrun ProfileProfile XeditXedit CMSCMS SubsetSubset modemode

Unix-likeUnix-like OpenOpen ExtensionsExtensions (Posix(Posix ShellShell && Utilities)Utilities) ** ByteByte FileFile System,System, NetworkNetwork FileFile SystemSystem

z/OS-likez/OS-like oror VSE-likeVSE-like OSOS SimulationSimulation ** ** notnot aa fullfull duplicationduplication DOSDOS SimulationSimulation ** ofof functionfunction

Copyright IBM Corp., 2004,2005 7-8 EstablishingEstablishing aa VMVM SessionSession

VMVM LogoLogo ScreenScreen OneOne atat aa timetime -- 32703270 emulationemulation (pcom) LOGONLOGON ...... herehere ->-> movemove aa signonsignon toto anotheranother sessionsession LOGONLOGON ...... byby ...... ->-> signonsignon usingusing anotheranother passwordpassword

UsingUsing CPCP to control the Virtual Machine #CP#CP IPLIPL CMSCMS -- restartrestart youryour entireentire CMSCMS sessionsession profileprofile execexec runsruns toto customizecustomize youryour sessionsession #CP#CP LOGOFFLOGOFF -- logonlogon xxxxxx -- signsign off/onoff/on

VM Logo Screen

Copyright IBM Corp., 2004,2005 9-10 UserUser DirectoryDirectory DescribesDescribes toto CPCP thethe configurationconfiguration andand operatingoperating characteristicscharacteristics ofof eacheach virtualvirtual machinemachine

DuringDuring initialization,initialization, CPCP checkschecks forfor anan objectobject directorydirectory onon SYSRESSYSRES andand makesmakes itit activeactive

MayMay bebe createdcreated oror updatedupdated manuallymanually oror usingusing aa directorydirectory manager,manager, suchsuch asas DirMaintDirMaint ManuallyManually usingusing XeditXedit fromfrom useruser IDID withwith privilegeprivilege classclass A,A, B,B, oror CC UseUse DIRECTXADIRECTXA utilityutility toto runrun thethe directory-creatingdirectory-creating programprogram andand bringbring itit online.

SampleSample UserUser DirectoryDirectory

USER IBMUSER IBMUSER 16M 16M G ACCOUNT SYSTEMS MACH XA Focus IPL CMS

CONSOLE 009 3215 SPOOL 00C 2540 READER * SPOOL 00D 2540 PUNCH A SPOOL 00E 1403 A

LINK MAINT 0190 0190 RR * CMS system disk LINK MAINT 019E 019E RR * Product code disk LINK 5767002P 29E 29E RR LINK 5767002P 505 305 RR LINK 5767002P 191 192 RR MDISK 191 3390 1535 001 510RES MR READ WRITE MULTIPLE

Copyright IBM Corp., 2004,2005 11-12 Sessions

ExecutionExecution ModesModes

StatusStatus appearsappears atat thethe bottombottom rightright ofof screenscreen CPCP ReadRead (CP(CP isis waitingwaiting forfor aa command)command) VMVM ReadRead (CMS is waiting for a command) RunningRunning (Ready(Ready forfor cmdscmds oror workingworking onon some)some) More...More... (More(More infoinfo thanthan cancan fitfit onon thethe screenscreen andand isis waitingwaiting toto be displayed) DefaultDefault 5050 secondsseconds thenthen beepbeep thenthen 10 seconds DetermineDetermine setting:setting: QueryQuery TermTerm PagePage withoutwithout waiting:waiting: TermTerm MoreMore 00 00 HoldingHolding (Waiting(Waiting forfor youyou toto clearclear thethe screenscreen )) NotNot AcceptedAccepted (Too(Too manymany commandscommands inin buffer;buffer; waitwait forfor executingexecuting commandcommand toto complete)complete)

Copyright IBM Corp., 2004,2005 13-14 CMSCMS CommandsCommands

AllowAllow youyou toto create,create, modify,modify, debug,debug, andand inin general handle a systemsystem ofof filesfiles ManyMany languagelanguage processors/compilersprocessors/compilers cancan runrun underunder CMSCMS CommandsCommands areare blank-delimitedblank-delimited InputInput acceptedaccepted inin ANYANY casecase CMSCMS willwill automaticallyautomatically uppercaseuppercase andand passpass toto commandcommand parser GeneralGeneral syntax:syntax: CommandCommand namename [operand(s)...][operand(s)...] [[ (options....(options.... [[ )) ]] ]] Examples:Examples: copycopy ProfileProfile ExecExec AA == == CC LISTFILELISTFILE (( DateDate RdrlistRdrlist SomeSome commandscommands cancan simulatesimulate aa VSEVSE (DOS)(DOS) environmentenvironment SETSET DOSDOS On

CMSCMS CommandsCommands CommandCommand SearchSearch OrderOrder

WhenWhen aa commandcommand isis entered,entered, CMSCMS hashas toto locatelocate itit

SearchSearch forfor anan EXECEXEC withwith thethe specifiedspecified commandcommand namename EXECsEXECs inin storage CommandCommand namename withwith FiletypeFiletype EXECEXEC onon accessed disk or directorydirectory (A-Z)(A-Z) SearchSearch forfor translationtranslation oror synonymsynonym SearchSearch forfor aa modulemodule withwith thethe specifiedspecified commandcommand namename NucleusNucleus extension,extension, transienttransient area,area, nucleusnucleus resident,resident, onon accessedaccessed disk/directorydisk/directory IfIf CommandCommand notnot foundfound inin CMS,CMS, itit willwill bebe passedpassed toto CPCP forfor executionexecution unlessunless SETSET IMPCPIMPCP isis OFFOFF (Implied(Implied CP)CP)

Copyright IBM Corp., 2004,2005 15-16 CMSCMS CommandsCommands ImmediateImmediate CommandsCommands CanCan bebe enteredentered whilewhile another command is running

InterruptsInterrupts thethe runningrunning command and is executed immediatelyimmediately

1010 systemsystem immediateimmediate commands:commands: HB,HB, HI,HI, HO,HO, HTHT,, HXHX,, RT,RT, RO,RO, SO,SO, TE,TE, TSTS

User'sUser's cancan definedefine theirtheir ownown immediateimmediate commandscommands IMMCMDIMMCMD MacroMacro fromfrom anan AssemblerAssembler programprogram IMMCMDIMMCMD CommandCommand fromfrom anan EXECEXEC IMMCMDIMMCMD optionoption onon NUCXLOADNUCXLOAD commandcommand

CMSCMS FileFile SystemSystem

CMSCMS filesfiles areare uniqueunique andand generallygenerally cannotcannot bebe readread oror writtenwritten by other operating systems

FilesFiles areare namednamed usingusing aa filefile identifieridentifier (file(file ID)ID) consistingconsisting of 3 fields: FileFile namename (FN)(FN) FileFile typetype (FT)(FT) FileFile modemode (FM)(FM) oror DirectoryDirectory namename (dirname) filefile modemode letterletter A-ZA-Z wherewhere minidiskminidisk oror directory resides, establishedestablished byby ACCESSACCESS command filefile modemode numbernumber 0-60-6 assignedassigned whenwhen filefile isis createdcreated oror renamedrenamed (default(default == 1),1), usedused toto identifyidentify oror operateoperate onon aa subsetsubset of files

Copyright IBM Corp., 2004,2005 17-18 CMSCMS FileFile SystemSystem FilesFiles cancan bebe storedstored inin severalseveral ways:ways:

OnOn MinidisksMinidisks (fn(fn ftft fm)fm) StandardStandard filefile modes:modes: AA -- user'suser's disk,disk, SS -- systemsystem disk,disk, Y/SY/S -- installedinstalled programsprograms

InIn anan SFSSFS (Shared(Shared FileFile System)System) filespace:filespace: (GPLSRV2:RODEN.SSL.C.EXAMPLES)(GPLSRV2:RODEN.SSL.C.EXAMPLES)

OnOn thethe BFSBFS (Byte(Byte FileFile System)System) (/home/userid/...)(/home/userid/...) hierarchicalhierarchical filefile structurestructure

InIn NFSNFS (Network(Network FileFile System)System)

CMSCMS MinidisksMinidisks

C C z/ L L M M O I I S S S N N U U A X X CP LINUX 191 Control Program

IBMUSER 191

Copyright IBM Corp., 2004,2005 19-20 SampleSample UserUser DirectoryDirectory

USER IBMUSER IBMUSER 16M 16M G ACCOUNT SYSTEMS MACH XA IPL CMS

CONSOLE 009 3215 SPOOL 00C 2540 READER * SPOOL 00D 2540 PUNCH A SPOOL 00E 1403 A

LINK MAINT 0190 0190 RR * CMS system disk LINK MAINT 019E 019E RR * Product code disk LINK 5767002P 29E 29E RR Focus LINK 5767002P 505 305 RR LINK 5767002P 191 192 RR MDISK 191 3390 1535 001 510RES MR READ WRITE MULTIPLE

FileFile systemsystem -- MinidisksMinidisks AA locationlocation onon realreal DASDDASD whichwhich hashas beenbeen allocatedallocated forfor storagestorage ofof aa user'suser's filesfiles

33 typestypes ofof minidisks:minidisks: PermanentPermanent lastslasts acrossacross sessionssessions (logons);(logons); defineddefined inin directorydirectory TemporaryTemporary (T-disks)(T-disks) areare destroyeddestroyed at logoff useuse CPCP DEFINEDEFINE commandcommand oror attachattach byby operatoroperator VirtualVirtual disksdisks in storage temporarytemporary simulationssimulations ofof minidisksminidisks inin systemsystem storage,storage, notnot allocatedallocated onon realreal DASD.DASD. avoidsavoids I/OI/O overheadoverhead ofof writingwriting toto DASDDASD

Copyright IBM Corp., 2004,2005 21-22 FileFile systemsystem -- DiskDisk CommandsCommands CPCP DEFINE,DEFINE, CPCP LINK,LINK, CMSCMS ACCESSACCESS DefinesDefines aa virtualvirtual devicedevice oror virtualvirtual diskdisk inin storagestorage ---- DEFINEDEFINE t3380t3380 asas 291291 cylcyl 1010 LinkLink toto otherother user'suser's minidisksminidisks toto shareshare filesfiles ---- LINKLINK caseyctcaseyct 191191 291291 rrrr OnceOnce linked,linked, aa diskdisk cancan bebe accessedaccessed ---- ACCESSACCESS 291291 cc

FORMATFORMAT MinidisksMinidisks mustmust bebe formatted before using the first time ---- FORMATFORMAT 291291 cc

DiskDisk CommandsCommands (cont.)...(cont.)... RELEASE,RELEASE, CPCP DETACHDETACH ReleaseRelease ffreesrees anan accessedaccessed disk ---- ReleaseRelease cc DetachDetach removesremoves thethe devicedevice fromfrom youryour vmvm configurationconfiguration ---- DetachDetach 291291 -or--or- ReleaseRelease cc (detach(detach

CPCP QUERYQUERY DASDDASD ShowsShows whatwhat youyou have linked; displays status

QQ ACCESSED,ACCESSED, QQ DISK,DISK, Q SEARCH ShowsShows variousvarious statusstatus informationinformation forfor accessedaccessed disks/directories

LISTFILE,LISTFILE, FILELISTFILELIST ListsLists thethe filesfiles onon anan accessedaccessed minidiskminidisk oror directorydirectory

Copyright IBM Corp., 2004,2005 23-24 DevelopingDeveloping ProgramsPrograms CreatingCreating andand CompilingCompiling UseUse XEDITXEDIT toto createcreate thethe programprogram likelike anyany otherother filefile

FiletypeFiletype indicatesindicates namename ofof programmingprogramming languagelanguage youyou areare usingusing Assemble,Assemble, Fortran,Fortran, C,C, Cobol,Cobol, PLI, etc.

InvokeInvoke thethe compilercompiler byby typingtyping compilercompiler name followed byby FileFile namename ofof thethe programprogram

LISTINGLISTING andand TEXTTEXT filesfiles areare producedproduced example:example: ASSEMBLEASSEMBLE ASM1 result:result: ASM1ASM1 LISTINGLISTING ASM1ASM1 TEXTTEXT

XEDITXEDIT Command:Command: XeditXedit fn ft fm EachEach lineline is a record ScreenScreen Layout:Layout:

TEST FILE A1 F 80 Trunc=80 Size=45 Line=0 Col=1 Alt=0

Current Line ===== * * * Top of File * * * |...+....1....+....2....+....3....+....4....+....5....+....6....+....7... Scale ===== one ===== two ===== three ===== four Data ===== five Area Prefix Area ===== six ===== seven ===== eight ===== nine ===== ten Command Line ====> X E D I T 1 File

Copyright IBM Corp., 2004,2005 25-26 XEDITXEDIT

PrefixPrefix CommandsCommands (subset)(subset) m,m, mmmm mmmm -- movemove c,c, cccc cccc -- copycopy ff -- followingfollowing pp -- precedingpreceding aa -- addadd sisi -- sequentialsequential insertinsert d,d, dddd dddd -- deletedelete ",""","" """" -- repeatrepeat

XEDITXEDIT

CommandCommand lineline commandscommands screenscreen formatformat changechange /xxx/yyy//xxx/yyy/ ** ** /zzz//zzz/ (find(find zzzzzz inin text)text) allall /zzz//zzz/ (find(find allall zzzzzz atat once)once) EndingEnding QQuitQQuit -- leaveleave andand doesn'tdoesn't savesave changeschanges SAVESAVE -- doesn'tdoesn't leave, but does save changes FILEFILE -- leaveleave andand savesave changeschanges

Copyright IBM Corp., 2004,2005 27-28 XEDITXEDIT WriteWrite youryour ownown command Name:Name: yourcmdnyourcmdn XEDIT WriteWrite usingusing REXX Use:Use: EXTRACTEXTRACT toto get session information CanCan useuse PipelinesPipelines

XEDITXEDIT

DefaultDefault ProgramProgram Function Keys PF1PF1 BEFOREBEFORE HELPHELP MENUMENU PF2PF2 BEFORE SOS LINEADD PF3PF3 BEFOREBEFORE QUITQUIT PF4PF4 BEFORE TABKEY PF5PF5 BEFOREBEFORE SCHANGESCHANGE 66 PF6PF6 ONLYONLY ? PF7PF7 BEFOREBEFORE BACKWARDBACKWARD PF8PF8 BEFOREBEFORE FORWARDFORWARD PF9PF9 ONLYONLY == PF10PF10 BEFOREBEFORE RGTLEFTRGTLEFT PF11PF11 BEFOREBEFORE SPLTJOINSPLTJOIN PF12PF12 BEFOREBEFORE CURSORCURSOR HOMEHOME

Copyright IBM Corp., 2004,2005 29-30 XEDITXEDIT

PROFILEPROFILE XEDITXEDIT runsruns whenwhen XEDIT is invoked Sample:Sample: PROFILEPROFILE XEDIT /* PROFILE XEDIT */ 'SET VERIFY OFF 1 72' 'SET NUMBER ON' 'SET PREFIX NULL' 'SET CASE MIXED IGNORE' 'SET CURLINE ON 4' 'SET SCALE OFF' 'SET AUTOSAVE 1' Note: Xedit is very tailorable !

XEDITXEDIT NewNew ScreenScreen LayoutLayout

TEST FILE A1 F 80 Trunc=80 Size=45 Line=0 Col=1 Alt=0

Current Line 0 * * * Top of File * * * 1 one 2 two 3 three 4 four 5 five Scale 6 six Prefix Area 7 seven 8 eight is 9 nine Data 10 ten Area GONE 11 eleven 12 13 14 15 16 17 Command Line ====> X E D I T 1 File

Copyright IBM Corp., 2004,2005 31-32 XEDITXEDIT ISPFISPF prefixesprefixes - PROFILE XEDIT

/* to mimic ISPF */ 'SET PREFIX SYNONYM B P ' 'SET PREFIX SYNONYM A F ' 'SET PREFIX SYNONYM R " ' 'SET PREFIX SYNONYM RR "" '

EXECsEXECs Types:Types: EXEC,EXEC, EXEC2, and REXX REXXREXX /*/* startsstarts withwith aa commentcomment */*/ ContainsContains VariablesVariables andand StemmedStemmed ArraysArrays StoresStores StringsStrings andand NumbersNumbers asas stringsstrings HasHas 'flow'flow control'control' dodo andand dodo whilewhile ifif thenthen elseelse selectselect interpretinterpret AllowsAllows FunctionsFunctions andand ProceduresProcedures IssuesIssues CP/CMSCP/CMS commandscommands (in(in quotes)quotes)

Copyright IBM Corp., 2004,2005 33-34 EXECsEXECs PROFILEPROFILE EXECEXEC runs when you sign on

/* Profile Exec Sample */ RODEN SYNONYM A 'SYNONYM RODEN SYNONYM A' 'CP SPOOL CONS * START' 0 * * * Top of File * * * 'CP TRACE END' 1 RECEIVE REC 3 'CP SET MSG ON' 2 * * * End of File * * * 'CP SET PF12 RET'

PipelinesPipelines CMSCMS commandcommand SeveralSeveral ProgramsPrograms (stages)(stages) pass records ManyMany sourcessources forfor data commandscommands xeditxedit disksdisks storage,storage, etc.etc. Example:Example: 'pipe ', '| < my data a', '| locate /my line/', '| > mynew data a'

Copyright IBM Corp., 2004,2005 35-36 SpoolSpool DevicesDevices

Reader,Reader, Printer,Printer, PunchPunch

C C z/ L L M M O I I S S S N N U U X X CP LINUX RPP RPP RPP RPP RPP RPP RPP Control Program

Reader Punch Printer

SampleSample UserUser DirectoryDirectory

USER IBMUSER IBMUSER 16M 16M G ACCOUNT SYSTEMS MACH XA IPL CMS

CONSOLE 009 3215 SPOOL 00C 2540 READER * Focus SPOOL 00D 2540 PUNCH A SPOOL 00E 1403 A

LINK MAINT 0190 0190 RR * CMS system disk LINK MAINT 019E 019E RR * Product code disk LINK 5767002P 29E 29E RR LINK 5767002P 505 305 RR LINK 5767002P 191 192 RR MDISK 191 3390 1535 001 510RES MR READ WRITE MULTIPLE

Copyright IBM Corp., 2004,2005 37-38 DebuggingDebugging

RecordRecord youryour consoleconsole spoolspool consoleconsole toto ** startstart (to(to startstart recording)recording) ...... (do(do work)work) spoolspool consoleconsole stopstop closeclose (console(console punchedpunched toto youryour rdr)rdr) queryquery readerreader allall (to(to getget thethe spoolspool id)id) rdrlistrdrlist peekpeek {spool{spool id} (for(for ** (to(to looklook atat thethe console)console) receivereceive {spool{spool id} fn ft fm (to(to savesave consoleconsole inin aa file)file)

DebuggingDebugging

TracingTracing tracetrace ii r12345.10r12345.10 tracetrace instructionsinstructions @@ locationlocation 1234512345 forfor x10x10 bytesbytes displaydisplay gg (display(display general registers) dd t12345.20t12345.20 (display translated storage for x20) bb (begin execution) tracetrace endend (end(end tracing)tracing) DumpsDumps VMDUMPVMDUMP VMVM DumpDump Tool

Copyright IBM Corp., 2004,2005 39-40 ReferencesReferences

VM Library http://www.vm.ibm.com/libraryhttp://www.vm.ibm.com/library

XEDIT Tutorial http://www.vm.ibm.com/tutorialhttp://www.vm.ibm.com/tutorial HELP Facility HELPHELP commandcommand HELPHELP msgmsg DMSxxxEDMSxxxE CPCP LinkLink MAINTMAINT 19D19D 19D19D rrrr linklink forfor HELPHELP disk

DevelopmentDevelopment ContactsContacts WillWill J.J. Roden,Roden, Jr. Phone:Phone: (607)(607) 429-3278429-3278 Internet:Internet: [email protected]@US.IBM.COM Web:Web: http://www.vm.ibm.com/devpages/rodenhttp://www.vm.ibm.com/devpages/roden PostalPostal mailmail IBMIBM DepartmentDepartment G79G G79G 17011701 NorthNorth StreetStreet Endicott,Endicott, NYNY 1376013760 U.S.A.U.S.A. ChristineChristine CaseyCasey Phone:Phone: (607)(607) 429-3434429-3434 Internet:Internet: [email protected]@US.IBM.COM Web:Web: http://www.vm.ibm.com/devpages/caseycthttp://www.vm.ibm.com/devpages/caseyct PostalPostal mailmail IBMIBM DepartmentDepartment G28G G28G 17011701 NorthNorth StreetStreet Endicott,Endicott, NYNY 1376013760 U.S.A.U.S.A.

Copyright IBM Corp., 2004,2005 41-42