In this section: |
The person implementing FOCLOG should be a system administrator with the ability to create and allocate data sets and who can assign RACF rules. Knowledge of FOCUS is not required.
The modules, FOCEXECs, and Master File needed to run FOCLOG and the FOCLOG reports are distributed as part of the standard FOCUS libraries. No installation steps are required. The administrator only needs to:
The sample file is distributed as member FLOGSAMP in the ERRORS.DATA library. Rename this file so that the member name is FOCUSLOG.
If your site standards require you to implement new features in a test environment, create a temporary FOCUSLOG ERRORS file.
Create a copy of your FOCUS production CLIST and concatenate your ERRORS library in front of the FOCUS production ERRORS library.
Create a temporary log file and place its fully qualified SFS directory name in your private version of the FOCUSLOG ERRORS file.
After validating the FOCLOG implementation, remove your private FOCUSLOG file from your CLIST or minidisk.
Reference: |
These steps provide a high-level overview of the FOCLOG implementation process:
How to: |
You must have a log file allocated and reference it in the FOCUSLOG ERRORS file in order to initiate logging. You should first determine the size of the log file required as described in How to Estimate the Size of the Log File.
Edit and submit the following job to allocate the FOCLOG log file after adding an appropriate job card:
//* add job card here //FLALLOC EXEC PGM=IEFBR14 //FOCLOGF DD DSN=flhlq.FOCLOG.DATA,DISP=(NEW,CATLG), // VOL=SER=volser,UNIT=unit,SPACE=(CYL,(p,s)), // DCB=(RECFM=VB,LRECL=256,BLKSIZE=12288),DSORG=PS /*
where:
Is the high-level qualifier for the FOCLOG file.
Is a valid DASD unit for the FOCLOG file.
Is the volume serial number of the unit on which you want to store the FOCLOG file.
Is the primary space allocation in cylinders.
Is the secondary space allocation in cylinders.
The following are suggestions for naming conventions for you log file:
The size of the log file required depends on factors such as the number of users and FOCUS applications in your environment, plus the length of time for which you wish to capture information.
Consider these suggestions when estimating its size:
Estimating user session statistics. A sample user session lasting one hour and containing 26 DD allocations running 25 TABLE requests will produce approximately 77 output records to the log. There will be one session record for the user session, 26 DSNS records (one per DD allocation), and 50 records from the TABLE requests (2 per request). Assuming that the average number of bytes per record is 50, this sample user session will produce 3850 bytes of output in the log.
One cylinder on an IBM 3390-3 device contains 737280 bytes. Therefore, approximately 190 user sessions of this size would fill one cylinder (737280 / 3850).
To apply this calculation at your site, you must evaluate the number of allocations in your production FOCUS CLIST/JCL and estimate how many TABLE requests each session is likely to run in an hour. Then use the following formulas to estimate the size of the log file:
bytes_per_hr = no_of_users * ((1+ number_of_allocs + (2 * avg_no_of_TABLEs)) * 50) user_sessions_per_cylinder = 737280 / bytes_per_hr
Determine how many user sessions you wish to log per day, week, or month and allocate cylinders accordingly. For example, using the sample session described above, eight cylinders would be adequate for collecting 190 user sessions per hour for an eight hour period.
Collecting sample data. If you don't know the level of FOCUS usage at your site, and cannot apply the above technique, you may just wish to collect data for a given period using a large log file and see how long it takes to fill or how much is used. For example, allocate a 100-cylinder log file for use in production for one business day and at day's end, use ISPF to determine how much of the log was populated. If you used 10 cylinders of the log file on a fairly typical day, a good estimate for the size is 10 cylinders per day. Extend this to determine numbers of cylinders required for longer periods. The only penalty for under-sizing your log is that logging stops when the log is full.
In designing the log file, also take the following considerations into account:
Reference: |
Usage can be logged at three levels, producing either a short form log, a detailed log, or a summary log, as described in the examples that follow.
Activation of logging requires three components:
Note: If you perform these steps, you will automatically activate FOCLOG. Do not perform these steps until you are ready to activate FOCLOG.
The FOCUSLOG file in this example points to a FOCLOG file named FLHLQ.FOCLOG.DATA. Because the data set name is followed by blanks, this generates a default form of the log containing information about all attributes defined in the FOCLOG Master File, except the data set names of the FOCEXEC files, Access Files, and Master Files.
FLHLQ.FOCLOG.DATA
This FOCUSLOG member produces a detailed form of the log containing everything in the FOCLOG Master File plus the data set names of FOCEXEC files, Master Files, and Access Files.
To create the detailed log, the FOCLOG file named FLHLQ.FOCLOG.DATA must be followed by at least one blank and the word DETAIL:
FLHLQ.FOCLOG.DATA DETAIL
This FOCUSLOG member points to the same log file as the one defined in Requesting a Default Form of the Log on z/OS, but this request creates a session summary form of the log containing only information contained in the session segment of the FOCLOG Master File.
To create a session summary log, the FOCLOG file named FLHLQ.FOCLOG.DATA must be followed by at least one blank plus the word SESSION:
FLHLQ.FOCLOG.DATA SUMMARY
When FOCUS is initiated, it checks for the presence of the log file. If the FOCUSLOG file is present, usage data is written to memory during the FOCUS session. The information stored in memory is written to the log file at FIN, during FOCUS termination, if a valid log file exists. Therefore, FOCLOG does not produce any unnecessary overhead or use additional CPU cycles for capturing usage data.
Because logging depends on having a FOCUSLOG file, you can deactivate FOCLOG by renaming the FOCUSLOG file.
Note:
This step validates your FOCLOG configuration and enables you to confirm that the log file was allocated and defined properly. It does not test FOCUS functionality, which is not impacted by FOCLOG.
At the FOCUS prompt, issue the following command and press Enter to create a temporary FOCUS database named CAR and load it with data:
EX FLVALPOP
The following messages display:
> NEW FILE CAR ON 09/15/2007 AT 09.06.57 CAR ON 09/15/2007 AT 09.06.57 WARNING..TRANSACTIONS ARE NOT IN SAME SORT ORDER AS FOCUS FILE PROCESSING EFFICIENCY MAY BE DEGRADED TRANSACTIONS: TOTAL = 53 ACCEPTED= 53 REJECTED= 0 SEGMENTS: INPUT = 102 UPDATED = 0 DELETED = 0
You can ignore any warning messages. The important thing to note is that 53 transactions were accepted and that 102 segments were input. Note: If you have problems running this procedure, please contact the Information Builders Customer Support Services staff.
FIN
Ending the FOCUS session updates the log with the information about the procedure you executed.
DYNAM ALLOC DD FOCLOG DA flhlq.FOCLOG.DATA SHR REU
EX FLVALRPT
The following messages display to indicate that the report is ready to view:
> NUMBER OF RECORDS IN TABLE= 3 LINES= 3 PAUSE.. PLEASE ISSUE CARRIAGE RETURN WHEN READY
Press Enter to view the report. It should be similar to the following, but display your session statistics and user ID:
PAGE 1 VALIDATION OF SESSION COMMANDS ISSUED STARTDATE SESSTART USERID COMMAND FNAME RECORDS LINES --------- -------- ------ ------- ----- ------- ----- 2007/09/15 11:45:05.260 FLHLQ CREATE . 0 0 FLHLQ MODIFY CAR 102 0 FLHLQ TABLE CAR 18 1
This output shows that the log is working properly. After producing the report, the procedure deallocates DDNAMEs CAR and FOCLOG. Note: If you have problems running this request, please contact the Information Builders Customer Support Services staff.
Press Enter to close the report window.
FIN
You have now completed the configuration and validation process. You can now notify your FOCUS Administrator that the product is available for use.
Note: This validation procedure added data to the log file that does not reflect actual FOCUS usage at your site. Therefore, you should edit the log file to delete this data before putting the log into production. To delete the data, open the log file in the ISPF Edit Panel and delete the lines that contain the data.
When you enter an online FOCUS session, you see a banner similar to the following. The two carets at the bottom (> >) are the FOCUS prompt, although your site may have changed the prompt:
FOCUS 7.6.3 09/15/2007 10.12.52 OBSERVED CPU: ******* CEC: machine type N/A model ID N/A capacity N/A ******* LPAR: name N/A capacity N/A ******* Processor AF4A Model 2066-00 Max 02 Site LICENSED CPU(S): ******* Processor 5394 Model 9672-F0 Max 01 >Registration 57E3C86A0887
The following command executes the request that populates the log:
> > ex flvalpop
The following messages display:
> NEW FILE CAR ON 09/15/2007 AT 09.06.57 CAR ON 09/15/2007 AT 09.06.57 WARNING..TRANSACTIONS ARE NOT IN SAME SORT ORDER AS FOCUS FILE PROCESSING EFFICIENCY MAY BE DEGRADED TRANSACTIONS: TOTAL = 53 ACCEPTED= 53 REJECTED= 0 SEGMENTS: INPUT = 102 UPDATED = 0 DELETED = 0
The next command ends the FOCUS session and updates the log with statistics regarding the FLVALPOP request:
> fin
Next, we run the CLIST again to go back into FOCUS:
FOCUS 7.6.3 09/15/2007 10.12.52 OBSERVED CPU: ******* CEC: machine type N/A model ID N/A capacity N/A ******* LPAR: name N/A capacity N/A ******* Processor AF4A Model 2066-00 Max 02 Site LICENSED CPU(S): ******* Processor 5394 Model 9672-F0 Max 01 >Registration 57E3C86A0887
Now we allocate the log file and issue the FLVALRPT request to view information from the log:
> > dynam alloc dd foclog da flhlq.foclog.data shr reu > > ex flvalrpt
The following messages display to indicate that the report is ready to view
> NUMBER OF RECORDS IN TABLE= 3 LINES= 3 PAUSE.. PLEASE ISSUE CARRIAGE RETURN WHEN READY
Pressing Enter displays the report:
PAGE 1 VALIDATION OF SESSION COMMANDS ISSUED STARTDATE SESSTART USERID COMMAND FNAME RECORDS LINES --------- -------- ------ ------- ----- ------- ----- 2007/09/15 11:45:05.260 FLHLQ CREATE . 0 0 FLHLQ MODIFY CAR 102 0 FLHLQ TABLE CAR 18 1
Next, press Enter to close the report window and return to the FOCUS prompt.
Execute the FIN command to end the FOCUS session:
> fin
Now empty the log file (using ISPF Edit) before putting the log into production.
FOCLOG is now configured. See FOCLOG Reporting, for instructions about reporting on the captured data.
|
Information Builders |