Computer Reference Notes for SysProgs and Computer Users

Reference Notes for SysProgs and Computer Users

MVS, OS/390, z/OS, Unix, AIX, Windows

Common vendor products and system commands.

These notes are not intended to be a detailed reference guide. With the plethora
of areas a systems programmer's path may lead, this guide fills in occasionally
where memory might fail.
This list also makes it easy to cut and paste some of the longer commands.
In an attempt to make these notes base more useful to others I'll expand or add further elaboration upon request.
If you have questions
Just ask!Last Update: 07/21/2010

Topics & Products... AIX   AIX2Sun   APAR   Candle   Computer_Associates   DB2   DDs   DFSMS   DOS/Windows   FTP   IMS   IPCS   JES2   LDAP   MVS Cmds   Netview   PDF Editor   RACF   SAS   SDSF   Slip_Trap   SMF   SMP/E   STK(ACS/HSC)   SVC_Info   Sys_Cmds   Sys_Env_Vars   TCP/IP   Teradata   TPM   TPX   TSO/ISPF   Unix_Sys.Svcs.   Utils(Zap,List,AMS)   VI   VPS   VTAM   VM   WebSphere   Windows   WLM   XCF   XPAF   Links to other technical resources   IBM Bookmanager OS390 IBM z/OS Books MVS Help.com Website


Candle (now IBM) Products
AFOPER OMEGAMONs Supersession

AFOPER Console commands

F AFOPER,AOREFRESH RCF START resourcename STOP STATUS (ALL) INIT Reinit a resource ACTIVATE resourcename INACTIVATE MONITOR Start monitoring a resource NOMONITOR

OMEGAMON Console commands

MVS commands F a/s,ECHO charstring ETE USERS ETE QUIESCE SYSTEMS -- DISPLAY ETE SUBSYSTEMS INSTALLED USERS -- DISPLAY PRODUCTS USING THE ETE SUBSYSTEM VERBOSE -- PRODUCE DIAGNOSTIC WTO FOR SELECTED EVENTS NOVERBOSE -- CANCEL EFFECTS OF VERBOSE CMD DUMP -- PRODUCE A DIAGNOSTIC ETE SVC DUMP DUMPDXL -- LIST EXCLUDED DEVICE ENTRIES TRACEON -- TURN ON DIAGNOSTIC TRACE TRACEOFF -- TURN OFF DIAGNOSTIC TRACE QUIESCE -- TERMINATE THE ETE SUBSYSTEM RESET -- RESET SSTB AND QUIESCE SUBSYSTEM CLRDUMP -- CLEAR "DUMP TAKEN" FLAG -- PERMIT ANOTHER ETE SVC USER= -- DISPLAY LUNAMES MONITORED BY A SPECIFIC PRODUCT F omegaview,VSHOW ACTIVE F collector, F H2cccc, SWITCH Switch and run DB2 hist collector offload F collector, F H2cccc, LISTH2DS List DB2 collector DSNs F collector,F EVENTMGR,STATUS F collector,P EVENTMGR F collector,EXEC (eventmgr RKD2PAR member) F collector,DISPLAY/LIST F addressspace,FLUSH can be used against most Omegamon address spaces to unlock if hung.

Omegamon Classic commands

Commands start in column 2. Enter a ? in column 1 for help. Enter HELP on top cmd line for more. Enter MENU on top cmd line for Menu Mode. DISK JOBN jobname DSKQ1 cpu2.R .009 DIOQxx jsta I/O*NSW XDSK Sqcb jobname SYS .MJC (lists all major commands) ALLJ BATJ BATL BATX BCPU BIO BSWP BWAT CONS CONU DEV DEVL DEVP DEX DISK DOMI DSKB DSKC DSKE DSKG DSKM DSKN DSKP DSKQ DSKR DSKS DSKU DSKV DUMP FNDU GDEV INSP JAS JAS# JA0 JA1 JA2 JA3 JA4 JA5 JA6 JA7 JA8 JA9 JCPU JDM JLSW JOBN JPAG JPR JP1 JP2 JP3 JP4 JP5 JP6 JP7 JP8 JP9 JRES JSNA JSNC JSWP OUTP PART PEEK PGR PRD PRDI SART SEEK STAT STCJ STCL SYS TAPE TPAL TPBS TPCU TPD# TPFR TPMT TPOF TP16 TP38 TP62 TP7T TP80 TSLG TSOD TSOJ TSOL TSOX 2305 2314 3330 3340 3350 3375 3380 3390 .MIN (lists all minor commands for previous major) ALI ALIB ASVT CPGR CPID CSA CSAR CWSS DFRS ECSA EMAP ENV ESAV ESCM ESDR ESMG ESMV ESOF ESON ESPI ESPM ESPO ESPR ESQA FAFQ FAVL FBDF FBLD FCOM FCSA FDFF FDRF FDSM FDSP FECM FECS FEFL FELS FEML FEPL FEPV FERO FERW FESQ FFLP FFLW FHSA FIDA FLSQ FMLP FOFL FPLP FPVT FRON FRWN FSBF FSQA FSRS FSYS FTDF FTOT FUNI FUNQ FVIO FVR FVRW FVV HSEI HSEM HSEO HSMG HSPI HSPM HSPO LAFQ LLT LPAT LSFR LSNW LSTW LUIC RASQ RBEL RCPD RCPR RCPU RCT RCTA RCTH RCTI RCTL RDPG RMAP RPAG RPDD RPDL RREA RTPG RTPI RUIC SBIA SBIE SBTA SBTE SCAL SCAP SCCS SCDW SCEX SCLF SCLS SCLW SCNQ SCOL SCRQ SCRS SCSP SCST SCTI SCTO SCTS SCUS SCXS SEST SMIG SMPP SPAL SPC SPCI SPIA SPIE SPR SPS SPSV SPWS SQA SQDC SQRV SRB SSPI SSPO SSTA SSTE SUI1 SUI2 SUI3 SUI4 SVC SVCX THNK TRSP VMAP SVCX add hex number SVC add SVC number -APFU Add|Chg|Ddelete|List DSN=aaaa.aaa.aaaaaaa,VOL=nnnnnn|*SMS**, NVOL=nnnnnn (new vol issued with change option) .RMF .SMF
DUMP Display MVS Control Blocks >Enter a control block name (for example: CVT) under the DUMP command. >ASCB ASMV ASVT ASXB CCT CMB CMCT CPMT CSD CVT DMDT GDA >GVT ICHP ICT LCCA LSCT MCT OUCB OUXB PARE PART PCCA PCT >PGDT PGVT PSA PVT RAB RABC RCE RCT RIT RMCA RMCT RMPT >SARE SART SCVT SPL WAMP WAMT WMST SYS IPS=01,OPT=00,ICS=01 SYSRES=(MSIRS0,129) llt LNKLST table alib Size of the APF table is 2568 bytes, it contains 97 entries GLST Very handy way to list device esoterics Change a jobs CPU limit. JOBN jobname cpul 03:00 HR -mctl+ nnnnn Fast path commands icse - OMII sys environ .MOD load module details

SUPERSESSION settings

DIALOG KLVPMOPT Check Supersession options KLVAPLCK Check for APL

CICS Commands

F cicsreg,CEMT SET PROG(progname) PHASEIN

DB2 Commands

# = subsystem ID #DISPLAY DATABASE(dbname/*dbname*/,/*) USE / CLAIMERS / PART(integer) / LOCKS / LPL / WEPR SPACENAM(space-name|*) USE | ONLY | CLAIMERS | LOCKS | LPL | WEPR AFTER ACTIVE RESTRICT ADVISORY AREST LIMIT(integer/*) Note: (1) If you specify the ONLY option without the SPACENAM() keyword, only the LIMIT, AFTER, and RESTRICT keywords apply. #DIS DB (*) (DNSDB01) (DNSDB06) LOCKS USE #DIS DATABASE(DBKD0101,DBKD0103) SPACENAM(*) RESTRICT LIMIT(*) #DISPLAY DB(*) SPACENAM(*) LOCKS #DIS DB(dbname1,dbname2) SPACENAM(*) RESTRICT LIMIT(*) ADVISORY #DIS GROUP #DIS THD (*) #DIS THD(*) TYPE(INDOUBT) #DIS THD(*) TYPE(*) #DIS LOCation #DIS PROCedure #DIS TRACE STOP TRACE (*) DEST (GTF) STOP TRACE(MON) stop all monitor traces Isolation levels CS - cursor stability - locks changed values until commit or term RR - repeatable read - Provides maximum protection from other executing application programs. When application program executes with repeatable read protection, rows referenced by the program cannot be changed by other programs until the program reaches a commit point. RS - read stability - Similar to repeatable read but does not completely isolate an application process from all other concurrently executing application processes. Under level RS, an application that issues the same query more than once might read additional rows that were inserted and committed by a concurrently executing application process. UR - Uncommitted Read - Allow read of uncommitted data.

IMS Notes

Commands must be prefixed with CRC or IMSID.
 Commands and Keywords Valid in DBCTL
 Commands Keywords
 /CHANGE

 ABORT, AUTOLOGON, CCTL, COMMIT, FDR,
 OASN, PASSWORD, PRTKN, RESET, SUBSYS,
 TIMEOUT
 /CHECKPOINT  ABDUMP, FREEZE, PURGE, STATISTICS
 /DBDUMP  DATABASE, GLOBAL, LOCAL, NOFEOV, NOPFA
 /DBRECOVERY
 AREA, DATABASE, DATAGROUP, GLOBAL, LOCAL,
 NOFEOV, NOPFA
 /DELETE  DATABASE, PASSWORD, PROGRAM
Revision| DELETE LE Revision| LTERM, PGM, TRAN, USERID
 /DEQUEUE  AOITOKEN
 /DISPLAY




 ACTIVE, AOITOKEN, AREA, BKERR, CCTL,
 DATABASE, DBD, FDR, FPVIRTUAL, HSSP,
 INDOUBT, MADSIOT, MODIFY, MONITOR, OASN,
 OLDS, OSAMGTF, PI, POOL, PROGRAM, PSB,
 RECOVERY, REGION, SHUTDOWN, STATUS,
 SUBSYS, TABLE, TCO, TRACE, TRACKING, STATUS, XTRC
 /ERESTART
 CHECKPOINT, COLDBASE, COLDSYS, FORMAT,
 NOBMP, OVERRIDE
Revision| INITIATE OLC Revision| OPTION, PHASE, TYPE
 /LOCK  DATABASE, PROGRAM
 /LOG  
 /MODIFY  ABORT, COMMIT, PASSWORD, PREPARE
 /NRESTART  CHECKPOINT, FORMAT
 /PSTOP  AOITOKEN, JOBNAME, REGION
Revision| QUERY LE Revision| LTERM, PGM, SHOW, TRAN, USERID
Revision| QUERY MEMBER Revision| ALL, ATTRIB, SHOW, STATUS, TYPE
Revision| QUERY OLC Revision| LIBRARY, SHOW
 /RECOVER



 ALLENTRIES, AREA, CAGROUP, DATAGROUP, DB,
 DBDS, DBDSGRP, ERRORCONT, NOCHECK,
 OFFLINE, PITR, RCVTIME, RCVTOKEN,
 READNUM, RECOVGRP, STAGLOBAL, STALOCAL,
 USEAREA, USEDBDS
 /RMxxxxxx  
 /RTAKEOVER  
 /SSR  
 /START




 ACCESS, AREA, AUTOARCH, DATABASE,
 DATAGROUP, DBALLOC, GLOBAL, ISOLOG,
 JOBNAME, LOCAL, MADSIOT, NOBACKOUT,
 NODBALLOC, OLDS, PROGRAM, REGION, SB,
 SERVGRP, SSM, SUBSYS, THREAD,
 TRKAUTOARCH, WADS
 /STOP


 ABDUMP, ADS, AREA, AUTOARCH, CANCEL,
 DATABASE, DATAGROUP, GLOBAL, JOBNAME,
 LOCAL, NOPFA, OLDS, PROGRAM, REGION, SB,
 SERVGRP, SUBSYS, THREAD, WADS
 /SWITCH  CHECKPOINT, OLDS, WADS
Revision| TERMINATE OLC Revision|
 /TRACE
 COMP, MONITOR, NOCOMP, OPTION, OSAMGTF,
 PI, PROGRAM, PSB, SET, TABLE, TCO, VOLUME
 /UNLOCK  DATABASE, PROGRAM
Revision| UPDATE LE Revision| LTERM, PGM, SET, TRAN, USERID
 /VUNLOAD  
DBCTL commands DISplay Active DIS POOL ALL DIS STATUS

INFOMAN cmds (pretty old stuff)

window enhanced window standard window save PF4 ===> ;se clat/qmvssup stac/o. info/serv. PF5 ===> ;se clat/qmvssup stac/o. info/prb. PF6 ===> ;se clat/qmvssup stac/o. info/chg. datp=date of install

IPCS

IPCS New for z/OS 1.4 COPYCAPD extract captured SVC dumps from a SAD. Suppose your system crashes before you capture the offending SVC dump. It may be possible to extract it from your Stand Alone Dump. LISTTOD reformat displayed timestamps. Doesn't alter the dumps but is great when dealing with LPARS that are running in multiple time zones or products that use GMT.
IPCS IPLDATA IPCS CBF X STR(GDA) ?=31 IPCS CBF X STR(PSA) %=24 CBF RTCT (scroll down and see which A/S were dumped) IPCS W(here) CVT IPCS W(here) address. IPCS STATUS CPU IPCS STATUS SYSTEM 'L CVT','IPCS CBF X STR(CVT)' L 1R (contents register 1) IPCS BLSCRNCH (a pretty handy RUNCHAIN exec) IPCS LMAP (show map of control blocks) IPCS SCAN (verify control blocks) IPCS SCAN STR(xxx) UCB lookup. At unformatted PSA. % at BC address IPCS CBF X STR(UCB) From Option 4. 'VERBX TRACE' 'VERBX DAEDATA' 'VERBX GRSTRACE" 'VERBX LOGDATA' 'VERBX NUCMAP' 'VERBX SUMDUMP' SVC dump summary VERBX VSMDATA 'NOGLOBAL SUMM' for diagnosis of local storage problem VERBX VSMDATA 'NOASIDS SUMM' for diagnosis of global storage problem Allocate output TSO commands ----------------------------------- ALLOCATE DDNAME(IPCSPRNT) SYSOUT(A) ALLOCATE DDNAME(IPCSTOC) SYSOUT(A) Set attrib list and allocate file output TSO commands ----------------------------------- ATTRIB LIST1 DSORG(PS) RECFM(V B A) LRECL(125) BLKSIZE(1254) ALLOCATE DDNAME(IPCSPRNT) DATASET(sess7.print) NEW KEEP + SPACE(10,5) TRACKS USING(LIST1) IPCS OPEN PRINT (FILE(ddname) TITLE ('System In Wait' '12-12-88') + CHARS(DUMP))

