{
    "id": "mainframe_cheat_sheet",
    "name": "Mainframe",
    "template_type": "terminal",
    "description": "Basic commands for the Mainframe cli subsystem layers",
    "metadata": {
        "sourceName": "MainFrames",
        "sourceUrl": "http://www.mainframes.com/Commands.html"
    },
    "aliases": [
        "main frame",
        "mainframe cli"
    ],
    "section_order": [
	"Job Entry Subsystem 2 (JES2)",
        "Multiple Virtual Storage (MVS)",
        "Data Facility System Managed Storage (DFSMS)",
        "Time Sharing Option/Extensions (TSO/E)",
        "Virtual Telecommunications Access Method (VTAM)",
        "Virtual Lookaside Facility (VLF)",
	"System Display and Search Facility (SDSF)"
    ],
    "sections": {
        "Job Entry Subsystem 2 (JES2)": [
            {
                "key": "$DSPL,JOBS=5",
                "val": "Display all jobs using 5% or more of the spool"
            },
            {
                "key": "$A A",
                "val": "Release all jobs"
            },
            {
                "key": "$ACTIVATE",
                "val": "Activate new functions at the current release level of JES2"
            },
            {
                "key": "$ADD APPL",
                "val": "Dynamically define a VTAM application to JES2 at the specified JES2 node."
            },
            {
                "key": "$ADD DESTID",
                "val": "Dynamically define a symbolic name for a JES2 route code."
            },
            {
                "key": "$ADD FSS",
                "val": "Dynamically define a functional subsystem (FSS) to JES2"
            },
            {
                "key": "$ADD LINE (nnnn)",
                "val": "Dynamically add a line"
            },
            {
                "key": "$ADD LOGON (nn)",
                "val": "Creates a new LOGON pseudo-device, which defines JES2 as an application program to VTAM"
            },
            {
                "key": "$ADD PRT",
                "val": "Dynamically add a local printer"
            },
            {
                "key": "$ADD REDIRECT",
                "val": "Specify redirection for commands entered at the entry console"
            },
            {
                "key": "$ADD RMT (nnnn)",
                "val": "Add one or more RJE workstations"
            },
            {
                "key": "$C A",
                "val": "Cancel the processing of all or specified automatic command entries and delete those entries"
            },
            {
                "key": "$C A 3",
                "val": "Cancel auto job id=3"
            },
            {
                "key": "$C job",
                "val": "Immediately cancel jobs or TSU sessions currently executing on any member of the MAS and, if desired, provide a storage dump."
            },
            {
                "key": "$D A,L",
                "val": "Display information about currently active jobs"
            },
            {
                "key": "$D BUFDEF",
                "val": "Display the current values of all parameters defined on the BUFDEF initialization statement or command"
            },
            {
                "key": "$D SPOOL",
                "val": "Display the Status of Spool Volumes"
            },
            {
                "key": "$D SPOOLDEF",
                "val": "Display the JES2 spooling environment characteristics"
            },
            {
                "key": "$TA,I=900,T=11.15,'$VS,\\[\\]D A,L\\[\\]'",
                "val": "Display active list every 15 minutes"
            },
            {
                "key": "$TA,I=86400,T=04.15,'$VS,''S TMSDAILY\\[\\]'",
                "val": "Start job TMSDAILY every 24 hours starting at 0415 hours"
            },
            {
                "key": "$TA,I=86400,T=01.15,'$VS,\\[\\]S BACKUP\\[\\]'",
                "val": "Start job BACKUP every 24 hours starting at 0115 hours"
            },
            {
                "key": "$vs, 'v (234,235,236),offline','d a'",
                "val": "Varys offline devices 234,235,236 and displays all at JES2 startup"
            }
        ],
        "Multiple Virtual Storage (MVS)": [
            {
                "key": "DS QT,483,1",
                "val": "Display Status information on device"
            },
            {
                "key": "D IOS,MIH,DEV=484",
                "val": "Display IOS control unit group information"
            },
            {
                "key": "D ASM",
                "val": "Display Page Data Set Information"
            },
            {
                "key": "D IPLINFO",
                "val": "Display IPL information"
            },
            {
                "key": "D LOGREC",
                "val": "Display the Logrec Recording Medium"
            },
            {
                "key": "D M",
                "val": "Display all the resources"
            },
            {
                "key": "D PARMLIB",
                "val": "Display PARMLIB data sets and volumes Information"
            },
            {
                "key":"D PROD,REGISTERED",
                "val":"Display Registered Products"
            },
            {
                "key":"D PROG,LNKLST",
                "val":"Display LNKLST Information"
            },
            {
                "key":"D PROG,APF",
                "val":"Display Entries in the List of APF-Authorized Libraries"
            },
            {
                "key":"D SMF",
                "val":"Display System Management Facilities"
            },
            {
                "key":"D SMF,O",
                "val":"Display SMF Data"
            },
            {
                "key":"D SMS,STORGRP (storgrp)",
                "val":"Display storage group status using the DISPLAY SMS command"
            },
            {
                "key":"D SYMBOLS",
                "val":"Display assigned name of the systems"
            },
            {
                "key":"D U,IPLVOL",
                "val":"Display Device Status and Allocation"
            },
            {
                "key":"F TSO,USERMAX=1",
                "val":"Set TSO user to max of one user"
            },
            {
                "key":"D XCF,COUPLE",
                "val":"Display info on the couple data sets, which used at IPL, names, DASD, etc"
            },
            {
                "key":"VARY CN(*),ACTIVATE",
                "val":"Activate the console you are on"
            },
            {
                "key":"D C,HCONLY",
                "val":"Display hard copy consoles"
            }
        ],
         "Data Facility System Managed Storage (DFSMS)": [
            {
                "key": "F CATALOG,REPORT,CACHE",
                "val": "Reports caching statistics for both caching approaches of catalog management to cache catalog information"
            },
            {
                "key": "F CATALOG,REPORT,PERFORMANCE",
                "val": "This new modify catalog command reports counts for various events and the average elapsed time for these events"
            },
            {
                "key": "F CATALOG,LIST (id|yyyyyy) | LISTJ (jobname)",
                "val": "Detail information and used in real-time diagnosis when problems arise"
            }
        ],
        "Time Sharing Option/Extensions (TSO/E)": [
            {
                "key": "SYNC",
                "val": "Command to initialize SYS1.BRODCAST data set and to synchronize it with the RACF data set, SYS1.UADS, or both"
            },
            {
                "key": "SHOWMVS",
                "val": "List all kinds of info on your system (by using ISPF)."
            }
        ],
        "Virtual Telecommunications Access Method (VTAM)": [
            {
                "key": "D NET,MAJNODES",
                "val": "Display the all active nodes in the domain"
            },
            {
                "key": "Z NET",
                "val": "Take down VTAM normally but not allowing LU sessions to end normally"
            },
            {
                "key": "Z NET,CANCEL",
                "val": "Take down VTAM when the above 2 options fail. Cancel will kill everything whether they are in Pending states"
            },
            {
                "key": "D NET,BFRUSE,BUFFER=SHORT",
                "val": "Display information about VTAM buffer used"
            }
        ],
        "Virtual Lookaside Facility (VLF)": [
            {
                "key": "F CATALOG,REPORT,CACHE",
                "val": "Determining Catalogs in VLF"
            },
            {
                "key": "F CATALOG,NOVLF (your.catname)",
                "val": "Removing Catalogs from VLF"
            }
        ],
        "System Display and Search Facility (SDSF)": [
            {
                "key": "XDC",
                "val": "Typing this command on the line of the job you want to save as a data set. It displays a self explaining menu. Your job is NOT remove for the output queue"
            }
        ]
     }
}
