Mainframe Commands

johnson07發表於2008-03-13

Please!
Verify all details or suggestions with the appropriate vendor and / or vendor's manuals.

Not all commands are listed here
This is just a selected few examples

JES2

Reference: OS/390 JES2 Commands
GC28-1790-02, for valid parameters.

[@more@]

$DSPL,JOBS=5
this will display all jobs using 5% or more of the spool
. . . very useful when you have panic spool problems.

$A A
To release all jobs

$ACTIVATE
To activate new functions at the current release level of JES2.

$ADD APPL
To dynamically define a VTAM application to JES2 at the specified JES2 node.

$ADD DESTID
To dynamically define a symbolic name for a JES2 route code.
Use the $D DESTID command to view the actual destination for a destid.

$ADD FSS
To dynamically define a functional subsystem (FSS) to JES2.

$ADD LINE(nnnn)
To dynamically add a line.

$ADD LOGON (nn)
Creates a new LOGON pseudo-device, which defines JES2 as an application program to VTAM

$ADD PRT
To dynamically add a local printer.

$ADD REDIRECT
To specify redirection for commands entered at the entry console. The operator should use $ADD REDIRECT if redirection was not specified already by the initialization statement or a previous $ADD REDIRect for this console.

$ADD RMT(nnnn)
To add one or more RJE workstations. You cannot use this command to add an RJE workstation with a number higher than that either previously defined by RMTNUM= on the TPDEF initialization statement or the highest numbered RJE workstation defined through RMT(nnnn) initialization statements.

$C A
To cancel the processing of all or specified automatic command entries and delete those entries.

$C A 3
To cancel auto job id=3 (no comma)

$C job
Immediately cancel jobs or TSU sessions currently executing on any member of the MAS and, if desired, provide a storage dump.

$D A,L
Display information about currently active jobs

$D BUFDEF
To display the current values of all parameters defined on the BUFDEF initialization statement or command.

$DQ
$HASP647 3 XEQ C 1100
$HASP647 5 XEQ E 1100
$HASP643 6 PPU NYS2 ANY
$HASP643 742 PPU JES23 ANY
$HASP643 636 PPU LOCAL ANY
$HASP646 22.9416 PERCENT SPOOL UTILIZATION

$D SPOOL
Display the Status of Spool Volumes

$D SPOOLDEF
To display the JES2 spooling environment characteristics.

$D U,LOGON1

$D U,volser= to find the dasd address

$SSPL(MPSPL2),FORMAT

$T LOGON1,LOG=NO

$T OFF1.ST,DISP=KEEP
You can change OFF1.ST to OFF2.ST to off load the same spool files

$T NODE(SSAJES2),PATHMGR=NO

$T A,ALL
As an example the commands displays:
$HASP604 ID 1 T= 13.50 I= 900 L=INTERNAL $VS,'D A,L'
$HASP604 ID 4 T= 14.46 I= 3600 L=SYSMS $VS,'W X'
$HASP604 ID 5 T= 14.47 I= 3600 L=SYSMS $VS,'S LOGWTR'
$HASP604 ID 3 T= 23.55 I=86400 L=INTERNAL $VS,'S BACKUP'
$HASP604 ID 2 T= 37.18 I=86400 L=INTERNAL $VS,'S TMSDAILY'

Within JESPARMs

$TA,I=900,T=11.15,'$VS,''D A,L'''
Displays active list every 15 minutes

$TA,I=86400,T=04.15,'$VS,''S TMSDAILY'''
Starts job TMSDAILY every 24 hours starting at 0415 hours

$TA,I=86400,T=01.15,'$VS,''S BACKUP'''
Starts job BACKUP every 24 hours starting at 0115 hours

$TA,I=900,T=11.15,'$VS,''D A,L'''
(900 = display every 15 minutes)

$vs, 'v (234,235,236),offline','d a'
Varys offline devices 234,235,236 and dispalys all at JES2 startup

MVS

DS QT,483,1
DS QT,483,1 IEE459I 23.08.48 DEVSERV QTAPE 118
UNIT DTYPE DSTATUS CUTYPE DEVTYPE CU-SERIAL DEV-SERIAL ACL LIBID
0483 3590-1 ON-RDY 3590A60 3590E1A* 0113-48813 0113-48813 I 14395
**** 1 DEVICE(S) MET THE SELECTION CRITERIA
**** 1 DEVICE(S) WITH DEVICE EMULATION ACTIVE

