Latest issues
Operating Systems
Home >
Operating Systems > MVS BOOT CAMP: Leveraging Your Coupling Facility to Enhance LOGREC
 SUB DEPTS
Print this article

< Previous Page 1 2 3 Next Page >
subscribe to z/Journal today!

MVS BOOT CAMP: Leveraging Your Coupling Facility to Enhance LOGREC



by John E. Johnston
October 1, 2004

The DEFINE LOGSTREAM statement defines the LOGREC log stream:

•    The name must be SYSPLEX.LOGREC.ALLRECS.
•    STRUCTNAME must match the name specified in the CFRM policy.
•    AUTODELETE(YES) and RETPD(90) parameters work together to automatically delete records more than 90 days old.
•    LS_SIZE specifies the number of 4KB blocks of the DASD data set used to offload the structure when it reaches the HIGHOFFLOAD full percentage.
•    HLQ specifies the High-Level Qualifier of DASD offload data set. This HLQ is placed at the beginning of the log stream name. For example, the offload data sets in this example would be named SAPZPLEX.SYSPLEX. LOGREC.ALLRECS.xxx (where xxx is a counter the MVS logger function adds).

After you run the IXCMIAPU utility, you can check the status of the MVS logger by issuing these commands:

D LOGGER, STATUS
(displays the status of the MVS Logger)
D LOGGER,CONNECTION
(displays active Logger log streams)

Now it’s time to tell LOGREC to change its recording medium from the LOGREC disk data set to our newly defined log stream. To do this, issue this command:

SETLOGRC LOGSTREAM

You should see responses to the command as shown in Figure 6. You can also check the status of the LOGREC recording medium by issuing the “D LOGREC” command.



You can change your IEASYS parmlib member to direct LOGREC to record its data directly to the log stream instead of the disk data set. However, this isn’t recommended. Rather, the recommended method is to let LOGREC come up after an IPL with the standard method of using the disk data set. Then, after the IPL, issue the SETLOGRC command to switch the recording medium to the log stream. The reason for this is that if the LOGREC log stream isn’t available during the IPL, the IPL won’t complete.

Final Thoughts
The JCL you use to generate the EREP report will need to change to read the log stream rather than the DASD LOGREC data set. There’s a sample job for this (and more) in SYS1.SAMPLIB(IFBEREPS).

Using a coupling facility structure and the MVS logger for collecting LOGREC data is a much simpler method to maintain LOGREC data. While you’re revamping LOGREC and EREP, you should also check out the online LOGREC viewer. This handy utility lets you view LOGREC data online via an ISPF application. You can download this free utility from IBM at www-ibm.com/servers/s390/os390/downloads/ logrec_viewer.html.

References
Systems Programmers Guide to z/OS System Logger (SG24-6898-00)
Parallel Sysplex Operational Scenarios (SG24-2079-00)

< Previous Page 1 2 3 Next Page >
This article has no comments. Be the first to comment!
 COMMENT ENTRY
Name:
Email:
Location:
Website:
Comments:
Remember my personal information
Notify me of follow-up comments?
Please enter the word
you see in the image below:
   
 SPONSORS
 SEARCH DEPTS
 MAINFRAME JOBS
Mainframe Programmer (CACS) Collections
USAA:A/c,IT,Marketing,Other
San Antonio, TX, US
Mainframe Programmer
General Dynamics Information Technology
Towson, MD, US
Mainframe Programmer
TSR Consulting Services, Inc.
New York, NY, US
Mainframe Programmer
HP
Baltimore, MD, US
Mainframe Developer (Cobol, PL1, JCL)
USAA:A/c,IT,Marketing,Other
San Antonio, TX, US
Mainframe System Programmer
General Dynamics - IT
San Mateo, CA, US
Mainframe System Programmer
General Dynamics - IT
Eagan, MN, US
Technical Associate - Mainframe Programmer
Charles Schwab
Phoenix, AZ, US
Mainframe Computer Operator
100-DST Systems, Inc.
Kansas City, MO, US