MVS Commands

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

MVS COMMANDS

MVS System Software Control and most of the hardware installations like processors, I/O Devices and Channel paths involve set of tasks like starting, running and stopping MVS Operating System. Below listed are the syntax and respective functions of frequently used MVS System Commands. Who Should Use: Below listed MVS System Commands are for System operators / Console Operators who need reference material to perform: - Daily operations, - MVS Control and sometimes change few of the Consoles characteristic

1. DISPLAY COMMANDS D U,,,380,2 D U,DASD,ONLINE DT D ASM D SMF D SMF,S D SMF,O D U,TAPE,ONLINE,,number of tapes to be displayed D U,ALLOC,,number of devices to be displayed D U,DASD,,,number of devices to be displayed DM D M=CHP D M=DEV D M=DEV(device name)" D M=CHP(chip id) DC D C,K D TS,L D R,L or D R,ALL D PFK DD CLEAR,DSN=ALL DD ADD,DSN=number of SYS1.DUMP data set required DD DEL,DSN=number of SYS1.DUMP data set required D IPLINFO D SMS,STORGRP(ALL),LISTVOL Display two devices, starting at address 380 Display all online DASD volumes Display time and date To display the usage of Auxiliary storage manager To display the SMF usage To display the SMF status To display the current SMF options To display the status of the tape volumes To display the status of the allocated resources To display the all the DASD volumes To display the configuration of the system To display all the chips connected to the system To display all the devices connected To display a particular device To display a particular chip To display console status information To display control command functions To display the users logged on to the system To display the system requests To display the commands defined for PFK keys To clear a dump data set To add a dump data set To deleted a dump data set To display the IPL information To display the storage groups and volumes

D A,L D A,ALL D C,N D DUMP DJ D J,L D TS,L D A,L D C, K D ETR D NET,PENDING,ID=id name D NET SESSIONS,LIST=ALL,MAX=500,E D NET STATIONS D NET,TSOUSER,ID=user id D NET,NETSRVR,E D NET,MAJNODES,MAX=500 D NET,CLSTRS D NET,APPLS D NET,ADJSSCPS,ADJLIST=* D NET,ADJCP,ID=adjacent id,E D NET,ADJCLUST,NETID=cluster name F NET,TRACE,TYPE=IO,ID=name D NET,ID=line id,E D NET,ROUTE,DESTSUB=ncp number,TEST=YES D NET,ROUTE,DESTSUB=remote NCP no,ORIGIN=host D A,BBO* D PARMLIB D PROG,LNKLST D ASM,PAGE=ALL D GRS,C D M=STOR D WLM,IRD D WLM,SYSTEMS D WLM,APPLENV=* D LOGGER,L

To display all the active jobs including time sharing To display all the active jobs and other information Display information about inactive console Display the status of all sys1.dump dataset Display how many active jobs in the system Display list of all active jobs Display list of TSO users Display information about all active jobs Display available control commands To display ETR status To display the ids that are pending activation To display the list of all sessions To display the stations connected to the system To display the TSO users To display the net server To display all the major nodes To display the clusters connected to the system To display the applications To display the adjacent nodes To display a particular adjacent node To display the adjacent cluster To trace the I/O of the line To display a status of a line To display the route of the destination To display the route of the NCP from the host NCP Active jobs starting with BBO SYS1.PARMLIB settings used for this IPL Programs defined to Link List Page data sets & utilization of page space Global resource serialization contention Number of bytes of storage the system owns Status of IRD features used Systems in Goal Mode Which Application Environments are active Logger Log Streams

D OMVS,A=ALL D OMVS,F D OMVS,O D OMVS.P D OMVS,WAITERS D OMVS,SOCKETS D A,BPXAS D OPDATA D SMF D SYMBOLS D TCPIP,,N,PORT1 D TCPIP,,N,ROUTES D TCPIP,,N,HOME V TCPIP,,O,SYS1.TCPPARMS(PROFILE) D PROG,APF D TRACE DU D XCF,CPL

zOS UNIX address space processes HFS file systems currently in use or mounted zOS Unix current configuration setting PFS (physical file system) configuration information What Unix threads are waiting on UNIX Sockets All spwaned and forked initiator BPXAS address spaces Operator Command Prefixes SMF recording dataset status System symbolics TCP/IP ports being listened on TCP/IP routes TCP/IP Home Refresh TCP/IP Profile parms List all authorized programs All trace settings Track device allocations XCF parameters and coupled data sets

2. CANCEL COMMANDS C jobname The named job to end, which can be a batch job, started task, or APPC/MVS transaction program. Cancel the specified user Take a user dump The hexadecimal address space identifier of the work unit you want to cancel. Indicates the batch job or started task should be automatically restarted

C U=userid C DUMP C A=asid C ARMRESTART

3. FORCE COMMANDS Force jobname The named job to end, which can be a batch job, started task, or APPC/MVS transaction program. Terminate the specified user ID End the specified user, job, or started task if it is non-cancellable. The hexadecimal address space identifier of the work unit to terminate. Indicates the batch job or started task should be automatically restarted

