### Starting BKMSTSKD Command Line Example Source: https://www.ibm.com/docs/en/backup-recovery/2.4_topic=tasks-task-12-starting-bkmstskd Illustrates the operator command to start the BKMSTSKD task, assigning a JOBNAME and specifying AUTOSTART. This method allows for individual image task management. ```Console Command S BKMSTSKD,JOBNAME=DAD,PARM=AUTOSTART ``` -------------------------------- ### Starting BKMSTSKR when AUTOSTART is YES Source: https://www.ibm.com/docs/en/backup-recovery/2.4_topic=tasks-task-13-starting-bkmstskr Instructions for starting the BKMSTSKR task when the AUTOSTART parameter is set to YES in the BKMINI member. This requires issuing a specific command to start BKMSTSKR with a chosen job name. ```jcl S BKMSTSKR,JOBNAME=RSP ``` -------------------------------- ### Rename Data Sets Starting with BKMI and Ending with MAY Source: https://www.ibm.com/docs/en/backup-recovery/2.4_topic=command-fullrename-restrictions This example renames all data sets that begin with 'BKMI' and end with 'MAY' to end with 'JUNE'. It utilizes the wildcard '**' to represent any number of intermediate qualifiers. ```JCL FULLRENAMEMASKS(BKMI.**.MAY,**.JUNE) ``` -------------------------------- ### Alternative BKMSTSKD JCL Execution Source: https://www.ibm.com/docs/en/backup-recovery/2.4_topic=tasks-task-12-starting-bkmstskd Provides alternative JCL formats for executing the BKMSTSKD program, including a shorthand for the AUTOSTART parameter. These variations offer flexibility in how the task is initiated. ```JCL //BKMSTSKD EXEC PGM=BKMSTSKD,PARM=AUTOSTART ``` ```JCL //BKMSTSKD EXEC PGM=BKMSTSKD, PARM=A ``` -------------------------------- ### Mainframe Data Loading with RECEIVE Command Source: https://www.ibm.com/docs/en/backup-recovery/2.4_topic=tasks-task-10-loading-demonstration-aggregates This snippet demonstrates the TSO READY prompt command to load a binary file into a mainframe dataset. It specifies the input dataset and shows the interactive prompts and successful completion message. Dependencies include having the 'receive' utility available on the mainframe. ```JCL receive indataset('BKM.demoaggs.bin') INMR901I Data Set BKM.DEMOAGGS.UNLOAD from DS01 on NODENAME INMR906A Enter restore parameters or 'DELETE' or 'END' + INMR001I Restore successful to data set 'DS01.DEMOAGGS.UNLOAD' READY ``` -------------------------------- ### Rename Three-Qualifier DSNs with Middle Qualifier PAY Source: https://www.ibm.com/docs/en/backup-recovery/2.4_topic=command-fullrename-restrictions This example renames any three-qualifier data set where the middle qualifier is 'PAY' to a new name starting with 'BKMI'. It uses wildcards for the first and third qualifiers. ```JCL FULLRENAMEMASKS(*.PAY.*,BKMI.PAY.*) ``` -------------------------------- ### DSS Output Format Example Source: https://www.ibm.com/docs/en/backup-recovery/2.4_topic=sets-dss-output-format-example This code snippet demonstrates a typical DSS output format, including application details, system parameters, and dataset specifications for backup operations. It highlights how datasets are included and directed to tape output. ```JCL /* APPL Name:BELLALT */ /* Desc:APPLICATION CREATED BY:MSIS04T ON 01/10/04 */ /* */ /* DSN FORMAT: DSS */ /* SYSID: **** */ /* EXEC MODE: DIALOG (OPTION-4) */ /* RE-EVALUATE DATASET ENTRIES: YES */ /* DATASETS EVALUATED FROM: SMF AND JCL */ /* TAPE DATASETS AS ACCOMPANY: NO */ /* USE SIZE FOR INC/ACC TAPES: NO */ /* CTLG CHK: ENABLED */ /* PROCESS FILTERS: YES */ /* NAME TYPE FOR GDSES: ABSOLUTE */ /* GDSES EVALUATED FROM: SMF AND JCL */ /* EXPAND BASE GDG REFERENCE: NO */ /* ADD MISSING GDSES: MIN FOR FWD RECOVRY */ /* CATEGORY FOR MISSING GDSES: INCLUDE */ /* CATEGORY FOR NEW GDSES: INCLUDE */ /* */ DUMP DATA SET(INCLUDE( PBACR.CR932M.PTP1006 /* DASD (A4PRAB) */ - PCRAB.AB3906M.REPORT /* DASD (A4PRAB) */ + PCRAB.AB3907M.REPORT /* DASD (A4PRAE) */ + PCRAB.AB3908M.REPORT /* DASD (A4PRAE) */ + SUFYP.SEND.BFTCNTL /* DASD (A4SUAL) */ - SUOPP.PROD.DMSSLLB /* DASD (A4SUAY) */ - SUOPP.PROD.LLBWK1 /* DASD (A4SUBH) */ - SUOPP.PROD.PROC /* DASD (S1SYP3) */ - )) - INDYNAM((......)) - OUTDD(TAPE) ``` -------------------------------- ### UNLOADIDS with Job Filtering (JCL) Source: https://www.ibm.com/docs/en/backup-recovery/2.4_topic=command-unloadids-syntax This JCL example demonstrates unloading aggregates and specific jobs using the UNLOADIDS command. It unloads all aggregates and jobs starting with 'PAY*', excluding 'PAY1', with 3 generations specified. ```JCL //STEPNAME EXEC BKMBPROC //BKMBATCH.SYSIN DD * UNLOADIDS OUTFILE(PROD.BKM.INVDB.UNLOAD.IDS) - AG(*) JOB(PAY*) EXCLJOB(PAY1) GENS(3) ``` -------------------------------- ### Rename Three-Qualifier DSNs with Wildcards Source: https://www.ibm.com/docs/en/backup-recovery/2.4_topic=events-about-using-fullrename-feature-arecover This example demonstrates renaming any three-qualifier data set name (DSN) where the mid-level qualifier is 'PAY' to a new name that starts with 'ACME'. It uses wildcards to match any first and third qualifiers. ```JCL FULLRENAMEMASKS(*.PAY.*,ACME.PAY.*) ``` -------------------------------- ### Sample JCL for BKMAPLEN, Backup, and BKMBKEND Source: https://www.ibm.com/docs/en/backup-recovery/2.4_topic=considerations-rsp-cycle This JCL example demonstrates the execution of BKMAPLEN, followed by a backup step (ADRDSSU), and a conditional BKMBKEND step. It's designed to handle potential failures in the backup step by controlling the subsequent execution flow. ```JCL //APPLRR JOB (ACCT),'APPL END',CLASS=A,MSGCLASS=X, // NOTIFY=&SYSUID,REGION=8M //PROCLIB JCLLIB ORDER=prefix.value.SBKMJCL //* //* APPLEND, BACKUP AND BKUPEND //* //BKMAPLEN EXEC BKMAPLEP,APPL=APPLRR //BACKUP EXEC PGM=ADRDSSU,REGION=8M //SYSPRINT DD SYSOUT=* //TAPE DD DSN=APPLRR.BKUP(+1) // UNIT=SYSDA,DISP=(CATLG),SPACE=(TRK,(5,5),RLSE) //SYSIN DD DSN=APPLRR.SELECT,DISP=SHR //BKMBKEND EXEC BKMBPROC,BPARM='APPL(APPLRR)',COND=(0,NE,BACKUP) //BKMBATCH.SYSIN DD * BKUPEND CHECK-CHANGED-SINCE-LAST-BKUP(N) + NO-BKUP-FOUND-RC(4) BAD-BKUP-RC(8) ``` -------------------------------- ### Starting BKMSTSKR when AUTOSTART is NO Source: https://www.ibm.com/docs/en/backup-recovery/2.4_topic=tasks-task-13-starting-bkmstskr Instructions for starting the BKMSTSKR task when the AUTOSTART parameter is set to NO in the BKMINI member. This involves manually issuing startup commands for BKMSTSKR and RSP. ```jcl S BKMSTSKR,JOBNAME=RSP F RSP,AUTOSTART ```