\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{titog} \pdfinfo{ /Title (z-vm-cheat-sheet.pdf) /Creator (Cheatography) /Author (titog) /Subject (z/VM Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{3D35BD} \definecolor{LightBackground}{HTML}{F2F2FA} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{z/VM Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{titog} via \textcolor{DarkBackground}{\uline{cheatography.com/29166/cs/8573/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}titog \\ \uline{cheatography.com/titog} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 12th July, 2016.\\ Updated 29th January, 2024.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{p{0.69678 cm} x{4.28022 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{IPL}} \tn % Row 0 \SetRowColor{LightBackground} Warm & stop on spool errors \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Force & purge on spool error \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Cold & purge all spool files \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Clean & purge spool + system data files \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.14471 cm} x{3.83229 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Console Status}} \tn % Row 0 \SetRowColor{LightBackground} CP READ & CP waiting for a command \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} VM READ & VM waiting for a command \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} RUNNING & VM working on something \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} MORE... & There is more info than can fit on the current screen \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} HOLDING & System is waiting for you to clear the screen \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} NOT ACCEPTED & System is busy \tn % Row Count 9 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{CMS}} \tn % Row 0 \SetRowColor{LightBackground} ACCESS {\emph{mdisk}} {\emph{filemode}} & Identify a minidisk or SFS directory to CMS. \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} CP & Transmit commands to the z/VM control program \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} ERASE {\emph{fn}} {\emph{ft}} {\emph{fm}} & Erase a file \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} EXEC {\emph{fn}} {\emph{args}} & Execute one or more CMS commands \tn % Row Count 10 (+ 2) % Row 4 \SetRowColor{LightBackground} FILEList \textless{}{\emph{fn ft fm}}\textgreater{} & List of information about CMS files residing on accessed disks \tn % Row Count 13 (+ 3) % Row 5 \SetRowColor{white} FORMAT {\emph{vdev fm}} & Initialize a minidisk for use with CMS files \tn % Row Count 16 (+ 3) % Row 6 \SetRowColor{LightBackground} Listfile \textless{}{\emph{fn ft fm}}\textgreater{} & List of information about CMS files residing on accessed disks \tn % Row Count 19 (+ 3) % Row 7 \SetRowColor{white} Query ACCESSED & Display the status of your accessed disks \tn % Row Count 21 (+ 2) % Row 8 \SetRowColor{LightBackground} Query DISK & Display the status of a disk \tn % Row Count 23 (+ 2) % Row 9 \SetRowColor{white} RDRList & Display information about the files in your virtual reader \tn % Row Count 26 (+ 3) % Row 10 \SetRowColor{LightBackground} RECEIVE {\emph{spoolid}} \textless{}{\emph{fn ft fm}}\textgreater{} & Receive a file from your reader to a disk \tn % Row Count 28 (+ 2) % Row 11 \SetRowColor{white} RELease {\emph{fm}} \textless{}{\emph{(DETach}}\textgreater{} & Free an accessed disk previously accessed with the ACCESS command \tn % Row Count 32 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{CMS (cont)}} \tn % Row 12 \SetRowColor{LightBackground} Rename \textless{}{\emph{fn1 ft1 fm}}\textgreater{} \textless{}{\emph{fn2 ft2 fm}}\textgreater{} & Change file IDs of one or more files on a minidisk \tn % Row Count 3 (+ 3) % Row 13 \SetRowColor{white} Xedit {\emph{fn ft \textless{}fm}}\textgreater{} & Invoke the editor to create, modify, and manipulate CMS files \tn % Row Count 6 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{CP commands}} \tn % Row 0 \SetRowColor{LightBackground} \#CP & Process CP from a guest env \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} ATTACH {\emph{rdev}} TO {\emph{userid}} {[}{\emph{as vdev}}{]} & Logically connect a dev to a VM \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} XAUTOLOG {\emph{userid}} & Log another VM \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} DEFINE CPOWNED {\emph{slot}} {\emph{nnn}} {\emph{volid}} & Define entries in the list of CP-owned DASDs \tn % Row Count 8 (+ 3) % Row 4 \SetRowColor{LightBackground} DEFINE CPU {\emph{cpuaddr}} & Defines a virtual processor for a VM \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} DEFINE STOR {\emph{size}} standby {\emph{size}} & Change storage size of your VM \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} DEFINE VSWITCH {\emph{switchname}} rdev {\emph{rdev1}} {\emph{rdev2}} \textless{}{\emph{IP|ETH}}\textgreater{} & Create a CP system-owned switch \tn % Row Count 15 (+ 3) % Row 7 \SetRowColor{white} DETACH {\emph{rdev}} & Detach a device from VM \tn % Row Count 17 (+ 2) % Row 8 \SetRowColor{LightBackground} DETACH CPU {\emph{cpuaddr}} & Remove a virtual processor from a VM \tn % Row Count 19 (+ 2) % Row 9 \SetRowColor{white} DETACH VSWITCH {\emph{switchname}} & Remove the vswitch from the CP system \tn % Row Count 21 (+ 2) % Row 10 \SetRowColor{LightBackground} FORCE {\emph{userid}} & Disconnect or log off an active user. \tn % Row Count 23 (+ 2) % Row 11 \SetRowColor{white} IPL {\emph{vdev|system\_name}} & Simulate an initial program load function for your VM \tn % Row Count 26 (+ 3) % Row 12 \SetRowColor{LightBackground} LINK {\emph{userid}} {\emph{vdev1}} {\emph{vdev2}} {\emph{mode}} & Link a device from another VM (common modes: RR, MR) \tn % Row Count 29 (+ 3) % Row 13 \SetRowColor{white} QUERY CPOWNED & Display the list of CP-owned DASD volumes \tn % Row Count 32 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{CP commands (cont)}} \tn % Row 14 \SetRowColor{LightBackground} QUERY DASD \textless{}*ALL|FREE|OFFLINE\textgreater{} & Display the status of real DASDs \tn % Row Count 2 (+ 2) % Row 15 \SetRowColor{white} QUERY DASD details {\emph{rdev}} & Display the detauls of real DASD \tn % Row Count 4 (+ 2) % Row 16 \SetRowColor{LightBackground} QUERY MDISK Userid {\emph{userid}} {\emph{vdev}} & Display the device characteristics of minidisks \tn % Row Count 7 (+ 3) % Row 17 \SetRowColor{white} QUERY NAMES & A list of all logged-on users \tn % Row Count 9 (+ 2) % Row 18 \SetRowColor{LightBackground} QUERY NIC {\emph{rdev}} & Display the system-level information and the MAC addresses assigned \tn % Row Count 13 (+ 4) % Row 19 \SetRowColor{white} QUERY OSA \textless{}{\emph{ALL|FREE}}\textgreater{} & Display the status of real OSA \tn % Row Count 15 (+ 2) % Row 20 \SetRowColor{LightBackground} QUERY STORAGE & Display the size of real storage \tn % Row Count 17 (+ 2) % Row 21 \SetRowColor{white} QUERY {\emph{userid}} & Identify the user ID and the system name or device address of a logged-on user \tn % Row Count 21 (+ 4) % Row 22 \SetRowColor{LightBackground} QUERY VSWITCH \textless{}{\emph{ALL|switchname}}\textgreater{} \textless{}{\emph{details}}\textgreater{} & Display information about virtual switches \tn % Row Count 24 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{DIRMAINT}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{ADD {\emph{userid|subconfig|profile}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{ADD {\emph{userid}} LIKE {\emph{prototype}} \textless{}PW {\emph{newpass}}\textgreater{}} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{AMDISK {\emph{vaddr}} {\emph{devtype}} {\emph{AUTOG}} {\emph{size}} {\emph{poolname}}} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{DMDisk {\emph{vaddr}} \textless{}{\emph{clean|noclean}}\textgreater{}} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{CLONEDisk {\emph{vaddr}} {\emph{source\_owner}} {\emph{source\_addr}}} \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{CMDISK {\emph{vaddr}} {\emph{devtype}} {\emph{AUTOG}} {\emph{size}} {\emph{poolname}}} \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{CPU {\emph{cpuaddr}}} \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{DASD ADD REGION {\emph{regionname}} {\emph{volid}} {\emph{disktype}} END 1} \tn % Row Count 9 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{DASD ADD GROUP {\emph{groupname}} {\emph{vol1 vol2 vol3}}} \tn % Row Count 10 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{SEND {\emph{fn ft fm}}} \tn % Row Count 11 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{FILE {\emph{fn ft fm}}} \tn % Row Count 12 (+ 1) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{FREExt} \tn % Row Count 13 (+ 1) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{GET} \tn % Row Count 14 (+ 1) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{REPlace} \tn % Row Count 15 (+ 1) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{RLDCode} \tn % Row Count 16 (+ 1) % Row 15 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{RLDData} \tn % Row Count 17 (+ 1) % Row 16 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{RLDExt} \tn % Row Count 18 (+ 1) % Row 17 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PURGE \textless{}{\emph{clean|noclean}}\textgreater{}} \tn % Row Count 19 (+ 1) % Row 18 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PW} \tn % Row Count 20 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{DIRMmaint \textless{}prefix\textgreater{} command} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}