JES2 Console commands

New with z/OS 1.4. The JES2 status monitor. New commands to check your JES2 environment. $J D JES $J D DETAILS Status mon details $J D HISTORY [,HOURS=2] $J D MONITOR Monitor task info $D PERFDATA(,QSUSE |,CPUSTAT |,PCESTAT |,EVENT) use comma with one optional parm $TPERFDATA(*),RESET
$ADD LOGONnn,Applid= ,LOG=Y,Password= Auto command $TA,ALL list auto commands $T A,I=90,'$VS,''I SMF''' $TA2,I=90,'$VS,''I SMF''' $TAname,T=26.40,'jes cmd' T is time from 00:00 on date issued $T A,T=24.30,I=86400,'$VS,''I SMF''' run this every 24 hours at 00:30 If command is issued for a time that has elapsed you must specify hours after the last midnight. $CAxxxx cancel auto cmd xxxx $TAM list auto messages $D ACTRMT diplay active RJEs in a MAS $D BUFDEF $D SMFDEF $D CONDEF $D SUBNET(*) $D PATH(#) $D MODULE(jxxxxxx) displays JES2 module inf. (more parms-see manual) $D STCCLASS $DJQ,JM=*,Q=CNV checking for converter problems $DPCE(CNVT),DETAILS what is the converter doing? $DI[,LONG] $DOJOBQ $D JOBDEF $D OUTCLASS $D OUTDEF Lists JOEs and other stuff $TO JOBQ,P=240,Q=F,/H>15 filtering example $TOJxxxx,REL=ALL $DLINExx $S LINE(nnnn) $P LINE(nnnn) $D TPDEF display teleprocessing info $DNODE $DNODE(xx) $SN,N=nodename USMHSE2B for the IBM link $S N,LINEnnnn $DAPPL $add appl(jesc),node=33 {compact=(0-99) line= logmode= rest= } $TAPPL(xxxxxxx),node= $ADD CONNECT, NODEA=PHOENIX, MEMBA=1, NODEB=TUCSON, MEMBB=2, REST=30 $T CONNECT $DEL CONNECT $D CONNECT $LJOBQ,JM=MASK* $CJOBQ,JM=RMF,ALL Cancel jobs input & output by Jobmask $COJQ,JM=BPXAS,D=XYZZY cancel output by mask and dest $c o jq,all,a>8 cancel all older than 8 days $c o jq,r=denver,q=bk cancel all dest=denver in classes b & k $DFSS [,LONG] list all FSS's $ADD FSS(accc),PROC=stctask add FSS (HASPFSSM=HASPFSSM,AUTOSTOP=NO) is the default if not specified $T FSS(accccccc) PROC= , HASPFSSM=, AUTOSTOP=(YES,NO) $D CKPTDEF checkpoint info $T CKPTDEF change checkpoint defs $D CKPTSPACE $D ACTIVATE $D INTRDR display intrdr init $DRDI(*) display internal readers $D REBLD display rebuild queue $D TRACEDEF trace defs $D DESTID(*) $ADD DEStid(name),DEST=NnRn,PRIMARY=YES (DEST can be any defined names or of Nnnnn, Rnnn or Unnnn format) $DEL DESTID(xxxxxx) $T DEStid(xxxxxx),DEST=xxxxxxx.xxxxxx $d condef display console defs $t condef, set console def(s) $DLGN (or LOGON) JES2/VTAM status $DU,LGNS $DU,RMTS $DU,ALL $D PATH $D NJEDEF $D SSI $D TPDEF $R ALL,R=U5,D=SYSX route all U5 output to D= Offload devices $D U,OFFS $DOFFLOAD(n) $SOFFLOAD1,TYPE=RECEIVE $D U,OFFn.[JT,ST,JR,SR] $T OFFn.xx,WS= $D MASDEF display MAS defs $D MEMBer display MAS members CONTROL S,MFORM=(J) Associated MVS command $D PCE - display processor control element tracing stats $D PCEDEF $DSPL(*) spool volumes $DSPOOLDEF $D COMPACT compaction tables $D EXIT exits $D SRVCLASS(name) - Display JES2 information for the specified service class $P SRVCLASS(name) - Drain JES2 processing for a given service class $S SRVCLASS - Start JES2 processing for a given service class $T SRVCLASS(name) - Modify JES2 information for the specified service class $ADD SRVCLASS(name) - Add a new permanent service class element $DPRTnnn $TPRTnnn $TJOBCLASS(STC),MSGCLASS=A useful when an STC fails and output isn't normally saved

MVS, OS/390 & z/OS commands

*lower case in all MVS commands denotes optional spelling or variable parms
CMDS - see which commands are being processed or cancel them CMDS ABEND,CMD=cccccccc,ID=nnnn[,CLASS=classname][,JOB=jobname] DISPLAY|D[,CLASS=classname][,CMD=cccccccc][,ID=nnnn][,JOB=jobname] REMOVE|R[,CLASS=classname][,CMD=cccccccc][,ID=nnnn][,JOB=jobname] SHOW|S[,CLASS=classname][,CMD=cccccccc][,ID=nnnn][,JOB=jobname]

IO defs and HCD

ACTIVATE {[,IODF=xx][,EDT=xx][,PROC=procname][,CFID=id] { [,RECOVER=SOURCE|TARGET][,ACTIOCDS=xx] {[,SOFT[=VALIDATE|=NOVALIDATE] ] { |,TEST { |,FORCE { |,FORCE={DEVICE { {CANDIDATE { {(DEVICE,CANDIDATE) { {(CANDIDATE,DEVICE)

DLF (data lookaside)

D DLF,RES=(*,*) TSO COFDMON DLF TSO monitor

Slip Trap

T SLIP=xx Set slip via IEASLPxx parmlib member. ***Set slip trap for OC4 Example SL SET,C=0C4,ML=1,END D SLIP[=id] SL SET,SA,ENABLE,ACTION=SVCD,RANGE=CD3010,END SYNCSVCD |__________storage location SLIP SET,COMP=047,ACTION=SVCD,END Dump suppression example SLIP SET,COMP=806,ID=DUM1,ACTION=NOSYSA,END SL Parms ACTION={TRACE,IGNORE,SVCD,TRDUMP ALL DEBUG (debug a slip trap that is not working as expected) DEL(ETE) DISABLE (D) ENABLE (EN) ID= (1-4 char ID) IDGROUP=(IG) group of related slip traps IF (instrction fetch PER trap) JOBNAME= LPAMOD= (L) (trace an LPA module) (name,startingoffset,endingoffset) MATCHLIM= (or ML) MOD(ify),[ENABLE/DISABLE],ID=xxxx,END RANGE=(start,end) range of VS from PER trap REASON=n reason code SA (storage alteration PER trap) SAS (storage alteration by STURA instr. PER trap) SB1 (successful branch PER trap that matches specified range) SBT (successful branch PER trap that matches specified range) SDATA=(SQA,PSA,SUM)

DUMP processing/managing

D D,O (Options) D D,S (Status) D D,T (Title) D D,ER (Error data) DD ADD,DSN=nn DD DEL,DSN=nn DD CLEAR,DSN=[nn or ALL] CHNGDUMP (or CD, use D D,O to see opts) CD SET,SDUMP,MAXSPACE=2500M DUMP title='title' then R xx ASID=asidx,JOBNAME=

Global Resource Serialization

D GRS,ENQ,CONTENTION or D GRS,E,C d grs,res=(SYSZIXFP,*),HEX D GRS,RES=(*,*) D GRS,RNL=(Inclusion/Exclusion/All)

RMF info

F RMF,D ZZ list ZZ options F RMF,D [II/III] list monitor 2 or 3 options F RMF,D RS list RS options F RMF,D [ALL/ACTIVE] Modifying options F RMF,F ZZ,CPU MODIFY RMF,MODIFY III,STOP(4H),MINTIME(200) change NOSTOP to STOP after 4 hours w/200 second interval MODIFY RMF,START III,CYCLE(2000),MINTIME(300),STOP(12H) start monitor 3, sample every 2000 milliseconds, combine samples everry 300 seconds, stop after 12 hours ROUTE *ALL,MODIFY RMF,MODIFY III,CFDETAIL turn on tracing if problems with Coupling Facility (beware of overhead) MODIFY RMF,START BB,MEMBER(07),REPORT(REALTIME) F RMF,STOP [session-id] F RMF,START III start monitor 3

SMF data sets

D SMF [,O] add O to list options I SMF swItch SMF dataset recording

DFSMS, DFP, SDM, HSM, ISMF

ADRDSSU pattern delete //DUMMY DD DUMMY //SYSIN DD * DUMP DATASET(INCLUDE(SYSL.**.**.SB*)) - OUTDD(DUMMY) - DELETE F DFHSM,QUERY [ACT, AUTOPROGRESS, CONTROLDATASETS, CSALIMITS, WAITING] F DFHSM,QUERY [ABARS, STARTUP, SPACE, SETSYS F DFHSM,STOP ALL F DFHSM,HOLD ALL F DFHSM,RELEASE ALL F DFHSME,REPORT DAILY FUNCTION(RECOVER) V SMS,VOL(volser),[enable/disable] VARY SMS,PDSE,FREELATCH to release latch that V SMS,PDSE,ANALYSIS shows frozen TSO ALTER data.set.name NOMIGRATE HSM command syntax usually matches DFS counterparts i.e. RECOVER & HRECOVER HSENDCMD HOLD MIGRATION example of sending a command to HSM HSENDCMD can also be used from the TSO batch pgm //STEP1 EXEC PGM=IKJEFT01,REGION=512K //SYSPRINT DD SYSOUT=A //SYSTSPRT DD SYSOUT=A //SYSTSIN DD * HSENDCMD REPORT DAILY FUNCTION HSENDCMD REPORT VOLUME FUNCTION /* TSO HCANcel REQ ##### TSO HLIST TSO HLIST LEVEL('SYSTM.COPYCAT') DSNAME('d.s.n') BOTH (lists both mig and backup) SYSOUT(X) REPLACE DATE(yyyy/mm/dd) hlist level('HLQ.blah') bcds ODS('list.dataset') list backup archives and put in a dataset HRECOVER 'd.s.n' GENERATION(xxx) VERSION(xxx) TARGETVOLUME(volser) NEWNAME( ) REPLACE HMIGrate HRECAll [/ or dsn][VOLUME(xxxxxx) UNIT(xxxx)] HDELete HBACKds HALterds 'd.s.n' VERSIONS(nn) FREQUENCY(nnn) HQUERY Using HMIG and then HRECA w/vol and unit is a quick way to move a dataset
D A,ANT* display command with a wildcard D A,ANTMAIN list info about the SDM F ANTAS000,LISTSESS [addr/ALL] (XRC Concurrent Copy) F ANTAS001,RESTART applies only to XRC (remote copy) F ANTMAIN,REFRESHWS refresh the Working Set

DFSMSdfp, ISMF console commands

D SMS[,{ACTIVE|A}] [,CACHE] [,CFCACHE(structurename|*)] [,CFLS] [,CFVOL(volid)] [,{DRIVE|DRI}(name|ALL)[,STATUS ] |,DETAIL] [,{LIBRARY|LIB}(name|ALL)[,STATUS[,LISTDRI]] [ |,LISTDRI ] [ |,DETAIL ] [,MONDS(specmask|*)] [,OAM] [,OPTIONS] [,OSMC[,TASK(name)] [,SHCDS] [,SMSVSAM[,ALL] [,SMSVSAM,QUIESCE] ,{STORGRP|SG}{(storgrp|ALL)}[,LISTVOL ] |,DETAIL] [,{TRACE|T}] [,{VOLUME|VOL}(volume) With DFSMS tracing turned on you have a performance hit. IBM defaults it as as ON. But for the last 10 years, it hasn't proven much value and adds up to 45 "minutes" of CPU cycles a day. Turn it off when performance becomes an issue or set the parms to have it OFF by default. SETSMS TRACE(OFF) V SMS,PDSE,ANALYSIS,[,DSN=(dsn),VOLSER(..)]][,RETRIES(..)] if latch problem detected cancel, force or V SMS,PDSE,FREELATCH(latchaddr,ASID,tcbaddr),RETRIES(..)
F CATALOG,LIST F CATALOG,{ABEND{(id) } { {(yyyyyyyy)} { {(ALLOCATE)} { {(ANALYSIS)} { {(MODIFY) } {ALIASLEVEL(n) {ALLOCATE(catname)[,{NOISC | NOVLF}] {ALLOCATED[(vvvvvv)] {CATMAX(nnn) {CLOSE(catname) {{DUMPON | DUMPOFF} {ECSHR({(ADD,catname) }) |(REMOVE,catname) |(STATUS,catname) {ECSHR(AUTOADD) {ECSHR({CONNECT }) |DISCONNECT |STATUS {END(id)[,{REDRIVE | NOREDRIVE}] {ENTRY[(cname) | (mmmmmmmm)] {{ISC | NOISC}(catname) {LIST[(id) | (yyyyyyyy)] {LISTJ[jobname] {OPEN[(vvvvvv)] {REPORT {REPORT,CACHE[(catname)] {REPORT,DUMP {REPORT,PERFORMANCE[(RESET)] {RESTART {{ROTATE | NOROTATE} {{SYS%ON | SYS%OFF} {TASKMAX(nnn) {UNALLOCATE[catname] {VCLOSE(vvvvvv) {{VLF | NOVLF}(catname) {{VUNALLOCATE | NOVUNALLOCATE} {{WARNING | NOWARNING}

APPC and ASCH

D APPC,[TP/LU/SERVER/UR],All/Sum D APPC,{TP[ ,SUMMARY|SUM|S][,{ASID|A}=asid] } |,LIST|,L [,ASNAME=asname] |,ALL|,A [,DIR=IN|OUT] [,IT=sssss[.ttt]] [,LLUN=lluname] [,LTPN=ltpname] [,PNET=pnetid] [,PLUN=pluname] [,PTPN=ptpname] [,SCHED={schedname}] {*NONE* } [,STPN=stpname] [,USERID=userid] {UR[ ,SUMMARY|SUM|S][,URID=urid] } |,LIST|,L [,LUWID=luwid] |,ALL|,A [,PNET=pnetid] [,PLUN=pluname] [,LLUN=lluname] {SERVER[ ,SUMMARY|SUM|S][,{ASID|A}=asid] } |,LIST|,L [,ASNAME=asname] |,ALL|,A [,LLUN=lluname] [,STPN=stpname] {LU[ ,SUMMARY|SUM|S][,LLUN=lluname] } |,LIST|L [,PNET=pnetid] [,PLUN=pluname] |,ALL|A [,SCHED={schedname}] {*NONE* } D ASCH{[,SUMMARY|,SUM|,S ][,{ASID|A}=asid] } { |,LIST|,L [,{CLASS|C}=classname] } { |,ALL|,A [,LTPN=ltpname] } { [,QT=sssss[.ttt]] } { [,TPST=schedtype] } { [,USERID=userid]} } T APPC=xx T ASCH=xx

TRACK comnmand

TR {TS|JOBS|J|A}[,LIST|,L][,USERID=userid] STOPTR (or PT)
CANCEL U=*LOGON*,A=asid hung logon process cancellation FORCE U=*LOGON*,A=asid hung logon process cancellation

CONFIG Command

CONFIG(CF) CF ONLINE/OFFLINE display what is online or offline You will be prompted with IEE522D. Reply 'NONE' for no changes. Replying with a resource with perform the ONLINE or OFFLINE action. Also useful for displaying status of crypto resources. CF CHP(xx),{ONLINE/OFFLINE} CF CPU(9),ON (bring an additional processor online) In a big shop, if your D M=CPU shows you have some engines that are offline, you can bring them on to relieve a system that is under stress due to abnormally heavy processing.

Console commands for fun and profit

D C,K all the help you need for K commands CONTROL (K) K C,[A,I,CE],1-1000 Delete action messages K M,MLIM=9999 Modify limit K M,REF display info/settings K S,REF display/alter message settings ,CON={Y|N},SEG=nn,DEL={Y|N|R|RD|W} ,RNUM=nn,RTME=nnn,MFORM=(option,option...) ,L={cc|name} D CNGRP [,G=grpname ] D C [,A|ACTIVE] [,M|MASTER][SYS=nnnn] [,B|BACKLOG] [,ROUT=rc] [,L|LIST] [,MCONLY]

Display EMCS consoles

DISPLAY EMCS,INFO D EMCS,FULL D EMCS,SUMMARY,STatus=B(nn) D EMCS,SUMMARY,STatus=ERR D EMCS,ST=B

Aux. Storage Mgr.

D ASM ,[PLPA LOCAL PAGE=dsn/ALL COMMON PAGEDEL] PAGEADD PA PAGE=page.dataset.name PAGEDEL PD DELETE,{PAGE|SWAP}=dataset.name REPLACE,{PAGE|SWAP}=dataset.name DRAIN,{PAGE|SWAP}=dataset.name

Display/alter TSO parms from the console

D IKJTSO T IKJTSO[,parm]
D M=CHP(xx)|(xx-xx)|(list) =CONFIG(xx) parmlib member ={CPUID|CPU}(x)|(list) (CPUID, model etc) ={DEVICE|DEV}(xxx)|(xxx-xxx)|(list) =ESTOR(ddddM-ddddM)|(list)|(E=id) =HIGH =HSA =SIDE(id) ={STORAGE|STOR}(ddddM-ddddM)|(list)|(E=id) =(parm,parm...) D O,PREFIX short form of display OPDATA D PROG,APF,ALL D PROG,APF,ENTRY=nn D PROG,EXIT,EX=SYS.IEFU83,DIAG D PROG,EXIT,ALL D PROG,LPA,MOD=RX14INIT D LLA SETPROG APF,ADD,DSN=SYS1.DSSET.LOG,{SMS/VOLUME=nnnnnn} D PROG,LNKLST[,NAME=[lnklstname|CURRENT] [,NAMES [,USERS,[CURRENT|NOTCURRENT|NAME=lnklstname]] [,ASID=asid [,JOBNAME=jobname SETPROG LNKLST,{DEFINE,NAME=lnklstname[,COPYFROM=lnklstname][,NOCHECK] } {ADD,NAME=lnklstname,DSNAME=dsname[,VOLUME=volser][,ATBOTTOM]} [,ATTOP] } [,AFTER=dsname]} {DELETE,NAME=lnklstname,DSNAME=dsname {UNDEFINE,NAME=lnklstname {TEST,NAME=lnklstname,MODNAME=name {ACTIVATE,NAME=lnklstname {UPDATE,{JOB=jobname} {ASID=asid } {UNALLOCATE} {ALLOCATE SETPROG LPA,{ADD,[MODNAME=(modname...,modname) | MASK=mask} { ,DSNAME=[dsname | LNKLST] { [,FIXED] [,PAGEPROTPAGE] { {DELETE,MODNAME=(modname...,modname) { FORCE=YES [CURRENT | OLDEST] { {CSAMIN=(below,above) CSVLLAxx member entries (propagated via F LLA,UPDATE=xx) LIBRARIES(libname1,libname2,...[-LNKLST-],...) MEMBERS(mmbr1,mmbr2,..) LNKMEMBERS(mmbr1,mmbr2,...) REMOVE(libname1,libname2,...[-LNKLST-],...) GET_LIB_ENQ(YES|NO) PARMLIB(dsn) SUFFIX(xx) FREEZE(libname1,libname2,...[-LNKLST-],...) NOFREEZE(libname1,libname2,...[-LNKLST-],...) EXIT1(ON|OFF) EXIT2(ON|OFF) PARMSUFFIX(xx) D IOS,CONFIG([EDT/HSA/ALL]) D IOS,MIH {,TIME=ALL} D IOS,DCM dynamic channel mgt D IOS,FICON D LOGREC D PARMLIB D SYMBOLS D TRACE,COMP=ALL D U,,AS display auto-switchable tape devices DEVSERV (DS) commands DEVSERV P,104,1 DS QDASD,cuu,RCD,1 (list DASD subsystem ID) DS {PATHS|P},[/]devnum[,nn][,ONLINE|,ON ][,NOSYM|,NOS][,DUMP] {SMS|S } |,OFFLINE|,OFF [,L={a|cc|cca}] {QDASD | QD}[,? | [ [ [,ccuu [,1] | ,VOL=volser ] [ [,UCB] [,DCE][,SSSCB] [,DPCT] [ [,NOIO] | [,RDC] [,RCD] [,SNSS] ] ] ] | ,ccuu,nnn | [,ccuu,nnn] ,VOL=volser | ,MACH=[mmpp-sssss | XXXX-sssss] | ,SSID=[ssid | ALL] | ,TYPE=[type | ALL] ] [,ONLINE] [,OFFLINE] [,DEFINED] [,CHKFAIL] [,VALIDATE] [,TOTALCYL] {QTAPE | QT}[,? | [ [ [,ccuu [,1] ] [ [,UCB] [,DCE][ [,NOIO] | [,RDC] [,RCD] ] ] ] | ,ccuu,nnn | [,ccuu,nnn] ,LIB=libid | ALL | ,MACH=[mmpp-sssss | XXXX-sssss] | ,TYPE=[type | ALL] ] [,ONLINE] [,OFFLINE] [,DEFINED] CONSOLE DUMP for SQA shortage DUMP COMM=(text) R #,JOBNAME=(SYSBMAS),DSPNAME=('SYSBMAS'.SYSBMFDS),CONT R #,SDATA=(CSA,SQA,RGN,LSQA,TRT,SUM),STOR=(0,7FFFFFFF),END T SCH=xx (relates to SCHED00) T SCH=(xx,xx,L) (example with List parm) T GRSRNL=xx (this command is sysplex wide - caution)
SEnd 'text',USER=(userid[,userid]) [,LOGON] SE 'text',ALL SE 'text',SAVE SE LIST SE msgno,DELETE
SETIOS MIH[,class=mm:ss[,class=mm:ss]...] [,MOUNTMSG={YES|NO}] [,DEV={([/]devnum[,[/]devnum]...) },TIME=mm:ss,IOTIMING=mm:ss] {([/]lowdevnum-[/]highdevnum) } For a problem device sometimes it may be useful to SETIOS MIH,DEV=(cuu),TIMEOUT=20:00 SETLOGRC {LOGSTREAM|DATASET|IGNORE} SETSSI {ADD,{SUBNAME|SUB|S}=subname [,{CONSNAME|C}=consname] [,{INITRTN|I}=initrtn[,{INITPARM|P}=initparm]] {DEACTIVATE|DEACT},{SUBNAME|SUB|S}=subname {ACTIVATE|ACT},{SUBNAME|SUB|S}=subname ROUTE T=0,*ALL,D T Display time on all processors TRACE STATUS TRACE CT,[WTRSTART/WTRSTOP]=proc start/stop component trace for using procedure V PATH(cuu,cp),online+
Precede commands with subsystem prefix (ssp) ssp DISPLAY CONN(*) TYPE(CONN) ALL WHERE(UOWSTATE EQ UNRESOLVED) ssp DISPLAY THREAD(*) TYPE(ACTIVE)

Netview / Tivoli

NCCF REFRESH OPERS {TEST} BROWSE {NETLOGA / NETLOGB / NETLOGI / NETLOGS} HELP TSOUSER tsoid WRAP (toggles autowrap)

RACF Notes

HELP | H } [ command-name ] [ ALL ] [ FUNCTION ] [ OPERANDS [(operand...)] ] [ SYNTAX ] Resource list RL classname class entity ------- ------ TSO RL TSOPROC * [ALL] rl program imaspzap rlist program ** RL STARTED * STDATA RLIST UNIXMAP * ALL UNIXMAP [U0/G215] ALL use either to list UIDs or GIDs Search or SR (for RESOURCEs) SR CLASS(FACILITY) MASK(*) SR MASK(sarj) sr class(facility) mask(bpx) -Look ma, no asterisk! SR CLASS(FACILITY) MASK(*) SR USER(userid) Alter resource RALT resname OWNER(xyz) RALT resname UACC(access authg) List User LU userid [AT([node].userid ONLYAT([node].userid ) CICS DCE DFP KERB LANGUAGE LNOTES NDS NETVIEW NORACF OMVS OPERPARM OVM TSO WORKATTR ] Add User (and common parms) ADDUSER userid DFLTGRP(DEPTA) OWNER(DEPTA) NAME('Users name') PASSWORD(password) TSO(ACCTNUM(123456) PROC(PROC01)) NAME('NARAGHI, MORTEZA') PASSWORD(password) TSO(ACCTNUM(your acct standards) MSGCLASS(A) SIZE(4096) MAXSIZE(4096) UNIT(TSO) DEST(LOCAL) USERDATA(0000) PROC(logonproc)) BPX facility RDEFINE FACILITY BPX.SUPERUSER UACC(NONE) define it SETROPTS CLASSACT(FACILITY) refresh PERMIT BPX.SUPERUSER CLASS(FACILITY) ID(SYSPROG) ACCESS(READ) PERMIT BPX.SUPERUSER CLASS(FACILITY) ID(JOHN) DELETE remove a user from class ALTUSER SYSPROG OMVS(UID(7) HOME('/u/sysprog') PROGRAM('/bin/sh')) set directory List dataset LISTDSD DATASET('sysvend.srv') [AUTHUSER/GENERIC] LD DATASET('sysvend.srv') AUTHUSER LD DA('hlq.**) LD VOLUME(TST0D1) LD DA('profile') DSNS List Group LG * or grpname [DFP/OVM/OMVS/TME] TSOPROCs RDEL TSOPROC tsopgmt RDEFINE TSOPROC tsopgmt UACC(READ TSO SETR CLASSACT(TSOPROC) TSO SETR RACLIST(TSOPROC) REFRESH TSO PE TSOPGMT CLASS(TSOPROC) ID(CL0004) ACCESS(READ) Refresh SETR LIST SETROPTS SAUDIT LIST SETROPTS OPERAUDIT LIST TSO SETR REFRESH WHEN(PROGRAM) SETR RACLIST(TCICSTRN) REFRESH SETR RACLIST(FACILITY) REFRESH ralter program imaspzap addmem('sys1.miglib'/amprs1) ralter program imaspzap delmem('sys1.miglib'/msirs2) pe imaspzap access(execute) class(program) id(calvin) pe 'sysvend.ca1.*' access(update) class(dataset) id(opca) pe 'sysvend.ca1.*' access(alter) class(dataset) id(opca) Add group profile ag (endtemp) owner(calvin) supgroup(upgm) Alter group ALG groupid OMV(GID(123)) Add dataset profile ad ('endtemp.*') uacc(alter) owner(endtemp) generic delete dataset profile dd ('endtemp.*') gen Delete group profile dg (endtemp) Connect userid to group co userid group(xxxx) Dis-Connect userid to group remove userid group(xxxx) Reset password alu userid password(abc1xyz) resume noexpire altuser userid password(abc1xyz) res altuser userid dfltgrp(UPGM) Started tasks ADDUSER stcid DFLTGRP(W5DCFG1) OMVS(UID(10000001) HOME(/tmp) + PROGRAM(/bin/sh)) NAME('A started task ID') NOPASSWORD NOOIDCARD" RDEFINE STARTED tmsbkup OWNER(SYS1) adds the STCID to the STARTED class TSO SETR CLASSACT(TSOPROC) TSO SETR RACLIST(STARTED) REFRESH ralt started w5t2mvs.* stdata(user(w5tmvs)) ListGroup groupname [DFP OMVS OVM] Data Base RVARY LIST List database datasets RVARY [ ACTIVE |INACTIVE [NOCLASSACT(class-namelist| *) (NOTAPE) ] |DATASHARE | NODATASHARE |SWITCH ] [ DATASET(database-namelist | *) ] Restart RRSF RESTART (and one of the following) COMMAND CONNECTION [NODE(nodename | *)[SYSNAME (sysname | *)]] MESSAGE OUTPUT RACLINK RECEIVE SEND Stuff for WebSphere and USS command examples RDEFINE FACILITY IRR.DIGTCERT.LIST UACC(NONE) RDEFINE FACILITY IRR.DIGTCERT.LISTRING UACC(NONE) SETR CLASSACT(DIGTCERT) PERMIT IRR.DIGTCERT.LIST CLASS(FACILITY) ID(*) RACDCERT LIST RACDCERT LIST CERTAUTH racdcert listring(W5TKeyring) ID(W5THH) RACDCERT ID(GEORGEM) LIST RACDCERT ID(GEORGEM) LISTRING(*) Create SSL CA Certificate RACDCERT ADDRING(W5TKeyring) ID( W5TMGR ) RACDCERT CERTAUTH GENCERT SUBJECTSDN(CN('WAS CertAuth') C('US')) - HLABEL('WebSphere for z/OS CA') TRUST NOTAFTER(DATE(2010/09/21)) SUBJECTSDistinguishedName(CommonName - up to 64 chars Connect ID to a servers keyring RACDCERT ID(W5DAIVT) CONNECT (RING('description') USAGE(CERTAUTH))" RACDCERT ALTER ID(W5TMGR) NOTAFTER(DATE(2010-12-31)) Delete a certificate (you have to once they expire) RACDCERT ID(W5TMGR) DELETE(LABEL('W5TMGR')) Recreate it RACDCERT ID (W5TMGR) GENCERT SUBJECTSDN(CN('WebSphere Cell_T CertAuth') - O('IBM')) WITHLABEL('W5TMGR') SIGNWITH(CERTAUTH LABEL('WebSphere Cell_T CertAuth')) Protecting FTP example rdefine FACILITY FTP.0015.CWD.* audit(all(READ)) uacc(NONE) permit FTP.0015.CWD.* class(FACILITY) id(PROD01) access(READ) when(TERMINAL(C0A83211)) RACF MVS resource classes and control use APPCLU Verifying the identity of partner logical units during VTAM session establishment. APPCPORT Which user IDs can access the system from a given LU (APPC port of entry). Also, conditional access to resources for users entering the system from a given LU. APPCSERV Whether a program being run by a user can act as a server for a specific APPC transaction program (TP). APPCSI Access to APPC side information files. APPCTP Use of APPC transaction programs. APPL Access to applications. CONSOLE Access to MCS consoles. Also, conditional access to other resources for commands originating from an MCS console. CSFKEYS Use of Integrated Cryptographics Service Facility/MVS (ICSF/MVS) cryptographic keys. See also the GCSFKEYS class. CSFSERV Use of ICSF/MVS cryptographic services. DASDVOL DASD volumes. See also the GDASDVOL class. DBNFORM Reserved for future IBM use DEVICES Used by MVS allocation to control who can allocate devices such as: ° Unit record devices (printers and punches) (allocated only by PSF, JES2, or JES3) ° Graphics devices (allocated by VTAM) ° Teleprocessing (TP) or communications devices allocated only by VTAM. DLFCLASS The data lookaside facility. DIRAUTH Setting logging options for RACROUTE REQUEST=DIRAUTH requests. Also, if the DIRAUTH class is active, security label authorization checking is done when a user receives a message sent through the TPUT macro or the TSO SEND, or LISTBC commands. Profiles are not allowed in this class. DSNR Access to DB2 subsystems. FACILITY Miscellaneous uses. Profiles are defined in this class so that resource managers (typically program products or components of MVS or VM) can check a user's access to the profiles when the users take some action. Examples are catalog operations (DFP) and use of the vector facility (an MVS component). RACF does not document all of the resources used in the FACILITY class by other products. FIELD Fields in RACF profiles (field-level access checking). GCSFKEYS Resource group class for CSFKEYS class. GDASDVOL Resource group class for DASDVOL class. GLOBAL Global access checking table entry. GMBR Member class for GLOBAL class (not for use on RACF commands). GSDSF Resource group class for SDSF class. GTERMINL Resource group class for TERMINAL class. IBMOPC Controlling access to OPC/ESA subsystems. JESINPUT Conditional access support for commands or jobs entered into the system through a JES input device. JESJOBS Controlling the submission and cancellation of jobs by job name. JESSPOOL Controlling access to job data sets on the JES spool (that is, SYSIN and SYSOUT data sets). LOGSTRM Reserved for MVS/ESA. NODES Controlling the following on MVS systems: ° Whether jobs are allowed to enter the system from other nodes ° Whether jobs that enter the system from other nodes have to pass user identification and password verification checks NODMBR Member class for NODES class (not for use on RACF commands). OPERCMDS Controlling who can issue operator commands (for example, JES and MVS, and operator commands). (2) PMBR Member class for PROGRAM class (not for use on RACF commands). PROGRAM Controlled programs (load modules). PROPCNTL Controlling if user ID propagation can occur, and if so, for which user IDs (such as the CICS or IMS main task user ID), user ID propagation is not to occur. PSFMPL Used by PSF to perform security functions for printing, i.e. separator page labeling, data page labeling & enforcement of user printable area. PTKTDATA PassTicket Key Class enables the security administrator to associate a RACF Secured Signon secret key with a particular mainframe application that uses RACF for user authentication. Examples of such applications are IMS, CICS, TSO, VM, APPC, and MVS Batch. RACGLIST Class of profiles that hold the results of RACROUTE REQUEST=LIST,GLOBAL=YES or a SETROPTS RACLIST operation. RACFVARS RACF variables. In this class, profile names, which start with & (ampersand), act as RACF variables that can be specified in profile names in other RACF general resource classes. RRSFDATA Used to control RACF remote sharing facility functions. RVARSMBR Member class for RACFVARS (not for use on RACF commands). SCDMBR Member class for SECDATA class (not for use on RACF commands). SDSF Controls the use of authorized commands in SDSF. See also GSDSF class. SECDATA Security classification of users & data (security levels and security categories). SECLABEL If security labels are used, and, if so, their definitions. SMESSAGE Controls which users a user can send messages (TSO only). STARTED Used in preference to the existing started procedures table to assign an identity during the processing of an MVS START command. SURROGAT If surrogate submission is allowed, and if allowed, which user IDs can act as surrogates. TAPEVOL Tape volumes. TEMPDSN Who can access residual temporary data sets. Cannot create profiles in this class. TERMINAL Terminals (TSO or VM). See also GTERMINL class. VTAMAPPL Controls who can open ACBs from non-APF authorized programs. WRITER Controls the use of JES writers. OpenEdition MVS classes DIRACC Controls auditing (via SETR LOGOPTIONS) for access checks for read/write access to HFS directories. Profiles not allowed in this class. DIRSRCH Controls auditing (via SETR LOGOPTIONS) of HFS directory searches. Profiles not allowed in this class. FSOBJ Controls auditing (via SETR LOGOPTIONS) for all access checks for HFS objects except directory searches. Controls auditing (via SETR AUDIT) of creation and deletion of HFS objects. Profiles are not allowed in this class. FSSEC Controls auditing (via SETR LOGOPTIONS) for changes to the security data (FSP) for HFS objects. Profiles not allowed in this class. IPCOBJ Controls auditing and logging of IPC security checks. PROCACT Controls auditing (via SETR LOGOPTIONS) of functions that look at data from, or affect the processing of, USS MVS processes. Profiles not allowed in this class. PROCESS Controls auditing (via SETR LOGOPTIONS) of changes to UIDs & GIDs of OpenEdition MVS processes. Controls auditing (via SETROPTS AUDIT) of dubbing and undubbing of OpenEdition MVS processes. Profiles not allowed in this class.

VTAM / Communcation Server

D NET, ADJCLUST[,NETID=net_id][SCOPE=ALL/ONLY] ADJCP,ID= ADJSSCPS APPLS BFRUSE CDRMS CDRSCS CLSTRS CNOS,ID=appcid? CONVID,ID= COS ID=puname NETID= CPCP (CP - CP session status) CSM (comm. stor mgr) OWNERID=ownerid|ALL DIRECTRY,ID=resname SCOPE=ALL|ONLY|NSEARCH DISK,ID=ncpname DLURS (dependant LU servers) EXIT GRAFFIN (generic resource affinity) GROUPS ID LINES ID= SCOPE=ACT|ACTONLY|ACTSESS| ALL|CONCT|INACT|PENDING|RESET LMTBL,TYPE=luname/logmode ID=applname LUNAME=luname LUGROUPS SCOPE=ONLY|ALL ID= GROUP= MAJNODES MODELS PATHS,ID=switched_pu_name PATHTAB PENDING RSCLIST,ID=mask or * RTPS (HPR pipe info) SRCHINFO LIST=SUMMARY, TYPE=ALL/APPN/SUBAREA FROMCP=cpname,TOCP=,FROMSSCP=,TOSSCP=sscpname SESSIONS[,LIST=ALL] STATIONS STATS,TYPE=VTAM/COMPRESS/CFS STATS,TYPE=VTAM,MAX=* STORUSE APPL=,POOL=/SUMMARY,JOBNAME=,DSPNAME=, POOLTYPE=ALL/CSA/PRIVATE LIST=ALL/INUSE TABLE,ID=tablename SCOPE=ALL/ONLY TERMS TGPS[ID=] (TGT profile info) TNSTAT TOPO LIST=SUMMARY/ALL ID=cpname APPNCOS=cosname TRACES, MODIFY TRACE, START TRACE TRL (transport resource list element) TSOUSER,ID=user_id USERVAR VTAMOPTS VTAMSTOR ,MAX=* to extend def. entries listed ,MAX=DSPLYDEF nnn Changing a mode tab dynamically F VTAM,TABLE,NEW=modeent,OPT=LOAD V NET,ACT,ID=xxxxxx,SCOPE=ALL V NET,INACT,ID=LUxxxxxx V NET,ACT,ID=PUXXXX,UPDATE=ALL IBM CS Bookshelf

Workload Mgr.

D WLM,SYSTEMS DISPLAY XCF,COUPLE,TYPE=WLM D WLM,APPLENV=* DYNAPPL=* RESOURCE=* V WLM,POLICY=policyname[,REFRESH] V WLM,APPLENV=envname,RESUME F WLM,[MODE={GOAL|COMPAT}] ,[RESOURCE=resourcename,{ON|OFF|RESET}] RESET jobname,A=asid,SRVCLASS=xxxxxxxx RESET jobname,A=asid,QUIESCE (put job to sleep) RESET jobname,A=asid,RESUME (awake sleeping job)

XCF commands (sysplex stuff, Coupling Facility)

Also see OMVS for more Sysplex related commands D CF D XCF, PATHIN|PI [,{DEVICE|DEV}={([/]indevnum[,[/]indevnum...])|ALL}] [,{STRNAME|STRNM}={(strname[,strname]...)|ALL}] [,{SYSNAME|SYSNM}=(sysname[,sysname]...)] [,{STATUS|STAT}=([STARTING][,RESTARTING][,WORKING] [,STOPPING][,STOPFAILED][,INOPERATIVE] [,LINKING][,QUIESCING]) ] PATHOUT|PO [,{DEVICE|DEV={([/]outdevnum[,[/]outdevnum...])|ALL}] [,{STRNAME|STRNM}={(strname[,strname]...)|ALL}] [,CLASS={(classname[,classname]...)|ALL}] [,{SYSNAME|SYSNM}=(sysname[,sysname]...)] [,{STATUS|STAT}=([STARTING][,RESTARTING][,WORKING] [,STOPPING][,STOPFAILED][,INOPERATIVE] [,LINKING][,QUIESCING])] [,REBUILDING][,QUIESCED])] LOCALMSG|LM[,CLASS={(classname[,classname]...)|ALL}] GROUP|GRP,groupname[,membername|ALL] SYSPLEX|S[,systemname|ALL] COUPLE|CPL[,TYPE={(name[,name...])|ALL}] CLASSDEF|CD [,CLASS={classname|(classname[,classname]...)|ALL}] |,{GROUP|G}=groupname STRUCTURE|STR [,{STRNAME|STRNM}={(strname[,strname]...)|ALL}] [,{CONNAME|CONNM}={(conname[,conname]...)|ALL}] [,{STATUS|STAT}=([ALLOCATED][,NOTALLOCATED] [,POLICYCHANGE][,DEALLOCPENDING] [,LARGERCFRMDS][,REBUILD][,STRDUMP] [,ALTER][,FPCONN][,NOCONN])] CF[,{CFNAME|CFNM}={(cfname[,cfname]...)|ALL}] POLICY|POL[,TYPE={(name[,name]...)|ALL}] PRSMPOLICY|PRSMPOL ARMSTATUS|ARMS [,{RESTARTGRP|RG}=rgname] [,{ELEMENT|EL}=elname|{JOBNAME|JOB}=jobname] [,INITSYS=initsys] [,CURRSYS=currsys] [,STATE=([{STARTING|START}][,{AVAILABLE|AVAIL}][,FAILED] [,{RESTARTING|RESTART}][,{RECOVERING|RECOVER}])] [,DETAIL] SETXCF START, CLASSDEF,CLASS=classname [,CLASSLEN=classlength] [,MAXMSG=maxmsgbuffers][,GROUP=(groupname[,groupname]...)] PATHIN,{DEVICE=([/]indevnum[,[/]indevnum]...)STRNAME=(strname[,strname]...) [,MAXMSG=maxmsgbuffers][,RETRY=retrylimit] PATHOUT,{DEVICE=([/]outdevnum[,[/]outdevnum]...) STRNAME=(strname[,strname]...)[,MAXMSG=maxmsgbuffers] [,RETRY=retrylimit][,CLASS=classname] POLICY,TYPE=name,POLNAME=polname } activate a new CF Resource Mgr REBUILD,{POPULATECF=cfname} DUPLEX,STRNAME=(strname[,strname]...) CFNAME=(cfname[,cfname]...)[,LOCATION={NORMAL|OTHER}] [,LESSCONN={TERMINATE|CONTINUE}] ALTER,STRNAME=strname,SIZE=size SETXCF STOP, PATHIN,{DEVICE=([/]indevnum[,[/]indevnum]...) {STRNAME=(strname[,strname]...)[,UNCOND=NO|YES] PATHOUT,{DEVICE=([/]outdevnum[,[/]outdevnum]...) {STRNAME=(strname[,strname]...)[,UNCOND=NO|YES] CLASSDEF,CLASS=classname POLICY,TYPE=name REBUILD,{POPULATECF=cfname}{DUPLEX,}{STRNAME=(strname[,strname]...) {,KEEP=NEW|OLD}{CFNAME=(cfname[,cfname]...) ALTER,STRNAME=strname SETXCF FORCE,CON delete a failing persistant connector when the CF is unavailable SETXCF FORCE,STR delete a persistant structure so a new one can be alloc and used SETXCF FORCE, STRUCTURE,STRNAME=(strname[,strname]...) CONNECTION,STRNAME=strname,CONNAME={(conname[,conname]...)|ALL} STRDUMP,STRNAME=strname[,STRDUMPID=strdumpid] STRDUMPSERIAL,STRNAME=strname[,STRDUMPID=strdumpid] Change XCF parameters SETXCF MODIFY, PATHIN,{DEVICE=([/]indevnum[,[/]indevnum]...) STRNAME=(strname[,strname]...) [,MAXMSG=maxmsgbuffers] [,RETRY=retrylimit] PATHOUT,{DEVICE=([/]outdevnum[,[/]outdevnum]...) {STRNAME=(strname[,strname]...)[,CLASS=classname][,MAXMSG=maxmsgbuffers] [,RETRY=retrylimit] LOCALMSG,MAXMSG=maxmsgbuffers [,CLASS=class-name] CLASSDEF,CLASS=classname [,CLASSLEN=classlength] [,MAXMSG=defaultmaxmsgbuffers][,ADDGROUP=(groupname[,groupname]...)] [,DELGROUP=(groupname[,groupname]...)] SETXCF PRSMPOLICY,{DEACTIVATE|ACTIVATE=memname V XCF,systemname,{OFFLINE|OFF}[,RETAIN={YES|NO}][,FORCE] vary out of plex

Miscellaneous

F SYSLOGWR.SYSLOGWR,C=8,J=STC06749 syslog writer to spool contents to class 8

SDSF

Commands ACTION (ALL,OFF,routecodelist) ARRange columnname [After,Before,FIRST,LAST] columnto SET DELAY n (to set time for command return) TRACE (see docs for settings) RSYS sysid (limit WTORS to sysid) SYSID xxxx change log view to another LPAR INPUT ON may show more when viewing jeslog for jobs on other LPARs

SMF Notes and Records

Record#(subtype) 0 , 90 IPL and SMF 2 Dump Header 3 Dump Trailer 4 , 34 Program Records - Step term. 5 , 35 Job records - Job term. 6 JES2 Output writer / External writer / PSF 7 SMF lost data 8 I/O Config 9 Device Vary Online 10 Allocation recovery 11 Device Vary Offline 14 INPUT or RDBACK ds activity(non-VSAM) 15 OUTPUT UPDAT INOUT or OUTIN(non-VSAM) 16 DFSORT 17 Non-VSAM scratch 18 Rename Non-VSAM 19 Direct Access Volume (SMF SWITCH for online shared) 20 Job Initiation and TSO/E logon 14, 15, 17 , 18, 64 Dataset records 21 Error Status by Volume 22 Configuration 23 SMF Status 24 JES spool offload 26 JOB purge 28 NPM Stats 30(1) JOB init and much more 30(4) Jobstep term 30(5) Job term 32 TSO/E Session 33 APPC/MVS 34 TSO/E Step Term 35 TSO/E Logoff 36 ICF 37 Netview Hardware Monitor 39 Netview NLDM Response Time 40 Dynamic DD processing 41 DIV objects and VLF 42(6) DFSMS Stat & Config (includes HFS) 42(16) SMSVSAM dataset coupling fac. stat. monitoring 43 JES2 Start 45 JES2 Withdrawal 47 JES2 SIGNON/Start Line (BSC only) 48 JES2 SIGNOFF/Stop Line (BSC only) 49 JES2 Integrity (BSC only) 50 ACF/VTAM Tuning Statistics 52 JES2 LOGON/Start Line (SNA only) 53 JES2 LOGOFF/Stop Line (SNA only) 54 JES2 Integrity (SNA only) 55 JES2 Network SIGNON 56 JES2 Network Integrity 57 JES2 Network SYSOUT Transmission 58 JES2 Network SIGNOFF 59 MVS/BDT File-to-File Transmission 60 - 69 VSAM records 60 VSAM Volume Data Set Updated 61 Integrated Catalog Facility Define Activity 62 VSAM Component or Cluster Opened 63 VSAM Catalog Entry Defined 64 VSAM Component or Cluster Status 65 Integrated Catalog Facility Delete Activity 66 Integrated Catalog Facility Alter Activity 67 VSAM Catalog Entry Delete 68 VSAM Catalog Entry Renamed 69 VSAM Data Space Defined, Extended, or Deleted 70 - 79 RMF record support 70 CPU Activity 70(2) Crypto 71 Paging Activity 72 Workload Activity (includes subsys OMVS) 73 Channel Path Activity 74(1) Device Activity 74(2) XCF Activity 74(3) OMVS Kernel Activity 74(4) Coupling Facility Activity 74(5) Cache Subsystem Device Activity 75 Page Swap 76 Trace 77 Enqueue 78 Monitor I 79 Monitor II reports 80 RACF 81 RACF Init. 82 CUSP (Cryptographic Unit Support Pgm) and ICSF 83 RACF data set audit 88 Coupling Facility / System Logger 89 Product usage and tracking records 90 System status 90(29) LNKLST ACTIVATE 90(30) RESET command processing 92 USS File System activity including HFS 99 SRM 100 DB2 Stats & CICS 101 DB2 Accounting & CICS/DB2 accounting record 102 DB2 Performance 103(1) SNMP MIB Web server config 103(2) SNMP MIB Web server performance 110 CICS/ESA monitor facility 115-116 MQ Series 118 TCP/IP Stats 119 TCP/IP FTP stats 120 Websphere server & container recs 136 DASD allocation 137 DASD extend 138 DASD release 139 DASD scratch 140 DASD rename 170 Fileaid 201 SRS 241 DFHSM 14,15 and 64 contain Hiperbatch also Note: IBM recommends record type 30 rather than record types 4, 5, 20, 34, 35, and 40. Use of these records may cause missing key workload indicators.

SMPE NOTES

One of the best ways to find info about the zones is with a batch list job. Most options support an argument or limiting parameter i.e. (ARG*) //SMPCNTL DD * SET BDY(zone) . LIST DDDEF . APAR ASSEM SOURCEID(SMC*) EXSRCID(PUT0003) BYPASS - list entries processed w/BYPASS option BACKUP - list backup entries ERROR FMID FORFMID FUNCTION HOLDDATA - use HOLDERROR HOLDSYSTEM HOLDUSER to limit output MOD MCS NOACCEPT - not accepted but applied or compared across zones NOAPPLY NOSUP PTFS RESTORE SUP SYSMODS TARGETZONE USERMODS XREF
Global zone only list items FEATURE FMIDSET GLOBALZONE OPTIONS PRODUCT UTILITY ZONESET
SET BDY(TGT1) /* set to target zone */. LIST SYSMOD /* list SYSMODs */ APAR /* that are APARs */ FUNCTION /* or functions */ SUP /* and are superseded */. LIST HOLDDATA. SET BDY(TGT1) /* Set to test zone TGT1. */. LIST SYSMODS /* List the SYSMODs that */ /* have been applied to */ NOAPPLY(TGT2) /* TGT1 but not to */ /* production zone TGT2. */. SET BDY(GLOBAL) /* Set to global zone. */. REJECT S(MYMOD01) /* Reject this SYSMOD */ BYPASS( /* even though it was */ APPCHK) /* applied. Now reapply it! */. SET BDY(TLIB) LIST NOACCEPT(DLIB) List whatever is applied in target but not accepted. Other LISTs APAR ASSEM SOURCEID(SMC*) EXSRCID(PUT0003) BYPASS - LIST ENTRIES PROCESSED W/BYPASS OPTION BACKUP - LIST ALL BACKUP ENTRIES ERROR FEATURE FMID FMIDSET OR FMIDSET(ASD) - ZONE MUST BE GLOBAL FORFMID (-fmid-) FUNCTIONS GLOBALZONE HOLDDATA - USE HOLDERROR HOLDSYSTEM HOLDUSER TO MINIT MOD MCS NOACCEPT - NON ACCEPTED NOAPPLY NOSUP OPTIONS - BDY GLOBAL PRODUCT PTFS RESTORE SUP TARGETZONE USERMODS UTILITY - fromn global XREF XZLMODP ZONESET - from global
XZLMODP - cross-zone load mod
SET BDY(GLOBAL) . REPORT ERRSYSMODS ZONES(myzones).
RECEIVE SYSMODS BYPASS(FMID) RFPREFIX(SMPE.HOST.DKZB231).
With USS and HFS there is the chance you will be downloading packed maintenance from the internet to an HFS file. Welcome to SMP/E and XML. Here's a job setup to unload our popular MCS data. //UNZIP EXEC PGM=GIMUNZIP,PARM='HASH=NO' //SYSUT3 DD UNIT=SYSALLDA,SPACE=(CYL,(50,10)) //SYSUT4 DD UNIT=SYSALLDA,SPACE=(CYL,(25,5)) //SMPWKDIR DD UNIT=SYSALLDA,SPACE=(CYL,(50,10)) //SMPOUT DD SYSOUT=* //SYSPRINT DD SYSOUT=* //SMPDIR DD PATH='/U00000942', // PATHDISP=KEEP //SYSIN DD DATA,DLM=$$ <GIMUNZIP> <ARCHDEF name="SMPPTFIN/S0004.SHOPZ.S5296324.SMPMCS.pax.Z" volume="SFTDA1" newname="SYSTM.WAS5.S5296324.SMPMCS"> </ARCHDEF> <ARCHDEF name="SMPHOLD/S0005.SHOPZ.S5296324.SMPHOLD.pax.Z" volume="SFTDA2" newname="SYSTM.WAS5.S5296324.SMPHOLD"> </ARCHDEF> </GIMUNZIP> $$ //

System Environmental Variables

System variables in CLIST/REXX processing: o &SYSNAME - Returns the system name from SYSNAME of SYS1.PARMLIB(IEASYSxx) o &SYSMVS - Returns the level of the base control program, like: HBB5520 o &SYSSMFID - Returns smf-id from SYS1.PARMLIB(SMFPRMxx). o &SYSJES - Returns the name and the level of JES o &SYSNODE - Returns the network node name: o &SYSDFP - Returns the level of MVS/Data Facility Product (MVS/DFP), DFSMS/MVS version and release. o &SYSSMS - Returns a value to show if DFSMS/MVS is available o &SYSCLONE - Returns a 1- to 2-byte shorthand notation for the system name obtained from SYS1.PARMLIB(IEASYMxx) SYSCLONE operand. o &SYSPLEX - Returns the MVS sysplex name obtained from SYS1.PARMLIB(COUPLExx) or SYS1.PARMLIB(LOADxx) o &SYSSYMDEF - Returns a symbolic name obtained from SYS1.PARMLIB(IEASYMxx) SYMDEF statement. o &SYSAPPCLU - Returns the APPC/MVS logical unit (LU) name. o &SYSSECLAB - Returns SECLABEL token. o &SYSTERMID - Returns the terminal ID in a foreground TSO/E session. o &SYSOPSYS - Returns name, version -, release -, modification level and FMID of OS/390 (via APAR OW17844) o &SYS4DATE - Returns the date in MM/DD/YYY format. o &SYS4JDATE - Returns the date in YYYY.DD format. o &SYS4SDATE - Returns the date in YYYY/MM/DD format.

SVC Notes

Type 1 2 3 4 6 SVC issue? N Y Y Y N Home Nuc Nuc LPA* LPA* Nuc Locking Local Maybe Maybe Maybe N Intrpt Enble? Y Y Y Y N --------------------------------------------------- *or PLPA 0 EXCP 1 WAIT 2 POST 6 LINK 7 XCTL 8 LOAD 9 DELETE 11 TIME 13 OPEN 16 IOSDNPPL (New (31) Purge Parm List) (MODGEN) 19 OPEN 20 CLOSE 22 OPENJ 23 TCLOSE 27 OBTAIN DSCB (MODGEN) 31 FEOV 32 REALLOC(MODGEN) DADSM ALLOCATE 33 IOHALT(MODGEN) 34 QEDIT IEEXSA(MODGEN) 35 WTO 36 WTL 38 ENQ 41 IDENTIFY 44 TASK MGR 48 DEQ 55 EOV 56 ENQ RESERVE 60 ESTAE 78 DADSM LSPACE 83 SMFWTM 84 GRAPHICS macro 95 TSEVENT(MODGEN) (SRM related) 99 DYANAMIC ALLOC 102 AQCTL (may be TCAM related 104 TOPCTL (may be TCAM related 105 IMGLIB(MODGEN) 107 MODESET macro - can change both PSW key & prob state bits 113 PGANY/PGFIX/PGFREE/PGLOAD/PGOUT 114 EXCPVR 119 TESTAUTH 120 GETMAIN/FREEMAIN 124 VTAM 130 RACHECK 131 RACINIT 132 RACLIST 133 RACDEF 143 GENKEY, RETKEY, CIPHER, or EMK macro 144 z/OS UNIX PTRACE debugger 146 BPESVC macro Opcodes OA issue an SVC APF notes to be authorized a program must be linkedited with "AC=1" parm loaded from authorized lib, APF'ed or PROG00 (mem of S1.PARMLIB)

TCP/IP / Communcation Server(IBM)

From TSO TSO HOMETEST TSO NETSTAT ? TSO PING ip.address.xx.xx MVS commands *lower case in all MVS commands denotes optional spelling or variable parms D TCPIP D TCPIP,,HE HELP Netstat commands D TCPIP,,N, [ALLC/CONFIG/COnn/DEvlinks/HOme/IDS/PORTList/ROUTe/SOCKets/STATS/VCRT/VDPT/VIPADCFG] D TCPIP,,N,SOCK,PORT=45600 Other commands D TCPIP,,OMPR,OSPF,LIST,ALL omproute info D TCPIP,,OMPR,OSPF,[NeighBoR/ROUTERS/STATS D TCPIP,,OMPR,RTTABLE D TCPIP,,STOR[,MOD=mod_name] D TCPIP,,SYSPLEX,VIPADYN D TCPIP,,T,CLID[DET/SUM] telnet clientID list VARY TCPIP,,CMD=DRop,CONNection=028B8 V TCPIP,,STArt,devname|interfacename V TCPIP,,STOp,devname|interfacename V TCPIP,,Telnet,[ACT|INACT],ALL|luname V TCPIP,,Telnet,QUIesce,POrt=[ALL|num] V TCPIP,,Telnet,RESUME,POrt=[ALL|num] V TCPIP,,Telnet,STOp,POrt=[ALL|num] V TCPIP,,O,obey.file.dsn(member) change configuration V TCPIP,TCP3270,O,obey.file.dsn(member) new format for z/OS 1.8 TCP/IP commands used from OMVS shell, DOS(Windows), UNIX or TSO command window (follow with " /?" for help) ping, netstat, ipconfig, ftp, hostname, net, pathping, route, telnet, tracert ipconfig -list ipconfig net -lists all the net command options netstat -a (all) -p TCP/UDP (proto) -r (routing tbl) -s (stats) nslookup -name server lookup winipcfg -list windows IP config tracert -tracerout User-FTP commands: ? acct append ascii big5 binary cd cdup close debug delete delimit dir ebcdic euckanji get hangeul help ibmkanji jis78kj jis83kj ksc5601 lcd lmkdir locsite locstat lpwd ls mdelete mget mkdir mode mput noop open pass put pwd quit quote rename restart rmdir schinese sendport sendsite site sjiskanji status struct sunique system tchinese tso type user Specify a command by any unambiguous prefix Controlling allocation when getting or putting QUOTE SITE RECFM=FB LRECL=80 BLOCKSIZE=3120 (if not issuing commands at the mainframe) or LOCSITE RECFM=FB LRECL=80 BLOCKSIZE=3120 (if issuing commands at the mainframe) TSO/OMVS NETSTAT commands (be careful of ones with large output) Netstat ALL/-A Netstat ALLConn/-a Netstat ARp/-R Netstat BYTEinfo/-b Netstat CACHinfo/-C Netstat CLients/-e Netstat CONFIG/-f Netstat COnn/-c Netstat DEvlinks/-d Netstat DRop/-D Netstat Gate/-g Netstat HElp/-? Netstat HOme/-h Netstat IDS/-k Netstat ND/-n Netstat PORTList/-o Netstat ROUTe/-r Netstat SLAP/-j Netstat SOCKets/-s Netstat SRCIP/-J Netstat STATS/-S Netstat TELnet/-t Netstat Up/-u Netstat VCRT/-V Netstat VDPT/-O Netstat VIPADCFG/-F Netstat VIPADyn/-v

TSO & ISPF Notes

xmit jesnode.userid ds(dataset.name) seq sysout(x) From 3.4 dataset list using XMITIP to mail a file xmitip emailid@comapny.com nomsg file / subject 'subject' xmitip emailid@company.com nomsg file 'data.set.name' ISRDDN useful LISTA type of utility Also has other parms ONLY string Only show those with string in ddname EXCLUDE string Opposite of ONLY COUNT show number of members in PDSs ENQ list enqueues CON list contentions ISRFIND locate loadmods in link or lpa lists ISFACP SDSF parm facility PARMLIB UPDATE(xx) TASID - A neat tool from IBM RETP retrieve commands panel RETF retrieve oldest command EDSET change edit panel options

Computer Associates Products

CA11

(assumes CA11 is the default subsystem name) CA11 DIS CONF display config STA{,ALL} status ACT activity JOBname{,=jjjjjjjj} CA11 HELP command help CA11 SUSPEND - suspend activity CA11 RESUME - resume ABTERM - use to clean up job or task that is failing in CA-11 step ABTERM JOBNAME=nnnnnnn,CPUID=nnnn,CMT CPUFAIL CPUID=xxxx,{ALL/CMT/JEHF} - clean up after a CPU failure SET - change DBAS diag flags SHUTDOWN - shutdown JEHF and/or MANT tasks START - start JEHF or MANT tasks

Common Tape System - CTS

F CTS,STATUS

DCOM

F DCOM,STATUS

ENF

(assumes ENF is also subsystem name) ENF REFRESH(module1,module2,etc) ENF STATUS STATUS,CCIR ENF DISplay,RESOURCE ENF EVENT S ENF,,,REINIT

ACF2

F ACF2,RELOAD(SYS1) (equiv to RACF SETROPTS) SAF - TRACING with ACF2 ST MOD,ID=TRACE001,TRACE=ALL* Start SAFTRACE of MVS RACROUTE ST SET,ID=DLFTRACE,TYPE=SAFP* ST D,ID=DLFTRACE *MOD and SET commands use the same parms as sliptrap.
ACF2 type 230 SMF recs
SMFAR 230-R Access Rule data base modification journal record SMFCR 230-T TSO command trace record SMFDR 230-D Data set access event journal recor SMFER 230-E Infostorage modification journal re SMFFLT 230-D Flat file records for CA-EARL proce SMFGF 230-D Flat file records for CA-ACF2 GRO 230-P processing 230-V SMFJR 230-L Logonid data base modification jour SMFPR 230-P System entry violation journal reco SMFTR 230-J Restricted Logonid trace record SMFVR 230-V Generalized resource event journal SMFNR 0,7 CA-ACF2 environment record 230-A 230-G
ACFSVC Macro
The ACFSVC macro is used to invoke the CA-ACF2 SVCs. The SVC invoked when TYPE=A is specified in the ACFSVC macro manages all CA-ACF2 database requests, performs all system entry validation, performs all TSO command limiting, generates any SMF records, and performs resourc rule processing. The parameter lists that it uses to process inf. are described in Chapter 5, "Parameter Lists and Mapping Macros." The TYPE=S SVC performs data set, volume, and program validations, & generates SMF records. The TYPE=S SVC uses the ACDSV parm list to pass inf. Use of this SVC for user calls and external calls is described in Chapter 6, "Special Usage Considerations." Type A DB requests Entry validation TSO cmd limiting Resource & rule processing Type S Data Set Volume Program Commands for USERIDS (LIDs) CHANGE DELETE INSERT add record LIST SYNCH sync ACF2 DB with SYS1.BRODCAST Commands for Access Rules COMPILE, DECOMP, TEST, STORE, DELETE, RECKEY Others ACCESS CHKCERT CONNECT used to connect certs with keyrings END or QUIT used to get out of and ACF2 or TEST session EXPORT extract a digital cert and put in MVS dataset GENCert create digital cert GENReq send a request for a cert from a cert authority HELP the most useful command there is REMOVE opposite of CONNECT command SET or T sets scope of session or of commands issued after the SET command SHOW list info about your running ACF2 environment SN Console Commands F ACF2, modify BACKUP Initiate backup of CA-ACF2 databases CACHE(option) Activate and apply changes to cache facility Options: DEMAND|NODEMAND HELP MONITOR|NOMONITOR START STATUS STOP SYNCRESET CPF(START|STOP) Start or stop CA-ACF2 CPF DDB(START|STOP) Reactivate and deactivate DDB NEWMOD(ACFFDR) Reloads the ACFFDR NEWMOD(ACF00SVA) Reloads the module that services SVC-A NEWMOD(ACF9C000) Reloads the CA-ACF2 SAF processormodule NEWMOD(ACF99SVC) Reloads the module that services SVC-S NEWMOD(MACPCxxx) Reloads a CA-MAC PC routine NEWMOD(SAFxxxxx) Reloads requested SAF module NODE(nodeid),Active|Inactive Activate and deactivate nodes OMVS Rebuild OpenEdition MVS tables LMPCHECK Have CA LMP verify the LMP executionkeys NEWSHIFT Reload resident shift matrix tables NEWXREF[,TYPE(RGP|SGP)] Rebuild input resource and source cross-reference tables REBUILD(typecode)[,CLASS(class)] Re-create directory of resident resource rule sets REFRESH(recid,…,recid|ALL) [,SYSID(sysid)] [,CLASS(class)] [,TYPE(type)] Apply changes dynamically to GSO records RELOAD(ruleid) Reload resident dataset access rule sets RESET(logonid) Reduce password violation count for specified logonid SETCLASS(class) Set current infostorage class SETNORUL(jobname|ALL) Reset and clear locally resident rule chain in user’s address space SETSYS(sysid) Set current system ID or division SETTYPE(type) Set current infostorage type SHOWCLAS Display current infostorage class at console SHOWGSO Display current GSO trace option at console SHOWSEBE Display DDB session block info SHOWSYS Display startup and current SYSIDs at console SHOWTYPE Display current infostorage type at console SYSPLEX(START|STOP|CLEAR) Start, stop, or clear CA-ACF2 Coupling Facility TRACEGO(option) Set destination of trace records for GSO events Options: ALL CONSOLE SECURITY SMF SYSLOG P ACF2 Stop CA-ACF2 S ACF2[,00E][,PARM=’option’] Start CA-ACF2 with specified optional parameters Options: BACKUP|NOBACKUP COMMAND(string) DDSNS(dsngroup) SYSID(systemid) TRACEGO(destination) DDB commands F ACF2,DDB(START) Reactivate DDB after it has stopped F ACF2,DDB(STOP) Deactivate DDB support without affecting CA-ACF2 MVS F ACF2,NODE(nodeid),Active Place individual logical node into service F ACF2,NODE(nodeid),Inactive Remove individual logical node or suspend from service Add [,XCF,(*)] to any F ACF2 cmd to broadcast cmd to all in sysplex. Using the SECTRACE (looks like a slip trap) SecTrace {ENable|DISable|DELete|[D|DISPlay]},ID=trapid|ALL Reactivate DDB after it has stopped SecTrace {[SET|T]MODify|F]},ID=trapid|ALL [,TYPE=SAF|SAFP] [,ASID,=nn] [,JOBname=mask] [,USERid=mask] [,RB=mask] [,ProGraM=mask] [,RETcode=nn] [,RSNcode=nn] [,ENable|DISAble] [,ACTION=IGNORE|TRACE] [,TRACE=[PRE|BEFORE][POST|AFTER][ALL]] [,MATCHLIM=0|nn] [,DEST=[CONSOLE|JOBLOG|SMF|SYSLOG|TSOUSER|ALL]|DATASET] [,CONSid=nn] [, DSName=dsn] [,TSoUser=id] [,LINELEN=nn] [,Member=name] [,ForMaT=[DUMP|LABEL|NOPACK|PACK]] [,MSGid|NOMSGid] [,WAIT|NOWAIT] {END|CANCEL}

GSS - Global Subsystem

F GSSA,SERVER DISPLAY F GSSA,DISPLAY ACTIVE F GSSA,SERVER STOP $UNITRKJT (stop this IMOD) F GSSA,SERVER START $UNITRKJT F GSSA,SCHEDULE $UNIJT_INIT (run this IMOD)

JOBTRAC

F tasknam,{TRACEON,TRACEOFF,HOLD,RELEASE} F tasknam,DISPLAY IMODS D JICA/SMFEXITS D LOCATIONS D ? F " ,[XON/XOFF] AMR on or off F " ,REFRESHEXCL should be done every time EXCLPARM is updated F " ,REFRESHLOC ALL [MEMBER=name] reread DYNAMLOC or MEMBER F " ,ADJ(JOBNAME),+01 add 1 hour to target time of JOBNAME F " ,JMFLOD reload JMF table F " ,DUMP create diagnostic dump F " ,JICAUPD refresh global options F " ,JMFVFY verify JMF table F " ,OPTS=nn refresh options in JOBTRAnn member F " ,RESET this will sometimes fix the checkpoint when global option hang F " ,BACK Backs out some of the JOBTRAC internals and shuts it down. F " ,D=ADRtabnam update ADR table F " ,M=AMRtabnam AMR table F " ,C=SCStabnam SCS table F " ,PFT=CCPFtabnm CCPF table S " ,PARM=HOLD start with Jobtrac held Jobtrac diagnostic DDs (for use with modify TRACEON/TRACEOFF) //SYSTRACE DD SYSOUT=n ----> GJTRMSTR //SUBTRACE DD SYSOUT=n ----> GJTRSUB //SQIOTRC DD SYSOUT=n ----> GJTRSQIO //JFIOTRC DD SYSOUT=n ----> GJCFIO //WTRTRACE DD SYSOUT=n ----> GJTRVWTR //JOBVTRC DD SYSOUT=n ----> GJTRCKII //SEQHTRC DD SYSOUT=n ----> GJTRSEQH //TRT2TRC DD SYSOUT=n ----> GJTRTRT2 VINIT is a CA supplied utility for modifying or removing Jobtrac internals. Use with caution S VINIT3,PARM='ONLY=GJTRVMXT' S VINIT3,PARM='BACK' Other useful ISPF PANEL commands AUDIT STATUS ENQueue SWITCHING PRIMARY If Current System is Active and OK: 1. Shut down the CA-Jobtrac system you want to become the primary system. 2. Issue the following command on the system containing the current primary CA-Jobtrac system: F taskname,ACTSYS=sysid taskname is the name of the CA-Jobtrac started task. sysid is the ID of your system. 3. Once the modify message issued in Step 2 is acknowledged, bring up CA-Jobtrac on the new primary system. If Current System is Hung Up: 1. Shut down the CA-Jobtrac system you want to become the primary system. 2. On the current CA-Jobtrac primary system, request an SVC dump and cancel CA-Jobtrac. If necessary, force CA-Jobtrac. 3. Bring up the CA-Jobtrac system you want to become the primary system. 4. Issue the following command on the CA-Jobtrac system you want to become the primary system: F taskname,ACTSYS=sysid taskname is the name of the CA-Jobtrac started task. sysid is the ID of your system.

CPM - Critical Path Monitor

Either from CPM interface or as a modify command CPM CANCEL flowname F taskname,CANCEL flowname DISPLAY ALL FLOW flowmask OPTions PROduct STAT STORage SET (changes options you see in DISPLAY OPT) SET TRACE OFF ALL CCI CALCulations CHECKpoint COMMands CONTROLblocks DATa ENF ENTRy EVENTs EXIT FLOWstatus JOBstatus RETURNcodes SCHEDapi Can also be specified TRACE=(ALL,NOCCI,NOJOB) The 'NO' turns off an option.

OPS/MVS

OI DELENTR stcname remove stcname from OPS/MVS mgt DAO * status DAO mask* PREREQ

RMO-Deliver

(assumes RMO is the STC name) F RMO,DISPLAY current activity & options S RMO,PARM=REFRESH used after maint w/o an IPL S RMO,PARM=OFF come up, close checkpoint cleanly, exit. F RMO,OFF begin quiescing F RMO,PARM=OFF finish after quiesced F RMO,BOT ON/OFF start/stop bundle task F RMO,BOT POST scan bundle queue NOW F RMO,RESET refresh buffer storage Checkpoint lock problem after RMO failure F RMO,UNLOCK System failed, reports hung, rerunning on another system F RMO,FREE nnnn If SETCMD enabled F RMO,SET parm=value 'parm' is one of the following ARCH DAYS START BANNER FREEALL STKCHNn BEGINDAY GSS STKMODE BNDLBNRn HDETAIL STNAMEn BNDLCONF JOBCLSL TEXT BNDLHDTL LOGO TIME BNDLINT MAXHIST BNDLWAIT SMF

MIM NOTES

(most commands (except via modiFy) require subsystem prefix) ACTIVATE, ALLOCATE, AUTHCHK, CP, CTC, DEALLOCATE, DEFALIAS, DIAGNOSE, DISABLE, DISPLAY, DUMP, FREE, GLOBALVALUE, GTADISP, GTAOPT, LOCKTUNING, MIGRATE, MIMDISP, MIMDUMP, MIMOPT, MIM216X, MSGTABLE, QUIESCE, REMOVE, RESTART, RESYNCH, SETOPTION, SHUTDOWN, SYSDUMP, TPCDISP, TPCOPT, USERDATA, VARY, VCF MIGRATE MASTER migrate to next eligible MASTER=sysn specify which system MIM ALIAS DISPLAY: ALIAS SUBSTITUTION TEXT DC D ECMF CONFLICT DCOL D GCMF,COLLECT,DETAIL,ALL DRQ D ECMF REQUE DISPLAY GTAF EDT -display eligible device table F MIMTEST,ADDQNAME ACFVSAM F MIMTEST,RESTART AVAILABLE CHOICES FOR "DISPLAY" ARE: ALL, COMMANDS, CTCPATH, EXIT, FACILITIES, FILES, GLOBALVALUE, INIT, IO, LOCALUNITS, MSGTABLE, OPTIONS, OSLEVEL, PATHS, SYSTEMS, XCFSTATS MIA address space trace on and off SET TRACE=ON SET MIM SETT=TRANSACTION=(07,10,14),SETP=TRANSACTION SET GTA SETT=(MASK,LOCK),SETP=(MASK,LOCK) SET TRACE=(SPIN,CLASS=O) Issue SYSDUMP command for address space dump SET TRACE=OFF SET MIM RESETT=TRANSACTION,RESETP=TRANSACTION SET GTA RESETT=(MASK,LOCK),RESETP=(MASK,LOCK)

ROSCOE NOTES

A - attach (open) a file AJOB - batch job panel AMS - active working storage DMS - status display of system, users etc. MON - display active monitors OFF - logoff I - open up an input area for editing LIB - dataset/lib utility ROS - Roscoe connections STATUS - Session 'display' status TIQ - Entrance into CA-1 AK.ACF - ACF2 panels AI.VP - ViewPoint AIE.VPS - VPS SP.LB - DSF panel (PF4 to return) SP.PROMPT - Menu panel SP.SAR - SAR SP.SARX - SAR Express SP.VMCF - VPS INFO VOL volser DSN LIB

TOP SECRET

List user - TSO TSS LIST(userid)

TPX

(issued via modiFy TPX command or within the TPX OPER panel) ",SYSID=sysid" can be added to commands to direct to other TPX subsystems C U=userid Cancel a user D APPLS D U=userid D STATS[,ALL |,U=userid] Display Terminals(Physical) D T [,ALL |,ACT |,INACT |,LOCK |,SUMM | =termid] Display Virtual terminals D VT [,ALL |,ACT |,INACT |,UNAVAIL |,SUMM | =vtermid] SEND 'text',U=userid SPIN [CLASS= ,DEST=] spin off the message log Tracing TR [ON|OFF] [,ALL |,U=userid |,MUT=termid |,T=termid |,P=prtrid |,VT=vtermid |,VP=vprtrid] [,EVERY |,MOD |,ACB |,BUF] (type of tracing, default is all types) UNLOCK userid VTADD memname dynamically add VTAMLST(memname) defs ACT {applid|ALL|TPX|FILE=(ADMIN1|ADMIN2|NOTES|MAIL|VIEW)} C T=termid C U=userid,(MUT=termid,){ALL|S=sessid}(,F) D {APPL|FILES|MEM|P|STATS|STOR|STORXA|T|TBLS|TR|U|VIEW|VP|VT} MOD APPL=applid,{MAXSESS=number|KEEPACB={YES|NO}} SYS,{MAXUSER|MAXSESS}=number} U=userid(,MUT=termid),MAXSESS=number VT=vtermid,{AVAIL|UNAVAIL|UNRES} VP=vprtrid,{AVAIL|UNAVAIL} Q {applid|ALL|TPX|FILE=(ADMIN1|ADMIN2|NOTES|MAIL|VIEW)}(,SHUT={mins|hh:mm}) RELOAD {ACL|ACT|CMDT|MASK|OCMD|OVAC|PANEL|PPS|PROF|PRT|SAMT|SMRT|TRM}=entry SEND 'text',{ALL|{U|L|T|A|S}=entry}(,MUT=termid)(,SAV|BRK) SPIN (CLASS=class)(,DEST=destination) TR {ON|OFF},{ALL|{U|T|P|VT|VP}=entry}(,MUT=termid)(,BUF|MOD|ACB|EVERY) DEST,{FMT|EXT|INT} UNLOCK userid(,MUT=termid) VM 'command' VTADD member ** NOTE - The SYSID=tpxappl parm can be added to any command except VM

VIEW

F VIEWTASK,[DUMP,IDUMP,NEW,INEW] S VIEWTASK [,OPT=NEW|DUMP|CLEAN|INEW|IDUMP|STOPBU] View XMS task F SARXMS,LIST STATUS,ALL F SARXMS,LIST DATABASE,ALL F SARXMS,LIST USERS,ALL F SARXMS,OPEN ALL open or reopen VTAM communications F SARXMS,QUIESCE normal shutdown SHUTDOWN immediate shutdown

SAS Info

Global Command BYE - get out of everything RELEASE: Syntax PROC RELEASE DDNAME= fileref | 'OS-data-set-name' /* required */ TOTAL|TRACKS= n UNUSED= n RELEASE= n EXTENTS|EXTENT|EX BOUNDARY|TYPE= DSCB|DATASET| CYL|CYLS|CYLINDER|CYLINDERS| TRK|TRKS|TRACK|TRACKS| JCL|DD|ALLOC MVS HELP: Display Manager Commands CLOCK toggles display of time in lower right corner of the screen GCURSOR toggles activation of graphics cursor for some devices NULLS determines whether input fields are padded with NULLS TSO executes a TSO command (an alias of the X command) WDRAG moves or resizes graphic objects Key Definition ------------------- F1 mark F13 help F2 smark F14 zoom F3 unmark F15 zoom off; submit F4 cut F16 pgm; recall F5 paste F17 rfind F6 store F18 rchange F7 prevwind F19 backward F8 next F20 forward F9 pmenu F21 output F10 command F22 left F11 keys F23 right F12 undo F24 home
TSO PDS 'da.da.da.loadlib'

Storage Wreck (now SUN) ACS & HSC

ACS / HSC commands

.d v,volser .VIEW DR A(806) .d lsm .d acs [nn] .UEXIT 01 L(SLSUX01),E Load and enable user exit .UEXIT xx Query .D Msg nnnn .v acs 00,[off/on] Most VTS cmds can use either Display or Query (D or Q) .VT D VTV(V51009) List info about virtual tape volser Q MVCPool List MVC pools Q MVC(volser) List an MVC D CONFIG D Active [DETail] Q Queue [DETail] D RTD D Msg msg-id Q TASKs Q SCRATCH List scratch pool(s) D VTSS [DETail] Q MIGrate [DET] List migration tasks D VTD [ACtive/ALl] List devices RECALL VTV(nnnnnn) recall non-res VTV

MVS Solutions ThruPut Manager

Prefix console commands with subsys ID "?" or "HELP" can follow almost every command or parameter to learn more Alter/Display Services (ADS) Control File Mgr. (CFM) CFM [DELETE/DISPLAY/SET] Detail Action Language (DAL) DAL ? or HELP Drive Booking Service (DBS) Data Contention Svcs (DCS) DCS ? or HELP DCS Display DSNS/HOLDERS/JOBS Job Action Lang. JAL Display displays TPM level info Event REFRESH Trace VERIFY Job Binding Svcs (JBS) JBS ? or HELP D Agents Job Chaining Svcs (JCS) JCS [Display/Release] Job Limiting Services (JLS) JLS D ? or HELP help JLS D Agents display agents D JOBS display jobs D HELD D JOB jobnum JLS RESET ? or HELP JLS SET ? or HELP JLS ABANDON Jnnnnn abandon job from JLS control Job Info JOB D jobnameORnumber [Dasd/Tape/ONREQuest] display info about a job Job Setup Svcs JSS ? or HELP Table Svcs (TBL) TBL D * display TM tables Thruput Mgr (TM) TM ? or HELP TM OPT list option enabled or not installed

VPS and VMCF commands

F VPS,Display,* F VPS,CANCEL,prtrid{,D|J} cancel Dataset or Job on prtid F VPS,END Terminate VPS normally F VPS,INTERRUPT,prtid F VPS,RESTART,prtrid F VPS,REACTIVATE,prtrid ?? F VPS,R,S=E Very useful to restart multi edrained w/o recycle F VPS,SNAP,SYSTEM Dump control blocks VMCF/VTAM commands (use the task with procstep VMCFVTAM ) F task,DISPLAY,SYSTEM F task,DISPLAY,EXITS F VMCFVTAM,DISPLAY,* Disply users Active/Logon/ActiveRefreshh/WConnect F task,DISPLAY,S=A F task,DISPLAY,S=L F task,DISPLAY,S=R F task,DISPLAY,S=W F task,FORCE,userid cancel a user by userid F task,FORCE,luname cancel a user by luname F task,LOG,message add message to the VMCFVTAM log Commands from VMCF panel /ACQUIRE,prtrid /ACTIVATE,membernm /CANCEL,prtrid /DISPLAY,SYSTEM /DISPLAY,SYSTEM,TASKS /INACTIVATE,prtrid /INTERRUPT,prtrid /REACTIVATE,prtrid /RELEASE,prtid /REPEAT,prtrid /RESTART,prtrid /SNAP,prtrid or /SNAP,SYSTEM /START,prtrid /STOP,prtrid{,F/I}

Xerox XPAF commands

All commands prefixed with "F xosfname," REF ALL refreshes FONT240, FONT300, FORMDEF, OVERLAY, PAGEDEF, PAGEFORM, PAGESEG (these are PDSs) (can also items i.e. "REF FORMDEF") DIS SUBSYS DIS ACT JOB active jobs DIS ACT TASK TERM TASK nn SYS SHUTDOWN SET SMF REC {ON/OFF} SMF recording SET SYS LOG {ON/OFF} system logging SET XOSF LOG {ON/OFF} write to XLOG? REF XLOG update XLOG with latest msgs SWI LOG switch XLOGs DIS ACT LOG SET INT LOG {ON/OFF} intensive logging for debugging ENA,nnnn,nnnn,t route msgs number nnnn and/or type t to console SUP,nnnn,nnnn,t suppress msg routing for number and/or type

Unix Systems Services

Also see new SMP/E stuff for USS

Unix Message Prefixes/Sources in z/OS

BPX Kernel FOMC chcp shell command FOMF TSO shell commands FOMM Sys Sys Services Parallel Environment FOMN inetd daemon FOMO Sys Services Parallel Environment FSUC tsch shell FSUM Shell and utils FDBX Debugger BPXAS Prior OS/390 R.4, APPC/MVS transaction initiators provided address spaces when programs used the fork() or spawn() C function for USS callable services. Now WorkLoad Manager (WLM) creates the address spaces. The BPXAS PROC found in SYS1.PROCLIB is used to create the WLM-managed address spaces.

OMVS is very useful for determining USS and HFS status

D OMVS[{,SUMMARY|S}] ,{ASID|A}=ALL ,{ASID|A}=asid ,U=userid ,{PID}=processid[,BRL] ,{FILE|F[,CAPS|C]} ,{VSERVER|V} ,{PFS|P} ,{CINET|CI}=All|TPname ,{OPTIONS|O} ,{LIMITS|L[,PID=ProcessId][,RESET]} ,SER F OMVS,[SHUTDOWN|RESTART] Must quiesce all in the D OMVS,A=ALL list first

SETOMVS & SETOMVS EXTENSIONS (sysplex exclusive)

New for z/OS 1.5 MODIFY ZFS,QUERY,ALL (ZFS is the new z/OS file sys) SETOMVS [FORKCOPY=(COPY|COW)] [,IPCSEMNIDS=ipcsemnids] [,IPCSEMNOPS=ipcsemnops] [,IPCSEMNSEMS=ipcsemnsems] [IPCMSGQBYTES=ipcmsgqbytes] [,IPCMSGNIDS=ipcmsgnids] [,IPCSHMMPAGES=ipcshmmpages] [,IPCSHMNIDS=ipcshmnids] [,IPCSHMNSEGS=ipcshmnsegs] [,IPCSHMSPAGES=ipcshmspages] [,IPCMSGQMNUM=ipcmsgqmnum] [,MAXASSIZE=maxassize] [,MAXCORESIZE=maxcoresize] [,MAXCPUTIME=maxcputime] [,MAXFILEPROC=maxfileproc] [,MAXFILESIZE=(maxfilesize|NOLIMIT)] [,MAXMMAPAREA=maxmmaparea] [,MAXPROCSYS=maxprocsys] [,MAXPROCUSER=maxprocuser] [,MAXPTYS=maxptys] [,MAXSHAREPAGES=maxsharepages] [,MAXTHREADS=maxthreads] [,MAXTHREADTASKS=maxthreadtasks] [,MAXUIDS=maxuids] [,PRIORITYGOAL=(n)|NONE] [,PRIORITYPG=(n)|NONE] [,STEPLIBLIST='stepliblist'] [,SUPERUSER=superuser] [,SYNTAXCHECK='parmlibmember'] [,TTYGROUP=ttygroup] [,USERIDALIASTABLE=useridaliastable] [,VERSION='string']
SETOMVS EXTENSIONS (sysplex exclusive)
SETOMVS FILESYS ,FILESYSTEM=filesystem,AUTOMOVE=YES|NO,SYSNAME=sysname or SETOMVS FILESYS ,FILESYSTEM=filesystem,AUTOMOVE=YES|NO or SETOMVS FILESYS ,FILESYSTEM=filesystem,SYSNAME=sysname or SETOMVS FILESYS ,MOUNTPOINT=mountpoint,AUTOMOVE=YES|NO,SYSNAME=sysname or SETOMVS FILESYS ,MOUNTPOINT=mountpoint,AUTOMOVE=YES|NO or SETOMVS FILESYS ,MOUNTPOINT=mountpoint,SYSNAME=sysname or SETOMVS FILESYS ,FROMSYS=sysname,SYSNAME=sysname Note: FILESYSTEM, MOUNTPOINT, and FROMSYS are mutually exclusive parameters. When you specify FILESYS, you must supply one of these three parameters. OMVSALLC Clist to enter OMVS from TSO when allocation checks haven't been implemented. MVS dataset to HFS with a TSO command tso "oput source.c(hello) '/u/ehk/source/hello.c'" | BINARY/TEXT CONVERT(YES/NO) HFS file to MVS dataset tso "oget '/u/ehk/source/hello.c' source.c(hello" | BINARY/TEXT CONVERT(YES/NO)

OMVS/UNIX shell commands

Note: Most of these commands are available under Unix and Linux. Entering the command followed by a space and a "?" displays help.
Switches enclosed in [brackets] are optional. alias list all current command aliases or create alias ls="ls –C" create an alias where all ls commands have the 'c' switch included awk '{print $3}' filename Use the awk file processing pgm to print 3rd field in filename 'awk' is pretty extensive - a manual is recommended bpxmtext reason_code cat (concatenate) cat file1 file2 > file3 cp - copies files and directories cp -R dir1 dir2 -this will clone all from dir1 to dir2 cp -S d=.c dir/*"//’turbo.gammalib’" -copy all from dir to PDS and drop '.c' suffixs dbx -use the debugger df [-kPStv] filename -display file sys free space df filename -find HFS where file resides du [-al-s[-krtx] pathname file space summary /disk usage echo $? exit status of last command egrep "earth|air|fire|water" astro.log -search astro.log for all occurences of -c option to only list number of matchs -f patternfile use lines in patternfile for match list env display environment export show exported variables extattr +/-apsl -set extended attributes find / -name filename fuser filename Find out which process is using a file fuser -cu /usr/lpp list processes with open files in filesys getfacl [-acdfhmoqs] filename Get access control list info for file or directory The "greps" - search for patterns/strings in files grep [–bcEFilnqsvx] [–e pattern] [–f patternfile] [pattern] [file] egrep [–bcilnqsvx] [–e pattern] [–f patternfile] [pattern] [file] fgrep [–bcilnqsvx] [–e pattern] [–f patternfile] [pattern] [file] grep –e pattern_one –e pattern_two file.ext -search for pattern(s) in file grep '^123\.' /var/log/httpd/access_log -show every line beginning with '123.' in file grep '^123\.' /var/log/httpd/access_log|awk '{print $1}'|sort -u Same command but pipe output through awk program, print 1st field only and sorted history show your command history iconv -f ISO8859-1 -t IBM-1047 myfile.txt > newfile copy an ascci file convert to EBCDIC id userid display kill -s ABRT pid InterProcess Communications Facility(IPCS) ipcs [–m] [–q] [–s] [–a | –b c o p t] [–w] [–x] [–y] ln -s /usr/lpp/tcpip/bin /usr/godfrey/mytcpip Create symbolic link man cmd list a manual on the cmd in question mkdir dirname adds a new directory extension to current ln [e,f,i,R,s] forfile linkname create a link/pathname to a file or dataset ln -e NOLL.PLIB.PGMA /u/noll/plib/pgma create (-e)xternal link in HFS to an MVS PDS ln -s f1 my_sym create (-s)ymbolic link pathchk[-p] pathname check a path for validity and (-p)ortability pax is the portable archive, pax & tar file utility, list, create, extract pax [–cdnqvzE][–f archive] [–o type] [–s substitute] ... [pattern ...] pax –r [–cdiknuvzE] [–f archive] [–o options ...] [–p string ...] [–s substitute ...] [–V volpat] [pattern ...] pax –w [–diLqtuvXzE] [–b blocksize] [[–a] [–f archive]] [–o options ...] [–ssubstitute ...] [–V volpat] [–x format] [pathname ...] pax -wzf /tmp/my_dir.pax . create a compressed archive containing working directory tree pax -wzf "//'posix.godfrey.tar(mydir)'" . write archive to PDS member pax -vf import.pax list attributes of files in archive pax -rf from_AIX.pax -o from=ISO8859-1, to=IBM-1047 "*.c" extract the .c files from an archive translating from ASCII to EBCDIC pax -rwpe . newdir copy working dir tree to newdir, preserving file attributes printenv display print environment ps process status command - see following switches -m -o ruser=UID -o pid,ppid,xstid,state=STATE -o atime,syscall,args=CMD - afjlm -o display in column format - o THREAD vsz (virtual storage) | jobname | comm | wchan (waiting channel) | semnum (semaphore tread waiting for) | | state (Displays the process state. [STATE] Various values can be printed in this field: 1 A single task using assembler callable services. A Message queue receive wait. B Message queue send wait. C Communication system kernel wait. D Semaphore operation wait. E Quiesce frozen. F File system kernel wait. G MVS Pause wait. H One or more pthread created tasks (implies M as well). J Pthread created. K Other kernel wait (for example, pause or sigsuspend). M Multi-thread. N Medium weight thread. O Asynchronous thread. R Running (not kernel wait). S Sleeping. U Initial process thread. V Thread is detached. W Waiting for a child (wait or waitpid function is running). X Creating a new process (fork function is running). Y MVS wait. Z Canceled and parent has not performed wait (Z for zombie). tar archive utility, pax & tar files tar –c[#sbvwlzOUX] –f file [–V volpat] [tarfile] [blocksize] [–C pathname] tar –r[#sbvwlzOUX] –f file [–V volpat] [tarfile] [blocksize] tar –t[#sbvzEOUX] –f file [–L type] [–V volpat] [tarfile] [blocksize] [–C pathname] tar –x[#AsbvwpmozOUX] –f file [–V volpat] [tarfile] [blocksize] tso prefix to entering a TSO cmd uname display opsys uname -aI wall message to all who current users whoami chgrp change file group chmod change file mode chown change file owner chroot change root dir dircmp compare directories obrowse PDF browse oedit PDF edit Any TCP/IP command TSO ISHELL USS ISPF shell facility

LDAP

LDAP startup S LDAPSRV[,parms='-d +debuglvl'] F LDAPSRV,APPL=DEBUG=[65535|262144|2147483647|levelname|-lvlname] Change debugging level - see table below F ldaptask,[APPL= TERM= FORCE= SHUTDOWN= RESTART= DUMP= FILESYS=] APPL= -d config : Server configuration -d stats : Server statistics -debug : Enables trace for specified module(s) -? debug : Lists module names for "-debug" -nodebug : Disables trace -? nodebug : Module names for "-nodebug" -restart : Restarts the Server -smf

AIX and Unix stuff

A short list of the more common AIX commands.
Many of the commands here will work on other Unix or Linux based platforms.
You are encouraged to do a "man commandname" to review the commands and their switches.
I may include my favorite switch(es) in the basic command.

Command What it does
alias [Name=string]List or create command aliases
bootinfo -b -pGet boot information
cfgmgr -vWalk the bus
chdevChange Device
chgroupChange group attributes
chitabChange initab entries
chmod -R -h -f u/g/o/a - + = r w x X s tChange file mode/permissions
chown -f -h -R owner/:group fname/dirnameChange file/dir ownership
cpCopies files
crontab -lList cron table entries
chuserChange a User ID
df -vDisplay file system information
entstat -d deviceEthernet device stats
envLists a variety of environment info
export DISPLAY=youripaddr:0Prepare for xterm/GUI usage
f (or finger)List user info
fc -lQuick way to emulate history cmd. Caution-Other flags may re-ex previous cmds.
fgrepSearch file for sting
fuserList process using file or fs
head [-linect] filenameList beginning of file
historyList Command history
hostnameList hostname info
ifconfig -aList network interfaces
instfix -iList installed APARs "instfix -i -k IY19375"
initruns etc/inittab
ioo -a (AIX 5.2)List I/O Options
iostat [ -s ] [ -a ] [ -d | -t ] [ PhysicalVolumeList I/O device stats
istatname | nodenum /dev/hdx]File/dir info via i-node
lnmanage links
ls [-1ACFLNRabcdefgilmnopqrstux] List the files in the current directory
lsattrList device attributes (lsattr -E -l sys0)
lscfg -vl hdisk0 List device configuration of hdisk0
lsconfList configuration info
lsdev -C -P -HList devices
lsfs (-v jfs2)List file sys characteristics (using jfs2?)
lsgroup ALLList attributes of groups
lsitab {-a | "record"}List all or type of records in etc/initab.
lslpp -l (product/filpathname)List licensed program products (-l gets the latest)
lsslot -c pciList your PCI slot
lsuser -f rootList my root device name
man commandmanual for command
man snapYou need to check this out!
mkdevMake Device
mkdirMake directory or symbolic link(-l switch)
mkgroupCreate a group for user mgt
mkitabAdd records to initab
mksysbMake bootable backup of rootvg.
mktcpip Configure TCP/IP. Can use smitty mktcpip
mkuserMake User ID
mount / unmountDevice management - list mounts or mount filesystems
mvMove or rename files/directories
no -a (AIX 5.2)List Network Options
nfso -aList Network File System Options
oslevel -rList OS level
passwdChange password
pg filenameList file page by page
prtconfList hardware config
ps {ewg} -f -l -u userid Process Status g(all) -f(userid) -U userid
pstat (-a | -p)Displays various system table info (process table)
pwd elist Present Working directory
rmRemoves files / links
rmdevRemove Device
rmfsRemove file system
rmitabRemove an initab entry
schedo (AIX 5.2)Utility
setsenvEnvironment variables (also does a reset).
showmount [-a e d]List clients doing remote mounts.
shutdown -F Shutdown Now (default is to wait 60 seconds)
smitty (ascii) / smit(graphic)System Mgt. Interface Tool by mode
sudoExecute as su via sudoers table
stty saneRestore 'sanity' of terminal drivers
telinitSet system at specific run level (0-9)
topasA perfomance monitor
uname -MList user name
uptimeHow long?
usersShortest list of users. 'Who' is better.
visudoEdit sudoers table
vmo (AIX 5.2)Virtual Memory Options
wWhat's happening?
which 'command'Which directory will command run from?
who -a b d i l m p q r s t u w A H Tb [File]Who's active
wsmWeb-based System Monitor
grep & awk grep vpath | awk '{print $1 $4}' file.txt
NIM - Network Installation Mgr.
lsnimList NIM environment info
Manage/Monitor Paging Space
chpsChange paging space attributes
lsps [-a -s]List paging space
mkpsAdd paging space
rmpsRemove inactive paging space
swapoffDeactivate paging space
swaponActivate paging space
svmonvirtual memory usage
vmstat Active Virtual Memory summary
Physical/Logical Volumes and Groups
chfs -a Size=+nnnnnnnnnChange Files System. This one after an extendvg operation.
chlvChange Logical Volume
chpvChange Physical Volume
chvgChange Volume Group
cplvCopies logical volume to another lv
exportvg / importvgExport or Import a volume group
extendvg -f rootvg hdisk1Add volume hdisk1 to root volume group
getlvcb -TA hd2Display the information held in the LVCB of logical volume hd2
iostat [-s a d t] [pvname]List PV I/O Stats
lquerypv -M hdisk0List physical volume hdisk0 ltg size
lslvList logical volumes
lspv [-L I M pvname]List physical volume
lsvg -l root_device_nameList Volume Group info for root device
lsvgList volume group
lvmstatLV, LG or VG stats
mirrorvg [-S|-s][-Q][-c Copies][-m]VG [PV(s)]Mirror LVs to Physical Vols
mklv / rmlvCreate / remove logical volume from vg
mkvg / rmvgMake Volume Group / Remove Volume Group
reducevg -f rootvg hdisk1Remove volume hdisk1 from rootvg
unmirrorvg Undo Mirroring of LVs to PVs
varyoffvgVary a volume group offline
varyonvgVary a volume group online
SMIT/SMITTY fastpaths
commo, dev, install, licenses, lsdev, lv, mklv, performance, problem, pv, security, spooler, src, storage, system, yp
ODM commands
odmadd Adds objects to an object class. The odmadd command takes an ASCII stanza file as input and populates object classes with objects found in the stanza file.
odmchange Changes specific objects in a specified object class.
odmcreate Creates empty object classes. The odmcreate command takes an ASCII file describing object classes as input and produces C language .h and .c files to be used by the application accessing objects in those object classes.
odmdelete Removes objects from an object class.
odmdrop Removes an entire object class.
odmget Retrieves objects from object classes and puts the object information into odmadd command format.
odmshow Displays the description of an object class. The odmshow command takes an object class name as input and puts the object class information into odmcreate command format.
Examples
sed "s/oldword/newword/g" filein >newfile.txt
change all occurrences of oldword in filein to newword and write to newfile

pr chap2 | sed "s/Page *[0-9]*$/(&)/" | enq
This command sequence encloses the page numbers in parentheses before printing the file chap2. The pr command puts a heading and page number at the top of each page, then the sed command puts the page numbers in parentheses, and the enq command prints the edited listing.
The sed command pattern /Page *[0-9]*$/ matches page numbers that appear at the end of a line. The s subcommand changes this to (&), where the & stands for the page number that was matched.

sed -n "/food/p" file.txt
display every line in file.txt that contains the word food.

awk '/food/' file.txt
display every line in file.txt that contains the word food.

awk '/food | fish/' file.txt
display every line in file.txt that contains the words food or fish.

awk '/a(ll)?(nn)?e/' testfile
prints to standard output of all records with the string ae or alle or anne or allnne.

awk '/l{2}/' testfile
print line if exactly two occurrences of 'l' are found.

awk '/t{2,}/' testfile
print line if at least two occurrences of 't' are found.

awk '$1 ~ /n/' testfile
print line if first field contains 'n'.

awk '$1 !~ /n/' testfile
print line if first field does NOT contain an 'n'.

'$1 /^n/' - first charcter of 1st field
'$2 /n$/' - last char of 2nd field
'/a..e/' - chars 'a' & 'e' separated by 2 chars
'/a.*e/' - chars 'a' & 'e' separated by 0 or more chars
'length >72' - select lines longer than 72 bytes
VI Commands
To run: vi filename
To recover after disconnection: vi -r filename
NOTE:
1. Lower-case letters are distinct from upper-case letters.
2. n indicates that an optional preceding numerical argument may be used
(i.e. h moves one character to the left, 5h moves five characters to the left).

Inserting
i insert at cursor
a insert after cursor
A append to end of line
o open new line below current line
O open new line above current line
exit insert to command mode

Delete commands
n x delete character
n dd delete entire line
n dw delete word
D delete rest of line

Change and replace
n cw change word
n cc change entire line
C change rest of line
n r replace character at cursor
n s replace character with new string
exit change to command mode

Character positioning
0 (zero) beginning of line
$ end of line
n h backward one character position
n same as h
n l forward one character position
n same as l

Word positioning
n w forward one word -- to start of next word
n b backward one word -- to start of word
n e forward one word -- to end of word

Line positioning
H top of screen (home)
M middle of screen
L last line of screen
n j next line -- same column
n k previous line -- same column
n + next line (first non-white space)
n - previous line (first non-white space)

Positioning within a file
n ^d move down half screen
n ^u move up half screen
n ^f scroll up a screen
n ^b scroll down a screen
1G go to top of file
G go to bottom of file
n G go to line n

Searching
/pattern search forward for pattern
?pattern search backward for pattern
n n repeat last / or ?
f char find char forward on current line
F char find char backward on current line
n ; repeat last f or F
:1,$s/old/new/g global search & replace
:3,9s/old/new/g search and replace between line 3 and 9

Leaving vi
ZZ exit from vi saving changes
:wq same as Z
:q quit from vi -- will not quit if changes have been made
:q! quit from vi -- will quit even if changes have been made

File manipulation
:w write changes to current file
:w filename write changes to filename
:e filename edit filename
:r filename place filename below current line r
:n next file

Marking and returning
ma mark current line with an A
'a return to the line marked with an A
'' return to position last used

Yank and put
n yy yank line
p put back yanked lines below current line
P put back yanked lines above current line

Miscellaneous
u undo last change
. (period) repeat last change
J join current and next line together
^g report line number and file name information on status line
^l refresh screen
:set nu display line number for whole file
:set nonu display no line number
:sh temporarily exit to shell (type exit to back)
AIX vs Sun/Solaris command differences
AIX Command/function Solaris Command/Function
bootlist boot
df df -abegklntVv
errpt -a dmesg
installp -a pkgadd
smit admintool
lsdev sysdef
lscfg prtconf
mkdev lpadmin
lsfs cat /etc/vfstab
lspv / lsvg / lslv vxstat
lsps -a swap -l
iptrace snoop
bootinfo -r prtconf
chlv / mklv / rmlv vxvol
lsvg vxprint
ls ls -1RaAdCxmnlogrtucpFbqisfL
ls -ot (sort by date)
lsuser listusers
go back to top

=