D IOS,MIH,DEV=484
IOS086I 23.13.23 MIH DEVICE TIMES 162
0484=03:00.

V B55,online,uncond
After a V B55,offline,force which then boxes the device

D ASM
IEE200I 11.56.47 DISPLAY ASM 076
TYPE FULL STAT DEV DATASET NAME
PLPA 72% OK 0884 PAGE.CPAC.PLPA
COMMON 11% OK 0884 PAGE.CPAC.COMMON
LOCAL 5% OK 084A PAGE.CPAC.LOCAL2
LOCAL 5% OK 084B PAGE.CPAC.LOCAL3
LOCAL 5% OK 0282 PAGE.CPAC.LOCAL7
NO SWAP DATASETS ARE IN USE
PAGEDEL COMMAND IS NOT ACTIVE

D IPLINFO
IEE254I 11.43.50 IPLINFO DISPLAY 182
SYSTEM IPLED AT 18.06.14 ON 07/20/2000
RELEASE OS/390 02.07.00
USED LOAD00 IN SYS1.IPLPARM ON 0305
IEASYM LIST = 00
IEASYS LIST = 00 (OP)
IODF DEVICE 0305
IPL DEVICE 0300 VOLUME DAVR7A

D LOGREC
IFB090I 10.00.56 LOGREC DISPLAY 442
CURRENT MEDIUM = DATASET
MEDIUM NAME = SYS1.CPAC.LOGREC

D M
IEE174I 09.54.28 DISPLAY M 977
PROCESSOR STATUS
ID CPU SERIAL
0 + 0115C09672
1 + 1115C09672
CPC ND = 009672.R24.IBM.02.000000042043
CPC ID = 00
...... see console for full listing

***

D O ->display opdata

***

D PARMLIB
IEE251I 09.49.45 PARMLIB DISPLAY 372
PARMLIB DATA SETS SPECIFIED AT IPL
ENTRY FLAGS VOLUME DATA SET
1 S V26IPO SYS1.PARMLIB
2 S V26IPO CPAC.PARMLIB
3 S V26RES SYS1.IBM.PARMLIB

D PROD,REGISTERED
IFA111I 10.05.09 PROD DISPLAY 461
S OWNER NAME FEATURE VERSION ID
N IBM CORP OS/390 JES2 02.05.00 5647-A01
E IBM CORP OS/390 OS/390 02.06.00 5647-A01
E IBM CORP OS/390 RMF **.**.** 5647-A01
E IBM CORP OS/390 SDSF **.**.** 5647-A01
E IBM CORP OS/390 TCP/IP BASE **.**.** 5647-A01
E IBM CORP PSF/MVS PSF/MVS 02.02.00 5695-040

D PROG,EXIT
CSV460I 09.59.36 PROG,EXIT DISPLAY
...... see console for full listing

D PROG,LNKLST
CSV470I 10.01.50 LNKLST DISPLAY
LNKLST SET LNKLST00 LNKAUTH=LNKLST
ENTRY APF VOLUME DSNAME
1 A V26RES SYS1.LINKLIB
2 V26RES SYS1.MIGLIB
3 A V26RES SYS1.CSSLIB
...... see console for full listing

D PROG,APF
CSV450I 10.03.42 PROG,APF DISPLAY
FORMAT=DYNAMIC ENTRY VOLUME DSNAME
1 V26RES SYS1.LINKLIB
2 V26RES SYS1.SVCLIB
3 V26IPO CPAC.LINKLIB
...... see console for full listing

D SMF
IEE949I 13.10.00 SMF DATA SETS 493
NAME VOLSER SIZE(BLKS) %FULL STATUS
P-SYS1.MAN1 V26CAT 7200 0 ALTERNATE
S-SYS1.MAN2 V26CAT 1800 69 ACTIVE
S-SYS1.MAN3 V26CAT 1800 0 ALTERNATE

