Archive for category Tech – Mainframe
External Time Reference (ETR)
Posted by Rui Miguel Feio in Glossary, MVS, Tech - Mainframe on February 21, 2011
External Time Reference hardware facility (ETR) is the generic name for IBM Sysplex Timer.
The ETR architecture provides the means of synchronizing TOD clocks in different CPCs with a centralized time reference, which in turn can be set accurately on the basis of UTC time standard (External Time Source). The architecture defines a time-signal protocol and a distribution network (called the ETR network) that permits accurate setting, maintenance, and consistency of TOD clocks.
Notes:
CPC – Central Processor Complex
TOD – Time of Day
UTC – Coordinated Universal Time
Cross-System Coupling Facility (XCF)
Posted by Rui Miguel Feio in Glossary, MVS, Tech - Mainframe on February 21, 2011
The cross-system coupling facility (XCF) component of z/OS manages communications between applications in a sysplex. XCF services allow authorized programs in a sysplex to communicate with programs on the same MVS system or other MVS systems. If a system fails, XCF services also provide the capability for batch jobs and started tasks to be restarted on another eligible system in the sysplex.
z/OS XCF allows up to 32 z/OS systems to communicate in a sysplex.
Create a History Data Set from Log Data Recorded on the Logrec Log Stream
Posted by Rui Miguel Feio in JCL, MVS, Tech - Mainframe on February 21, 2011
The following JCL creates a history data set from log data recorded on the Logrec log stream
//LOGRECHS JOB,MSGLEVEL=(1,1),MSGCLASS=X,NOTIFY=&SYSUID
//EREPDALY EXEC PGM=IFCEREP1,PARM=('HIST,ACC=Y,SYSUM')
//ACCIN DD DSN=SYS1.SYSPLEX.LOGREC,
// SUBSYS=(LOGR,IFBSEXIT,,'DEVICESTATS,LASTRUN'),
// DCB=(RECFM=VB,BLKSIZE=4000)
//ACCDEV DD DSN=MVS.LOGREC.LGSTREAM.HISTORY,
// DISP=(NEW,CATLG),
// DCB=(RECFM=VB,BLKSIZE=4000),
// UNIT=SYSDA,SPACE=(CYL,(25,5))
//SERLOG DD DUMMY
//DIRECTWK DD UNIT=SYSDA,SPACE=(CYL,15,,CONTIG)
//TOURIST DD SYSOUT=A,DCB=BLKSIZE=133
//EREPPT DD SYSOUT=A,DCB=BLKSIZE=133
//SYSABEND DD SYSOUT=A
//SYSIN DD DUMMY
/*
EREP Control Statements
Posted by Rui Miguel Feio in MVS, Tech - Mainframe on February 15, 2011
The following control statements are used to give EREP information about your configuration and set up the overall criteria for the way EREP creates the report:
| Control | Description |
| CONTROLLER | Tells EREP to combine the error records associated with this particular control unit and its attached devices. |
| DASDID | Tells EREP that this is the configuration of the 33XX DASDs within each subsystem; identifies those that do not provide physical IDs for the system exception report series. This control statement applies only to the system exception report series. |
| ENDPARM | Tells EREP that this is the end of the in-stream EREP parameters; the in-stream data that follows consists of EREP control statements. |
| LIMIT | Tells EREP to produce output for the system exception reports only when the number of megabytes processed per error is less than the megabytes specified by the error frequency value and the number of times the error occurs is greater than or equal to the number specified by the count value. This control statement applies only to the system exception report series. |
| SHARE | Tells EREP to combine the records for these devices that are shared between systems. This control statement applies to all the reports that generate I/O device summaries. |
| SYSIMG | Tells EREP to modify the CPU serial numbers for n-way processors so that those processors operating in the same system image are reported under the same CPU serial number. |
I’m not describing here the syntax of these Controls but they can be seen on Chapter 3, “EREP Control Statements” in the EREP Reference manual, available on IBM’s website.
EREP Processing Parameters
Posted by Rui Miguel Feio in MVS, Tech - Mainframe on February 15, 2011
The following parameters are used to control the way EREP processes the records that were selected:
| Parameter | Description |
| ACC=Y or N |
|
| HIST=Y or N |
|
| LINECT=nnn |
|
| LINELEN={132 | 165 | 204} |
|
| MERGE=Y or N |
|
| SHORT=Y or N |
|
| TABSIZE=nnnnK |
|
| ZERO=Y or N |
|
EREP Selection Parameters
Posted by Rui Miguel Feio in MVS, Tech - Mainframe on February 9, 2011
The following parameters are used to select the records for EREP to use:
| Parameter | Description |
| CPU=({nnnnnn|Xnnnnn|XXnnnn}
.model [, ...]) |
|
| CPUCUA=(serial.{cua|cuX}
[,serial.{cua|cuX}]…) |
|
| CUA=({[N]addr|[N]addr-[N]addr}[, ...]) |
|
| DATE=({yyddd[,yyddd] | yyddd[-yyddd]}) |
|
| DEV=(type | Ntype[,type | Ntype]…) |
|
| DEVSER=(serial[,serial]…) |
|
| ERRORID=(seqno[,cpuid,asid,
hh,mm,ss,t]) |
|
| LIA | LIBADR=address |
|
| MOD=(model[,model]…) |
|
| MODE={370 | 370XA | ALL} |
|
| SYMCDE={nnnn | nnnX | nnXX | nXXX} |
|
| TERMN=name |
|
| TIME=({hhmm,hhmm | hhmm-hhmm}) |
|
| TYPE=code[code]... |
A - A1 through AF records B - B1 through BF records C - CCH/CRW/SLH: Channel check/channel report word/subchannel logout records D - DDR: Dynamic device reconfiguration records E - System termination (EOD): End of day and other terminating events F - F0 through FF records H - MIH: Missing interrupt records I - System initialization (IPL): Initial program load M - MCH: Machine check records O - OBR: Outboard records; unit checks S - Software (SFT): System abends and other software events T - MDR (formerly TPR): Miscellaneous data records X - C0 through CF records Y - D0 through DF records Z - E0 through EF records |
| VOLID=(volser[,volser]...) |
|
List the Information from the Logrec Data Set
Posted by Rui Miguel Feio in JCL, MVS, Tech - Mainframe on February 8, 2011
Next are a few examples of Jobs to list information from the Logrec Data Set:
1. Detail Edit Report
This job generates detail edits and summaries of all software and operational records:
//EREPRPT1 JOB,MSGLEVEL=(1,1),MSGCLASS=X,NOTIFY=&SYSUID
//REPORT1 EXEC PGM=IFCEREP1,PARM='CARD'
//ACCIN DD DSN=MVS.LOGREC.HISTORY,DISP=SHR
//DIRECTWK DD UNIT=SYSDA,
// SPACE=(CYL,5,,CONTIG)
//EREPPT DD SYSOUT=A,DCB=BLKSIZE=133
//TOURIST DD SYSOUT=A,DCB=BLKSIZE=133
//SYSIN DD *
PRINT=PS
TYPE=SIE
HIST
ACC=N
ENDPARM
/*
2. Event History Report
The following is a two-step job. The first step prints an event history report for all Logrec data set records. The second step formats each software, IPL, and EOD record individually.
This Job can be a very useful tool to the problem solver because it prints the records in the same sequence they were recorded and therefore shows an interaction between hardware error records and software error records.
//EREPRPT2 JOB,MSGLEVEL=(1,1),MSGCLASS=X,NOTIFY=&SYSUID
//* -------------------------------
//* - STEP 1 ----------------------
//* -------------------------------
//*
//EREPA EXEC PGM=IFCEREP1,PARM='EVENT=Y,ACC=N',REGION=256K
//SERLOG DD DSN=SYS1.LOGREC,DISP=SHR
//TOURIST DD SYSOUT=A
//EREPPT DD SYSOUT=A,DCB=BLKSIZE=133
//SYSIN DD DUMMY
//*
//* -------------------------------
//* - STEP 2 ----------------------
//* -------------------------------
//*
//EREPB EXEC PGM=IFCEREP1,PARM='TYPE=SIE,PRINT=PS,ACC=N',
// REGION=256K
//SERLOG DD DSN=SYS1.LOGREC,DISP=SHR
//TOURIST DD SYSOUT=A
//EREPPT DD SYSOUT=A,DCB=BLKSIZE=133
//SYSIN DD DUMMY
/*
3. Detail Summary Report
This job generates detail summaries of all I/O errors:
//EREPRPT3 JOB,MSGLEVEL=(1,1),MSGCLASS=X,NOTIFY=&SYSUID
//REPORT3 EXEC PGM=IFCEREP1,PARM='CARD'
//ACCIN DD DSN=MVS.LOGREC.HISTORY,DISP=(OLD,PASS)
//DIRECTWK DD UNIT=3390,
// SPACE=(CYL,5,,CONTIG)
//EREPPT DD SYSOUT=A,DCB=BLKSIZE=133
//TOURIST DD SYSOUT=A,DCB=BLKSIZE=133
//SYSIN DD *
PRINT=SU
TYPE=DOTH
DEV=(N34XX,N3704,N3705,N3720,N3725,N3745)
HIST
ACC=N
ENDPARM
For more information regarding the parameters and control statements used in these jobs check the following links:
- EREP Report Parameters
- EREP Selection Parameters
- EREP Processing Parameters
- EREP Control Statements
EREP Report Parameters
Posted by Rui Miguel Feio in MVS, Tech - Mainframe on February 8, 2011
The following parameters are used to request reports from EREP:
| Parameter | Description |
| EVENT=Y or N |
|
| PRINT= AL | DR | NO | PS | PT | SD | SU |
|
| SYSEXN=Y or N |
|
| SYSUM=Y or N |
|
| THRESHOLD=(xxx,yyy) |
|
| TRENDS=Y or N |
|
Create a History Data Set from the Logrec Data Set
Posted by Rui Miguel Feio in JCL, MVS, Tech - Mainframe on February 3, 2011
By creating a history file and then running all the reports against that file, the Systems Programmer ensures that all of the reports are using the same set of records.
//LOGRECHS JOB CLASS=A,MSGLEVEL=(1,1),MSGCLASS=X,NOTIFY=&SYSUID
//*------------------------------------------------------------------
//* COPIES SYS1.LOGREC TO HISTORY FILE MVS.LOGREC.HISTORY
//*------------------------------------------------------------------
//HISTORY EXEC PGM=IFCEREP1,REGION=1024K,
// PARM='ACC,ZERO=N'
//SERLOG DD DISP=(OLD,KEEP),DSN=SYS1.LOGREC
//ACCDEV DD DISP=(NEW,PASS),DSN=MVS.LOGREC.HISTORY,
// UNIT=3390,SPACE=(CYL,(2,2)),
// DCB=(RECFM=VB,BLKSIZE=6144)
//DIRECTWK DD DISP=(NEW,DELETE),UNIT=3390,SPACE=(CYL,2,,CONTIG)
//EREPPT DD SYSOUT=A,DCB=BLKSIZE=133
//TOURIST DD SYSOUT=A,DCB=BLKSIZE=133
//SYSIN DD DUMMY
/*
How to clear and re-initialize the Logrec Data Set SYS1.LOGREC
Posted by Rui Miguel Feio in JCL, MVS, Tech - Mainframe on February 3, 2011
It’s not uncommon for the SYS1.LOGREC dataset to fill up. Although you should dump the content of the SYS1.LOGREC to DASD or Tape to keep that information for future use (if you need to analyse a problem), you sometimes may simply wish to clear all its content and re-initialize it. The solution is to run IFCDIP00.
//IFCDIP00 JOB CLASS=A,MSGLEVEL=(1,1),MSGCLASS=X,NOTIFY=&SYSUID
//********************************************************************
//* CLEAR AND INITIALIZE HARDWARE EVENT RECORDER DATASET *
//********************************************************************
//IFCDIP00 EXEC PGM=IFCDIP00
//SERERDS DD DSN=SYS1.LOGREC,DISP=OLD,
// VOL=SER=MVSRES,
// UNIT=3390
In this example we will clear and re-initialize the content of SYS1.LOGREC located on volume MVSRES.
Follow Me!