FDRSARLR Examples
All examples in this section are found in the JCL library installed with FDR. The member names are EX1523x.
Load SAR to DASD volume from FDRSAMP library example
Execute FDRSARLR to place SAR onto a DASD volume, copying it from the FDR Installation FDRSAMP (change the data set name to match what you used during FDR installation). This is the recommended way to load SAR to a DASD volume as most FDR installs are performed electronically.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//OBJIN DD DISP=SHR,DSN=hlq.FDRSAMP(SAROBJ)
//OUTPUT DD UNIT=SYSALLDA,VOL=SER=volser,DISP=SHR
Load SAR to DASD volume and changing options example
Execute FDRSARLR to place SAR onto a DASD volume, copying it from the FDR Installation FDRSAMP, specify several alternate console addresses, and place SAR onto the label track of a DASD volume. If you want to copy SAR to a DASD without changing any options, omit SYSIN and the control statements.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//OBJIN DD UNIT=TAPE,VOL=SER=FDR54P,
// DSN=SAR,DISP=OLD
//OUTPUT DD UNIT=SYSALLDA,VOL=SER=volser,DISP=SHR
//SYSIN DD *
CONSOLE DEVICE=3270
CONSOLE UNIT=005
CONSOLE UNIT=006
CONSOLE UNIT=007
/*
Load SAR to tape from FDRSAMP library example
Execute FDRSARLR to place SAR onto an unlabeled tape volume, copying it from the FDR Installation FDRSAMP (change the data set name to match what you used during FDR installation).
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//OBJIN DD DISP=SHR,DSN=IDP.hlq.FDRSAMP(SAROBJ)
//OUTPUT DD UNIT=TAPE,LABEL=(,NL),VOL=SER=IPLSAR,
// DSN=IPLSAR,DISP=(,KEEP)
Modifying SAR on DASD example
Execute FDRSARLR to modify a copy of SAR previously written to DASD and write it back to the same DASD. The example shows VER and REP statements used to apply an BMC-provided fix to SAR, but this can also be used to change console addresses or message option defaults stored in that copy of SAR.
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//OBJIN DD UNIT=SYSALLDA,VOL=SER=volser,DISP=SHR
//OUTPUT DD UNIT=SYSALLDA,VOL=SER=volser,DISP=SHR
//SYSIN DD *
VER aaaa dddd VERIFY 'dddd' at address 'aaaa'
REP aaaa eeee REPLACE 'eeee' at address 'aaaa'
DUMP Print SAR object module
/*
Print SAR boot records
Execute FDRSARLR to print the IPL records as well as the FDRSAR program that is loaded on the DASD volume. PARM option PROBJIN (Print Object Input) is used to print the SAR object code from the volume specified in OBJIN DD statement. This can be used as a debugging tool to determine if the latest version of FDRSAR is being loaded.
//STEPLIB DD DISP=SHR,DSN=fdr.loadlib
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//OBJIN DD UNIT=SYSALLDA,DISP=SHR,
// VOL=SER=volser
//OUTPUT DD DUMMY
This is an example of the output.
>>>>>>>---DISK IPL1 RECORD WILL BE PRINTED---<<<<
0000 00000000 00000000 06010000 40000090 08010000 00000001 *................................*
>>>>>>>---DISK IPL2 RECORD WILL BE PRINTED---<<<<
0000 07010020 40000006 31010026 40000005 08010008 00000001 06000000 0000825C *................................*
0020 00000000 00000000 00000400 00000000 00000000 00000000 00000000 00000000 *................................*
0040 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 *................................*
0060 000000C1 E2D4F2F0 F1F7F1F0 F1F80000 42150102 99011917 6FC6C4D9 E2C1D9D3 *...ASM20171018...........FDRSARL*
0080 D960F64B F1614040 40400000 00000000 *R.6.1...........................*
>>>>>>>---DISK DATA RECORD WILL BE PRINTED---<<<<
0000 00000000 00000000 000C0000 00000390 00000000 00000000 00000000 00000000 *................................*
0020 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 *................................*
…
06C0 00000000 00000000 00000000 00000000 2A822A00 40000FFF 2A40C6C4 D940E2C1 *..........................FDR.SA*
06E0 D940C2D4 C340E2D6 C6E3E6C1 D9C540C9 D5C34040 40404040 40404040 40E5C5D9 *R.BMC.SOFTWARE.INC...........VER*
0700 40F64BF1 61404040 60404040 D7D9C5E2 E240C5D5 E3C5D940 C1C6E3C5 D940C5C1 *.6.1........PRESS.ENTER.AFTER.EA*
In the above listing on page 3, the version of SAR’s object code is highlighted. This can be useful to verify that the desired SAR object code was specified in the OBJIN DD when writing the IPLable version of SAR was to the specified DASD volume.