Force U=userid Force ARM Force A=asid Force ARMRESTART

4. CONTROL COMMANDS K E,D K A,NONE K E,1 K E,SEG K N, PFK=(5,CMD='S GTF,580'),CON=N K S,REF K S,DEL=RD K S,REF K V,REF K V,LEVEL=ALL K V,LEVEL=R K V,LEVEL=IN K Q K Q,L=< CONSOLE ID> Erase bottom display area an console Undefined the display area at bottom of screen Delete line 1 (top of screen, usually) Delete contents of message segment Define a PFK Display current console mode Set "roll delete" mode (most common mode) Display all specification values Display all vary definitions Display all message Traffic routed to the console Display WTORS at the console Display informational messages at the console To clear Buffer Spool To clear the Buffer Shortage

5. HALT COMMAND Close the system log, and put it on the print queue.

Z EOD

6. SEND COMMAND Delete the specified message from the broadcast data set List the requested message or all messages The message or number of a message in SYS1.BRODCAST to be sent. The message be sent immediately only to all currently logged-on users. Send the message to all users logged onto all systems participating in the sysplex Send the message only to users logged onto systemname Send the message to all users logged onto the sysplex subset defined by groupname

SE msgno,DELETE SE [msgno,]LIST SE message or msgno SE 'message', NOW SE 'message', ROUTE = *ALL SE 'message',ROUTE=systemname SE 'message',ROUTE=groupname

7. START COMMANDS (START or S) To start JES2 START the APPC/MVS address space with parmlib member APPCPM00 START the APPC/MVS address space with parmlib member APPCPM01 To starts the SOM subsystem S JES2 S APPC,SUB=MSTR S APPC,SUB=MSTR,APPC=01 S SOM

To start an external writer with the identifier A Starting the Generalized Trace Facility Starting the Library Lookaside (LLA) Address Space Starting the Object Access Method (OAM) Starting Resource Recovery Services (RRS)

S XWTR.A,282 START GTF START LLA START OAM START RRS

8. STOP COMMANDS (STOP or P)

To stop the job SYSDA To stop writer 00E after it processes the current data set To stop the GTF session started with an identifier of ABCD To stop writer ABCD after it processes the current data set To stop the GTF session with an identifier of EXAMPLE To stop the ASCH initiator address space, whose asid is E Stopping the Data Lookaside Facility (DLF) Stopping the Library Lookaside (LLA) Address Space To stop the SOM daemon address space Stopping the Virtual Lookaside Facility (VLF)

STOP SYSDA P XWTR.00E P ABCD P XWTR./ABCD P EXAMPLE P ASCHINT,A=E P DLF P LLA P SOM P VLF

9. VARY COMMANDS (VARY or V)

Controlling Problem Determination Mode for the System Consol Controlling Problem Determination Mode for the System Console To have the hardcopy message set recorded on the system log To include all operator commands, responses, and status displays in the hardcopy message set To have the hardcopy message set recorded on the operations log To take consoles 003 and 001 offline To turn on the AUTOSWITCH attribute for tape devices 282, 283, and 287

VARY CN,ACTIVATE VARY CN,DEACTIVATE VARY SYSLOG,HARDCPY V ,HARDCPY,STCMDS VARY OPERLOG,HARDCPY VARY (003,001),OFFLINE VARY (282,283,287),AS,ON

To make devices 282, 283, and 287 available for system use To make device 282 available for system use even if there is no path to the device, To terminate I/O to device 282 To tell SMS not to allow allocation of new data sets from storage group SG1 onsystem MVS2 To tell SMS to allow allocation of both new and old data sets from storage group SG1 on all MVS systems To tell SMS to allow allocation of both new and old data sets from volume SMS001 on system MVS3 To vary port 60 of switch B000 offline on the two systems in a logical partition cluster To quiesce application environment db2pay To activate a service policy named SHIFT1

VARY (282,283,287),ONLINE VARY 282,ONLINE,UNCOND VARY 282,OFFLINE,FORCE VARY SMS,STORGRP(SG1,MVS2),DISABLE,N VARY SMS,STORGRP(SG1,ALL),ENABLE

VARY SMS,VOLUME(SMS001,MVS3),ENABLE

VARY SWITCH(b000,60),DCM=OFFLINE V WLM,APPLENV=db2pay,Q V WLM,POLICY=shift1

10. MODIFY COMMANDS (MODIFY or F) F TSO, USERMAX=40 F DLF,NN=xx F WLM,MODE=GOAL F ROSCOE,SHUTDOWN NOW F ROSCOE,STATUS F DATASRVR,APPL=threadlimit=5 To increase Maximum no. of Users in the System To cause the data Look aside facility (DLF) to use specified COFDLFxx member of the logical parmlib. To change from compatibility mode to GOAL mode Terminates ROSCOE immediately Displays number of ROSCOE users To modify the jobname DATASRVR

Need more information, Have Maintec Experts Contact You!

For information on other topics visit our Knowledge Base!

Connect with Us:

You might also like