D SMF,O
IEE967I 09.49.14 SMF PARAMETERS 952
MEMBER = SMFPRM00
DDCONS(YES) -- DEFAULT
LASTDS(MSG) -- DEFAULT
NOBUFFS(MSG) -- DEFAULT
SYNCVAL(00) -- DEFAULT
INTVAL(30) -- DEFAULT
DUMPABND(RETRY) -- DEFAULT
SUBSYS(STC,NOTYPE(99)) -- SYS
SUBSYS(STC,NOINTERVAL) -- SYS
SUBSYS(STC,NODETAIL) -- SYS
SUBSYS(STC,EXITS(IEFUSO)) -- PARMLIB
SUBSYS(STC,EXITS(IEFUJP)) -- PARMLIB
SUBSYS(STC,EXITS(IEFU84)) -- PARMLIB
SUBSYS(STC,EXITS(IEFU83)) -- PARMLIB
SUBSYS(STC,EXITS(IEFU29)) -- PARMLIB
SYS(NODETAIL) -- PARMLIB SYS(NOINTERVAL) -- PARMLIB
...... see console for full listing

D SMS
IGD002I 09:55:02 DISPLAY SMS 400
SCDS = DFSMS.PRIM.SCDS
ACDS = DFSMS.PRIM.ACDS
COMMDS = DFSMS.PRIM.COMMDS
DINTERVAL = 150
REVERIFY = NO
ACSDEFAULTS = YES
SYSTEM CONFIGURATION LEVEL INTERVAL SECONDS
COA2 ---------- N/A CPAC 2000/08/09 09:54:50 15

D SYMBOLS
IEA007I STATIC SYSTEM SYMBOL VALUES 406
&SYSCLONE. = "AC"
&SYSNAME. = "CPAC"
&SYSPLEX. = "LOCAL"
&SYSR1. = "V26RES"

D T
IEE136I LOCAL: TIME=10.07.48 DATE=2000.222 GMT: TIME=14.07.48 DATE=2000.222

D U,IPLVOL
IEE457I 10.10.56 UNIT STATUS 510
UNIT TYPE STATUS VOLSER VOLSTATE
08A0 3390 S V26RES PRIV/RSDNT

DD CLEAR,DSN=ALL
IEE855I DUMPDS COMMAND RESPONSE 043
DUMPDS COMMAND SYS1.DUMP DATA SET STATUS
SYS1.DUMP DASD DATA SETS CLEARED: 00

F TSO,USERMAX=1
sets TSO user to max of one user

D XCF,COUPLE
Displays info on the couple data sets, which used at IPL, names, DASD, etc..

m xxx,vol=(sl,volser),use=public

DFSMS

F CATALOG,REPORT,CACHE
Reports caching statistics for both caching approaches of catalog management to cache catalog information:
" VLF statistics using CDSC
" ISC statistics

F CATALOG,REPORT,PERFORMANCE
This new modify catalog command reports counts for various events and the average elapsed time for these events.

F CATALOG,LIST(id|yyyyyy)|LISTJ(jobname)

For LISTJ and LIST provides a new keyword DETAIL detailed information about current CAS requests for the jobname or service tasks, including type of request, ENQs, locks held, and so on. Again, this is intended for real-time diagnosis when problems arise.

TSO/E

SYNC
command to initialize SYS1.BRODCAST data set and to synchronize it with the RACF data set, SYS1.UADS, or both.

SHOWMVS
(tool from the CBT tape by Gilbert Saint-flour)
From the ISPF options 6 screen enter SHOWMVS to list all kinds of info about your system

VTAM

D NET,MAJNODES

Z NET
Will take down VTAM normally allowing LU sessions to end prior to deactivation

Z NET,QUICK
Will take down VTAM normally but not allowing LU sessions to end normally

Z NET,CANCEL
Will take down VTAM when the above 2 options fail. Cancel will kill everything whether they are in Pending states, hung states or in normal sessions no matter what!!
(Z NET commands by Dan Sullivan, IBM-Main discussion group)

D NET,BFRUSE,BUFFER=SHORT

VLF

F CATALOG,REPORT,CACHE
Determining Catalogs in VLF

F CATALOG,NOVLF(your.catname)
Removing Catalogs from VLF
Please don't forget to fix your changes in SYS1.PARMLIB(COFVLFxx)

SDSF

XDC
Typing this command on the line of the job you want to save as a data set. It displays a self explaining menu. Your job is NOT remove for the output queue.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9895607/viewspace-1000891/,如需轉載,請註明出處,否則將追究法律責任。

相關文章