links: コピーブランド スーパーコピー 財布 スーパーコピーブランド ブランド コピー 時計 スーパーコピー ブランドコピー激安

SMF processing

CONTENTS:

Bottom

1. SMF information
     1.1. What is SMF?
     1.2. Display of current SMF files
2. SUB-CAPACITY PLANNING TOOL
     2.1. Sub-Capacity for z/OS – minimize charges
     2.2. Access to IBM System z Software Pricing information
     2.3. Download scptool.exe
     2.4. Unzip the file scptool.exe
     2.5. SCRT (Sub-Capacity Reporting Tool) – download scrttool.exe
     2.6. Unzip the file scrttool.exe
     2.7. File transfer the binary file from your PC – to MF
3. SMF processing with scptool.exe based on Record type 70 and 89
     3.1. SMFCLEAR
     3.2. System job DUMPXY saving SMF data on weekly data set IPOSAV.SMFDUMPW
     3.3. FCOPSMF – copy smf summary file to kci08.smfdum1w to save and empty it
     3.4. SMFEXTRA – extract of smf data from smf summary file /iposav.smfdumpw/
     3.5. SCPTOOL – calculating the extract of smf data
     3.6. Receive print01.scptool.csv report for one month from MF on PC
     3.7. SMFSAVW – save smf data from smf summary file /iposav.smfdumpw/ to tape as BACKUP.SMFDUMP(+) generation data set
     3.8. RESMFDMP – Restore BACKUP.SMFDUMP(+) generation data set from tape to file KCI08.SMFDUMP1

 

          1. SMF information

               1.1. What is SMF?
SMF (System Management Facilities) collects and records system and job-related information that your installation can use in:
• Billing users.
• Reporting reliability.
• Analyzing the configuration.
• Scheduling jobs.
• Summarizing direct access volume activity.
• Evaluating data set activity.
• Profiling system resource use.
• Maintaining system security.
SMF formats the information that it gathers into system-related records (or job-related records). System-related SMF records include information about the configuration, paging activity, and workload. Job-related records include information on the CPU time, SYSOUT activity, and data set activity of each job step, job, APPC/MVS transaction program, and TSO/E session.
SMF type records:
Record Type 0 (00) – IPL. Record type 0 is written after every SMF initialization. It includes the virtual and central storage sizes and some of the SMF options in effect. See record type 90 (subtype 9) for information about the IPL of SMF.
Record Type 2 (02) – Dump Header
Record Type 3 (03)– Dump Trailer

Record Type 70 (46) — RMF Processor Activity. Subtype 1 — contains measurement data for general purpose processors, logical partitions, and internal coupling facilities. Record type 70 is written for each measurement interval and when the session terminates. As with all SMF records produced by RMF, it contains a header section followed by the RMF product section.It has the following sections:
CPU control section Contains the CPUs by model and version number.
CPU data section Contains general information on CPU use during the interval.
ASID data area section Contains address space use during the interval.
PR/SM partition data section Contains a configured logical partition.
PR/SM logical processor data section Contains a PR/SM logical processor data block.
CPU identification section Identifies a CPU type.

Record Type 89 (59) — Usage Data. The type 89 record provides information about product usage on a particular MVS system.
Record Type 90 (5A) — System Status. Record type 90 is written during initialization processing and whenever certain operator commands are issued. The following events cause the recording of this record during IPL:
• SET TIME command
• HALT EOD command
• SET DATE command
• SET OPT command
• SETSMF command
• SET SMF command
• SET MPF command
• SWITCH SMF command
• SET DAE command
• SET PFK command
• SET PROG command
• VARY WLM command
• IPL
• RESET command

Here is a list of the most common SMF record types:
• RMF records are in the range 70 through to 79. RMF’s records are generally supplemented – for serious performance analysis – by Type 30 (subtypes 2 and 3) address space records.
• RACF type 80 records are written to record security issues, i.e. password violations, denied resource access attempts, etc. Other security systems such as ACF2 also use the type 80 and 81 SMF records.
• SMF type 89 records indicate software product usage and are used to calculate reduced sub-capacity software pricing.
• DB2 writes type 100, 101 and 102 records, depending on specific DB2 subsystem options.
• CICS writes type 110 records, depending on specific CICS options.
• Websphere MQ writes type 115 and 116 records, depending on specific Websphere MQ subsystem options.
• WebSphere Application Server for z/OS writes type 120. Version 7 introduced a new subtype to overcome shortcomings in the earlier subtype records. The new Version 7 120 Subtype 9 record provide a unified request-based view with lower overhead.

               1.2. Display of current SMF files
TSO/ISPF – in sd.log – enter: /D SMF
IEE974I 12.14.30 SMF DATA SETS
NAME VOLSER SIZE(BLKS) %FULL STATUS
P-BC2A.MAN1 BC2MCC 27000 0 ALTERNATE
S-BC2A.MAN2 BC2MCC 27000 38 ACTIVE
S-BC2A.MAN3 BC2MCC 27000 0 ALTERNATE
The 3 SMF files (BC2A.MAN1, BC2A.MAN2, BC2A.MAN3) are filled up automatically by system job DUMPXY sequentially when the current “active” data set BC2A.MAN2 become 100% full and an “alternate” data set is available with 0 % full.

 

          2. SUB-CAPACITY PLANNING TOOL

               2.1. Sub-Capacity for z/OS – minimize charges
The following link explains how to minimize your software monthly charges on the base of real usage of Mainframe resources (with reduced sub-capacity software pricing for z/OS):
http://www-03.ibm.com/systems/z/resources/swprice/subcap/zos.html
When you are running z/OS in 64-bit mode and are no longer running OS/390 on your System z server, you have the option to pay the charges for your eligible software on a sub-capacity basis. The Sub-Capacity Reporting Tool (SCRT) is the program which processes SMF 70 and SMF 89 records created by z/OS to produce a report showing LPAR utilization figures which are used to set the software charges.
Sub-capacity pricing is based on the four-hour rolling average utilization of the z/OS LPARs observed within a one month reporting period. The reporting periods run from 00:00 on the second calendar day of the month through midnight (23:59) on the first calendar day of the following month.

               2.2. Access to IBM System z Software Pricing information
Use the following link to access the IBM System z Software Pricing Website:
http://www-03.ibm.com/systems/z/resources/swprice/
This website offers:
• an overview of IBM’s mainframe software pricing
• downloadable tools related to IBM System z software pricing
IBM mainframe software pricing concerns the Monthly License Charge (MLC) software which includes license fees and support costs and is governed by IBM Customer Agreement (ICA) contract.
Press “Sub-Capacity” button to access IBM System z Software Pricing/ Sub-Capacity Corner/ with the following link:
http://www-03.ibm.com/systems/z/resources/swprice/subcap/
The Sub-Capacity Corner is the place to learn more about the licensing and pricing rules concerning System z Sub-Capacity charges.
Press : SCPT button to access Sub-Capacity Planning Tool Overview with the following link:
http://www-03.ibm.com/systems/z/resources/swprice/subcap/scpt/index.html
The Sub-Capacity Planning Tool (SCPT) is a PLANNING TOOL which analyzes your mainframe’s LPAR utilization and rolling 4-hour average LPAR utilization, in terms of Millions of Service Units (MSUs).
Press: Instruction button to access End-to-End Overview and Basic Step-by-Step Instructions with the following link:
http://www-03.ibm.com/systems/z/resources/swprice/subcap/scpt/instruct.html
End-to-End Overview:
• Download the tool, it is contained in a self extracting zip file
• Launch the tool (scptool.exe) on your PC to de-compress the file; the decompressed file will be named wlctool.bin
• Upload the file (SCPTOOL.BIN) to your host system. Use binary transfer and move the file to a 80 byte fixed dataset
• Customize and run the job to run on your host system.
• Download the job output (a text file) from your host system to your PC.
• View the downloaded output file with any spreadsheet or text editor that recognizes the “comma separated values” file format.

               2.3. Download scptool.exe
After reading the Instructions you have to press Download button to access Sub-Capacity Planning Tool License and Download with the following link:
http://www-03.ibm.com/systems/z/resources/swprice/subcap/scpt/download.html
Sub-Capacity Planning Tool License and Download:
In order to download the Sub-Capacity Planning Tool on your PC you will need to use the IBM Registration process which most customers have already used to create their personal IBM ID.
By selecting the “Download the Sub-Capacity Planning Tool” link below a new browser window will open and take you directly to a sign-in screen entitled “System z Software Licensing Tool Downloads”.
• If you already have an IBM ID (which all SCRT customers using the LMS web upload process already have) then simply click the “Sign in” link to continue.
• If you have not yet registered for an IBM ID then click the “register now” link on that same page to create an IBM ID.
After you sign in you will be asked to verify that your personal information (such as email id) has not changed. Scroll down towards the bottom of the page, check the box indicating you agree to the standard license for the Sub-Capacity Planning Tool (this is a No Charge tool), and click the “I confirm” link. You will then be taken to the Sub-Capacity Planning Tool download page where you can click the “Download now” button.
You are registed – continue:
Press – Download the IBM Capacity Planning Tool – then press download now (user name and password are required) – press save – point folder D:\save – D:\save\scptool.exe is saved on your PC.

               2.4. Unzip the file scptool.exe
You have received scptool.exe (80 KB application in zip format) on your PC – click on it – press RUN as – Unzip function appears in DOS prompt – enter Y(es) – you are receving scptool.bin (84 KB BIN file – binary – from 24.06.2010) which is ready to be transferred to MF with FTP in binary mode.

               2.5. SCRT (Sub-Capacity Reporting Tool) – download scrttool.exe
Press SCRT to download the reporting tool with the following link:
http://www-03.ibm.com/systems/z/resources/swprice/subcap/scrt/index.html
Sub-Capacity Reporting Tool (SCRT)
The Sub-Capacity Reporting Tool (SCRT) allows you to generate Sub-Capacity reports. You must submit your Sub-Capacity report(s) to IBM each month in order to qualify for sub-capacity.
Press Down load button to access Sub-Capacity Reporting Tool Download with the following link:
http://www-03.ibm.com/systems/z/resources/swprice/subcap/scrt/download.html
After you sign in you will be asked to verify that your personal information (such as email id) has not changed. Scroll down towards the bottom of the page, check the box indicating you agree to the standard license for SCRT, and click the “I confirm” link.
By selecting “Download SCRT fo z/OS” link you will then be taken to the Sub-Capacity Planning Tool download page where you can click the “Download now” button (user name and password are required) – press save – scrttool.exe is saved on your PC.

               2.6. Unzip the file scrttool.exe
You have received scrttool.exe (215 KB application in zip format) on your PC – click on it – press RUN as – Unzip function appears in DOS prompt – enter Y(es) – you are receving SCRTTOOL.bin (540 KB BIN file – binary – from 05.02.2011) as D:\save\scptool.bin which is ready to be transferred to MF with FTP in binary mode.

               2.7. File transfer the binary file from your PC – to MF
To put z/os library member (scptool.bin in binary format) from PC to MF library bca1mgp.stef.jcl1(tooljcl – JCL in character and object code) do the following:
Enter FTP commands from PC using z/os Command Prompt screen:
– FTP 10.212.4.90 (FTP z/os is issued from d:\save of Command Prompt screen where is saved D:\save\scptool.bin)
– Bca1mgp – connected to 10.212.4.90 – send PW please
– Yana1 – Bca1mgp is logged on. Working directory is “bca1mgp”
– Put scptool.bin stef.jcl1(tooljcl) – port request OK. Transfer successfully. Created bca1mgp.stef.jcl1(tooljcl) member with job name SCPTOOL.
The same result will be obtained if more steps are used as follows in details:
D: cd save
D:\save> ftp
ftp> open 10.212.4.90
user: bca1mgp
pw: yana1 – bca1mgp is logged on – working directory is “bca1mgp” in MF
ftp> bin – representation type is image (binary)
ftp> LS – list started of – stef.jcl1, stef.load … etc. – list completed
ftp> pwd – “bca1mgp” is working directory
ftp> cd .. – “” is the working directory name prefix
ftp> cd bca1mgp – “bca1mgp” is working directory
ftp> cd stef – “bca1mgp.stef” is working directory
ftp> cd jcl1 – “bca1mgp.stef.jcl1” is working directory
ftp> put scptool.bin tooljcl – transfered 85440 bytes of scptool.bin as tooljcl member in “bca1mgp.stef.jcl1” of MF
Member bca1mgp.stef.jcl1(tooljcl) in Mainframe:
//SCPTOOL JOB (9999,IPO,10,10),MSGCLASS=O,NOTIFY=BCA1MGP,REGION=5M – changed
//*
//* THIS JOB EXECUTES THE MVS LOADER TO LOAD THE INCLUDED OBJECT
//* MODULE INTO MEMORY AND EXECUTES IT. THE PROGRAM WILL READ
//* AN SMF FILE AND PRODUCE OUTPUT OF ROLLING FOUR HOUR MSU VALUES
//* SUITABLE FOR IMPORT TO YOUR FAVORITE SPREADSHEET PROGRAM.
//*
//* DO A GLOBAL CHANGE ON HLQ TO YOUR DESIRED HIGH LEVEL QUALIFIER.
//*
//* REPLACE THE JOB STATEMENT WITH ONE THAT FITS YOUR INSTALLATION
//* STANDARDS.
//*
//* POINT THE SMF DD AT YOUR SMF DATASET CONTAINING TYPE 70
//* RECORDS FOR THE INTERVAL TO BE STUDIED.
//*
//* A WORD ABOUT SMF DATA: THE PROGRAM IS DESIGNED TO REPORT DATA
//* FOR ONE CPC IN ONE RUN. BY DEFAULT THE PROGRAM WILL REPORT
//* ON THE CPC ASSOCIATED WITH THE FIRST SMF ID ENCOUNTERED IN THE
//* SMF INPUT STREAM. THROUGH PARAMETERS YOU MAY SPECIFY A
//* DIFFERENT SMF ID. IF YOU ONLY USE SHARED ENGINES, THEN
//* THE PROGRAM ONLY NEEDS TO HAVE DATA FROM ONE LPAR ON THE CPC.
//* IF THE CPC USES DEDICATED ENGINES THE PROGRAM WILL
//* NEED DATA FROM EACH PARTITION WHICH USES DEDICATED ENGINES.
//*
//* THERE ARE 3 PARAMETERS:
//* 1. THE SYSID. WE RECOMEND YOU LET THIS DEFAULT.
//* IF OMITTED, THE FIRST SYSID ENCOUNTERED IS USED.
//* 2. THE MSU VALUE AND NUMBER OF ENGINES. WE RECOMEND YOU
//* LET THIS DEFAULT. THE DEFAULT IS TO USE AN INTERNAL
//* TABLE OF MSUS.
//* 3. THE CUSTOMER NAME TO BE PRINTED ON THE REPORT.
//* IF OMITTED, THE SPREADSHEET OUTPUT WILL HAVE A BLANK NAME.
//*
//* GENERALLY, ONLY THE LAST PARAMETER WILL BE USED AS IN THE
//* JCL BELOW.
//*
//* IF THE SMF DATASET CONTAIN MULTIPLE SYSIDS, AND THE DESIRED
//* SYSID IS AAAA, AN MSU VALUE OF 24 IS DESIRED ON A 2 ENGINE
//* PROCESSOR, AND THE CUSTOMER NAME IS ACME INC, THEN THE PARM
//* WOULD BE CODED:
//* PARM=’/AAAA,24(2),ACME INC’
//*
//* REPORT NOTES:
//*
//* YOU CAN SPECIFICALLY EXCLUDE LPARS FROM APPEARING IN THE
//* REPORT BY LISTING THE LPAR NAME IN THE EXCLUDE DD.
//*
//* THE PROGRAM NOW PUTS OUT THE MSU VALUES FOR VARIOUS
//* COMBINATIONS OF LPARS. BY DEFAULT THE PROGRAM IS LIMITED TO
//* 50 LINES OF COMBINATIONS. IF YOU WOULD LIKE THE PROGRAM TO
//* PRINT OUT ALL COMBINATIONS, SPECIFY AN ASTERISK “*” AS THE
//* FIRST CHARACTER OF THE CUSTOMER NAME.
//*
//* IF RATHER THAN SEEING ALL POSSIBLE COMBINATIONS, YOU ARE
//* INTERESTED IN A SPECIFIC SET OF LPARS, YOU MAY ADD A NEW DD
//* STATEMENT, COMBIN. IN THIS DATASET YOU SPECIFY AND IDENTIFIER,
//* AND THE LPARS THAT ARE ASSOCIATED WITH THAT IDENTIFIER.
//* IN THIS CASE THE MAXIMUM MSU VALUE FOR EACH IDENTIFIER IS PRINTED
//* IN PLACE OF THE COMBINATIONS. (*ALL CAN BE USED TO INDICATE
//* ALL LPARS)
//*
//* – FOR EXAMPLE
//* //COMBIN DD *
//* PRODUCT1=LPAR1,LPAR2,LPAR3
//* PRODUCT2=*ALL
//* PRODUCT3=LPAR8,LPAR9
//*
//* IN THIS CASE THE REPORT WOULD CONTAIN A LINE:
//* “PRODUCT1 WOULD REQUIRE NNN MSUS.”
//* WHERE NNN IS THE MAXIMUM MSU FOR LPARS: LPAR1, LPAR2 AND LPAR3.
//*
//* NOTE THE LPAR LIST MAY SPAN LINES. SIMPLY END THE LINE WITH A
//* COMMA AND CONTINUE THE LIST ON THE NEXT LINE. AN LPAR NAME
//* FOLLOWED BY A BLANK TERMINATES THE LIST
//*
//DELETE EXEC PGM=IEFBR14
//DD1 DD DSN=HLQ.SCPTOOL.CSV,DISP=(MOD,DELETE),UNIT=SYSDA, – changed

// SPACE=(TRK,(1))
//EXTR EXEC PGM=LOADER,PARM=’/,,Unicredit bank’ – changed

//SYSPRINT DD SYSOUT=*
//SYSLOUT DD SYSOUT=*
//SMF DD DISP=SHR,DSN=BC2A.MAN1.DATA – changed
//OUTPUT DD DISP=(,CATLG),DSN=PRINT01.SCPTOOL.CSV,UNIT=SYSDA,
// SPACE=(TRK,(15,15))
//EXCLUDE DD *
* LIST THE LPARNAMES THAT YOU WOULD LIKE EXCLUDED FROM THE REPORT
* IN A FORMAT STARTING IN POSITION 1 OF:
* LPARNM1,LPARNM2
//SYSLIN DD *
ESD SCPTOOL ? SCPDATA
TXT ? SCPTOOL 06/24/10??} ? ? r i h ??? | ? ?
TXT i0&? &? ? ? ? ?0?\ ? ~ &yC ?? ? ? 5 \&?? &}
TXT ? ??? k \{??X?? \ i\ ?X?? ? ?y? {? & k?

………………………………………….
TXT % ?0B< ?q§B{ ? ?0B ?0B? ? ? B??0B% ??0B? ??Bo ?
TXT u K B?0 ??0B N ? “Max Date/Time==>”,””,””,”22 Feb 11 – 19:05″,”22 Feb 11 – 22:50″,””,””,”22 Feb 11 – 19:05″,”22 Feb 11 – 22:50″
“”
“Date-Time of RMF Interval”,”BC1B”,”R4 – BC1B”,”BC2A”,”R4 – BC2A”,”BC3A”,”R4 – BC3A”,”Total”,”R4 – Total”
“22 Feb 11 – 19:05″,0,”unavailable”,1,”unavailable”,0,”unavailable”,1,”unavailable”
“22 Feb 11 – 22:50”,0,0,1,1,0,0,1,1
“22 Feb 11 – 23:05”,0,0,1,1,0,0,1,1
“22 Feb 11 – 23:20”,0,0,1,1,0,0,1,1
“23 Feb 11 – 15:35”,0,0,1,1,0,0,1,1
“”
“”
“LPAR Name”,”Weight”,”CP Processors”
“BC1B”,10,1
“BC2A”,10,1
“BC3A”,10,1

 

          3. SMF processing with scptool.exe  based on Record type 70 and 89

               3.1. SMFCLEAR

–  Clear  BC2A.MAN1.DATA, BC2A.MAN2.DATA, BC2A.MAN3.DATA – delete files with 100% full (cc=00) – if one is  active – (cc=08)

– Verify SMF files status :

TSO/ISPF – sd.log – Enter: /D SMF                                                           

IEE974I 15.06.08 SMF DATA SETS 322

NAME                VOLSER SIZE(BLKS) %FULL  STATUS

P-BC2A.MAN1           BC2MCC     27000     1  ACTIVE

S-BC2A.MAN2           BC2MCC     27000     0  ALTERNATE

S-BC2A.MAN3           BC2MCC     27000     0  ALTERNATE

–  Start SMF clearing:

If all files are  100% full  and   SMF data are not necessary to  be saved  and processed –  start  SMFCLEAR with:

TSO/ISPF – sd.log – Enter:  /S SMFCLEAR  – //STARTING EXEC SMFCLEAR procedure

SMFCLEAR PROC member in library BC2A.ZOS140.STCPROC:

//SMFCLEAR PROC

//*———————————————————–

//* THIS PROCEDURE WILL CLEAR SMF DATA SETS OF YOUR SYSTEM

//* USING THE SMF UTILITY PROGRAM IFASMFDP.

//*———————————————————–

//SMFCLEAR  EXEC PGM=IFASMFDP

//SYSPRINT  DD SYSOUT=*

//DUMPINA   DD DISP=SHR,

//             DSN=BC2A.MAN1

//DUMPINB   DD DISP=SHR,

//             DSN=BC2A.MAN2

//DUMPINC   DD DISP=SHR,

//             DSN=BC2A.MAN3

//SYSIN     DD DISP=SHR,

//             DSN=CPAC.PARMLIB(CLRPARM)

Member CPAC.PARMLIB(CLRPARM)  has the following contents:

INDD(DUMPINA,OPTIONS(CLEAR))

INDD(DUMPINB,OPTIONS(CLEAR))

INDD(DUMPINC,OPTIONS(CLEAR))

               3.2. System job DUMPXY saving SMF data on weekly data set IPOSAV.SMFDUMPW

This job automatically  move  the current “active”  BC2A.MAN2 data set (when it becomes 100% full)   to IPOSAV.SMFDUMPW (weekly data set – SMF summary file), empty it  and start gathering SMF data in the next  “alternate” BC2A.MAN3 data set  making it  “active”.

//DUMPXY   JOB MSGLEVEL=1

//STARTING EXEC DUMPXY

//IEFPROC.IEFRDER DD DSNAME=BC2A.MAN2

XXDUMPXY  PROC DSNAME=NULLFILE

XX* LIB: CPAC.PROCLIB(DUMPXY)

XX* DOC: THIS PROCEDURE WILL SELECTIVELY DUMP SMF DATA SETS.

XX*

XXIEFPROC EXEC PGM=IFASMFDP,REGION=1024K

XXSYSPRINT DD  SYSOUT=*

XXDUMPOUT  DD  DSN=IPOSAV.SMFDUMPW,

XX             DISP=(MOD,PASS)

XXDUMPIN   DD  DDNAME=IEFRDER

//IEFPROC.IEFRDER DD DSNAME=BC2A.MAN2

X/IEFRDER  DD  DSNAME=&DSNAME,

X/             DISP=SHR

IEFC653I SUBSTITUTION JCL – DSNAME=NULLFILE,DISP=SHR

XXSYSIN    DD  DUMMY

The result of PGM=IFASMFDP execution is the following report with record types from 2 to 110 (the workload of the system is evaluated by exploring record types 70 and 89):

DUMPIN   — BC2A.MAN2

SMF DATA SET DUMPIN   HAS BEEN CLEARED.

SUMMARY ACTIVITY REPORT                   

RECORD  RECS  PERCENT  AVG. REC.  MIN. REC. MAX. REC.  REC.

  TYPE      READ OF TOTAL  LENGTH      LENGTH      LENGT    WRITT.

2             0                                                                                                           1

3             0                                                                                                           1

4             1           .00 %           215.00           215              215                         1

5             1           .00 %           145.00           145              145                         1

20             1           .00 %            91.00            91                91                          1

23            44           .11 %           134.00          134             134                      44

30             3           .01 %           814.00           398          1,022                      3

41           178           .46 %           412.00          412           412                    178

42         1,474          3.85 %         5,439.08       140         32,548            1,474

60             4           .01 %           525.00            525           525                       4

70           356           .93 %           924.00          164         1,684               356

71           178           .46 %         1,628.00         1,628       1,628                 178

72        28,658         74.85 %         1,060.00         980       3,244         28,658

73           178           .46 %        19,704.00        19,704     19,704               178

74         1,959          5.12 %        25,988.56          940      32,720            1,959

75           712          1.86 %           264.00            264         264                   712

78           356           .93 %         2,516.00          1,888      3,144                 356

80             2           .01 %           264.00             260           268                      2

88         1,780          4.65 %           268.10         161           280              1,780

89            88           .23 %         2,106.00            346       3,866                 88

90             1           .00 %           164.00              164          164                       1

92         2,054          5.36 %           212.00           212          212             2,054

110           260           .68 %        19,987.32          186      32,750               260

TOTAL         38,288           100 %         2,635.17     91       32,750         38,290

NUMBER OF RECORDS IN ERROR             0

If the weekly data set   IPOSAV.SMFDUMPW is full  (100 % used   – no space for write) – the job DUMPXY  complete with cc=08 and the following messages appear:

IFA011I SMF DUMPOUT  DATASET CANNOT BE WRITTEN TO

IFA011I    SYSTEM ABEND CODE IS B37 REASON/RETURN CODE IS 0004

IFA011I    JOB TERMINATED.

IFA011I    NO FURTHER PROCESSING OF THIS DATASET

Then the 3 SMF data sets sequentially begin to fill-up until reaching  100% full and require dump:

/D SMF

IEE974I 11.27.56 SMF DATA SETS 285

NAME                VOLSER SIZE(BLKS) %FULL  STATUS

P-BC2A.MAN1           BC2MCC     27000   100  DUMP REQUIRED

S-BC2A.MAN2           BC2MCC     27000    24  DUMP REQUIRED

S-BC2A.MAN3           BC2MCC     27000    79  ACTIVE

If some data set BC2A.MAN1, 2 is 100% or less  full (with DUMP REQUIRED) and   has to be dumped forced on   IPOSAV.SMFDUMPW (with available space for write), do the following:

Enter  TSO/ISPF – sd.st – sj DUMPXY – edit previous  //IEFPROC.IEFRDER DD DSNAME=BC2A.MAN3 to BC2A.MAN1,2sub – job DUMPXY  is submitted for the BC2A.MAN1,2 desired.

The SMF data from BC2A.MAN1  are dumped forced to IPOSAV.SMFDUMPW and the active data set is switched  to BC2A.MAN3. 

The status of  BC2A.MAN1,2 become     ALTERNATE and empty (with 0 %FULL)  as follows:

/D SMF

IEE974I 11.34.49 SMF DATA SETS 309

NAME                VOLSER SIZE(BLKS) %FULL  STATUS

P-BC2A.MAN1           BC2MCC     27000     0  ALTERNATE

S-BC2A.MAN2           BC2MCC     27000     0  ALTERNATE

S-BC2A.MAN3           BC2MCC     27000    80  ACTIVE

The same may be done with   BC2A.MAN3 which after the dump  is changed to ALTERNATE and empty (with 0 %FULL).

               3.3. FCOPSMF – copy smf summary file  to kci08.smfdum1w to save and empty it

When  IPOSAV.SMFDUMPW is 80% full,   start job //FCOPSMF to copy the SMF weekly summary file to save as kci08.smfdum1w.

//FCOPSMF JOB (,0100),CLASS=R,MSGCLASS=R

//*

//STEP04  EXEC PGM=ADRDSSU,REGION=0M,TIME=1440 PARM=’TYPRUN=NO

//SYSPRINT DD  SYSOUT=*

//DASD1    DD  DISP=SHR,UNIT=3390,VOL=SER=ARH201

//DASD2    DD  DISP=SHR,UNIT=3390,VOL=SER=ARH202

//DASD3    DD  DISP=SHR,UNIT=3390,VOL=SER=ARH203

//DASD4    DD  DISP=SHR,UNIT=3390,VOL=SER=ARH204

//SYSIN    DD  *

COPY DATASET(INC(      –

IPOSAV.SMFDUMPW      –

)) –

RENAMEU(IPOSAV.SMFDUMPW      –

KCI08.SMFDUM1W)  –

OPT(4)  –

SHARE   –

ALLEXCP –

ALLDATA(*) –

CATALOG

/*

To empty IPOSAV.SMFDUMPW  start the job SMFWEMPT:

//SMFWEMPT JOB   (9999,OPER,10,10),

//         ‘CORNERSTONE’,

//        ,

//         MSGCLASS=X,

//         MSGLEVEL=(1,1),

//         NOTIFY=,

//         TIME=1440,

//         USER=

//*

//* LIB: CORNERST.ZOS140.OPER.LIB(SMFSAVW)

//* GDE: CORNERSTONE OPERATOR REFERENCE

//* DOC: THIS JOB EMPTIES IPOSAV.SMFDUMPW

//*      STEP5  EMPTIES IPOSAV.SMFDUMPW

//DMPSMF5 EXEC PGM=IEBGENER,REGION=768K,COND=(4,LT)

//SYSPRINT DD  SYSOUT=*

//SYSIN    DD  DUMMY

//SYSUT1   DD  DSN=NULLFILE,DCB=IPOSAV.SMFDUMPW

//SYSUT2   DD  DSN=IPOSAV.SMFDUMPW,

//             DISP=OLD

/*

The job DUMPXY continue  to dump data sets BC2A.MAN1,2,3 on  IPOSAV.SMFDUMPW  automatcally   switching them until IPOSAV.SMFDUMPW  reach again 80% full and has to be saved sequentially as  KCI08.SMFDUM2W, 3W, 4W etc. and empted each time.

               3.4. SMFEXTRA – extract of smf data from smf summary file /iposav.smfdumpw/

Job SMFEXTRA produce the file PRINT01.SMFEXTR.FEB  to be processed by the next job SCPTOOL

//SMFEXTRA JOB (9999,IPO,10,10),MSGCLASS=O,NOTIFY=HLQ,REGION=5M

//*

//DELETE   EXEC  PGM=IEFBR14

//DD1       DD DSN=PRINT01.SMFEXTR.FEB,DISP=(MOD,DELETE),

//             UNIT=SYSDA,SPACE=(TRK,(1))

//SMFDUMP  EXEC PGM=IFASMFDP

//INDD1     DD DSN=KCI08.SMFDUM3W,DISP=SHR,AMP=(‘BUFSP=65536’)

//INDD2     DD DSN=KCI08.SMFDUM4W,DISP=SHR,AMP=(‘BUFSP=65536’)

//*  INDD3     DD DSN=BC2A.MAN3.DATA,DISP=SHR,AMP=(‘BUFSP=65536’)

//OUTDD1    DD DSN=PRINT01.SMFEXTR.FEB,UNIT=(3390,1),

//             DISP=(NEW,CATLG,DELETE),

//             SPACE=(TRK,(700,600))

//SYSPRINT  DD SYSOUT=A

//SYSIN     DD *

INDD(INDD1,OPTIONS(DUMP))

INDD(INDD2,OPTIONS(DUMP))

OUTDD(OUTDD1,TYPE(70,89))

DATE(2011080,2011116)

START(0000)

END(2400)

/*

The output shows all SMF records extracted from the saved SMF  summary files KCI08.SMFDUM3W and KCI08.SMFDUM4W (each for 2 weeks period) to cover both one  month period  as follows:

SUMMARY ACTIVITY REPORT

START DATE-TIME  03/22/2011-03:32:28                         END DATE-TIME  04/2

RECORD  RECORDS         PERCENT    AVG. RECORD   MIN. RECORD   MAX. RECORD

TYPE         READ              OF TOTAL             LENGTH             LENGTH                 LENGT

0                  1                         .00 %          60.00                       60                          60

2                20                         .00 %        18.00                       18                          18

          type 2  RECORDS WRITTEN – 1

3                20                         .00 %        18.00                       18                          18

          type 3  RECORDS WRITTEN – 1

4            1,610                        .19 %          215.00                    215                         215

5            1,594                        .19 %          149.60                    145                        163

8                  1                         .00 %           2,140.00                 2,140                2,140

9                46                         .01 %             98.95                      28                        252

11               22                         .00 %           64.72                      28                          228

20          4,309                         .52 %         92.98                      91                           109

21               11                         .00 %            80.00                    80                          80

22                 6                         .00 %            170.33                      52                     296

23             820                         .10 %           134.00                    134                     134

26          3,655                         .44 %          445.60                    442                      460

30        13,981                       1.68 %         1,202.91                    398                11,273

32              240                          .03 %            273.10                    260                      296

34              240                          .03 %            215.00                    215                      215

35              240                          .03 %            150.00                    150                      150

40         13,465                         1.62 %          187.24                      74                      1,362

41          3,280                           .39 %            411.83                    146                        412

42        65,910                         7.93 %          2,485.34                    140                 32,748

43                 1                           .00 %              32.00                      32                           32

52                 5                           .00 %              62.00                      62                           62

60        32,043                          3.86 %         635.84                    339                      2,044

61               86                           .01 %              375.13                    289                       590

70          6,564                         .79 %        887.75                         164                    1,684

          type 70  RECORDS WRITTEN – 6564

71          3,281                           .39 %          1,628.00                 1,628                   1,628

72      528,257                        63.57 %     1,063.36                    980                      3,244

73         3,282                             .39 %        19,704.00               19,704               19,704

74       36,101                            4.34 %      25,993.92                    940                32,720

75        13,124                           1.58 %       264.00                    264                         264

78         6,563                              .79 %       2,517.33                 1,888                   4,952

80         3,185                               .38 %       228.07                    180                        350

81             1                            .00 %       2,757.00                 2,757                     2,757

88     32,782                             3.95 %   268.08                   161                          280

    89       1,642                          .20 %  2,118.38                      346                       3,934

          type 89  RECORDS WRITTEN – 1642

90            26                               .00 %     182.15                     72                        452

92     48,222                              5.80 %  211.91                  168                          276

110      4,904                                .59 %   18,042.88                  186              32,750

118      1,343                                .16 %    94.00                    94                            94

200           38                                .00 %   763.00                  555                        859

201             6                                 .00 %   140.00                   140                     140

TOTAL 830,927                         100 %    2,305.39                     18                32,750

NUMBER OF RECORDS IN ERROR             0

               3.5. SCPTOOL – calculating the extract of smf data

The job SCPTOOL   process the output file PRINT01.SMFEXTR.FEB  from previous   job  SMFEXTRA and produce the final output as file  PRINT01.SCPTOOL.CSV.

//SCPTOOL  JOB (9999,IPO,10,10),MSGCLASS=O,NOTIFY=BCA1MGP,REGION=5M

//*

//DELETE   EXEC  PGM=IEFBR14

//DD1      DD    DSN=PRINT01.SCPTOOL.CSV,DISP=(MOD,DELETE),UNIT=SYSDA,

//             SPACE=(TRK,(1))

//EXTR     EXEC  PGM=LOADER,PARM=’/,,Unicredit bank’

//SYSPRINT DD    SYSOUT=*

//SYSLOUT  DD    SYSOUT=*

//SMF      DD    DISP=SHR,DSN=PRINT01.SMFEXTR.FEB

//OUTPUT   DD    DISP=(,CATLG),DSN=PRINT01.SCPTOOL.CSV,UNIT=SYSDA,

//             SPACE=(TRK,(15,15))

//EXCLUDE  DD    *

* LIST THE LPARNAMES THAT YOU WOULD LIKE EXCLUDED FROM THE REPORT

* IN A FORMAT STARTING IN POSITION 1 OF:

* LPARNM1,LPARNM2

//SYSLIN   DD    *

ESD                            SCPTOOL       ? SCPDATA

TXT            ?   SCPTOOL 06/24/10??}  ? ?   r   i   h  ???  |   ?   ?

TXT            i0&?  &?   ?  ?   ?     ?0?\ ? ~ &yC ?? ?    ? 5 \&?? &}

After PGM=LOADER execution the result is the following measured data in file PRINT01.SCPTOOL.CSV:

“=============== SUB-CAPACITY PLANNING TOOL ==============”

“”

“Release Date”,”06/24/10″

“Customer Name”,”Unicredit bank”

“System Name”,”BC2A”

“Serial Number”,”p093F”

“Machine Description”,”2066-0A1″

“CP Processors”,1

“Capacity (MSUs)”,13

“If you had a product only running in BC2A, it would require 1 MSUs.”

“”

“Max Value==>”,0,”unavailable”,1,1,0,”unavailable”,1,1

“Max Date/Time==>”,””,””,”22 Feb 11 – 19:05″,”22 Feb 11 – 22:50″,””,””,”22 Feb 11 – 19:05″,”22 Feb 11 – 22:50″

“”

Date-Time of RMF Interval”,”BC1B”,”R4 – BC1B”,”BC2A”,”R4 – BC2A”,”BC3A”,”R4 – BC3A”,”Total”,”R4 – Total”

“22 Feb 11 – 19:05″,0,”unavailable”,1,”unavailable”,0,”unavailable”,1,”unavailable”

“22 Feb 11 – 22:50”,0,0,1,1,0,0,1,1

“22 Feb 11 – 23:05”,0,0,1,1,0,0,1,1

“22 Feb 11 – 23:20”,0,0,1,1,0,0,1,1

“23 Feb 11 – 15:35”,0,0,1,1,0,0,1,1

“”

“”

“LPAR Name”,”Weight”,”CP Processors”

“BC1B”,10,1

“BC2A”,10,1

“BC3A”,10,1

               3.6. Receive print01.scptool.csv report for one month from MF on PC
Use FTP to download from Mainframe the file PRINT01.SCPTOOL.CSV, Zip file and send a mail to IBM for analysis.
To get z/os file (PRINT01.SCPTOOL.CSV in character format) from MF to PC do the following:
Enter FTP commands from PC using z/os Command Prompt screen:
– FTP 10.212.4.90 (FTP z/os is issued from d:\save of Command Prompt screen where MF file will be saved as D:\save\ scptool.csv)
– Bca1mgp – connected to 10.212.4.90 – send PW please
– Yana1 – Bca1mgp is logged on. Working directory is “bca1mgp”
– ftp> cd .. – “” is the working directory name prefix
– ftp> cd print01 – “print01” is working directory
– Get scptool.csv SCPTOOL.CSV – port request OK. Transfer completed successfully. Received PRINT01.SCPTOOL.CSV file from MF as scptool.csv at PC.
After adding to zip format – scptool.csv becomes scptool.zip – ready to attach to e-mail.

               3.7. SMFSAVW – save smf data from smf summary file /iposav.smfdumpw/ to tape as BACKUP.SMFDUMP(+) generation data set
SMFSAVW COPIES IPOSAV.SMFDUMPW TO STANDARD LABEL SCRATCH TAPE AS A GENERATION DATA SET, EMPTIES IPOSAV.SMFDUMPW, DUMPS THE SMF DATA SETS TO THE WEEKLY SMF DATA SET IPOSAV.SMFDUMPW, ADDS THE IPOSAV.SMFDUMPW DATA SET TO THE TAPE GENERATION DATA SET AND AGAIN EMPTIES THE IPOSAV.SMFDUMPW DATA SET.
STEP1 SIGN OUT TAPES
STEP2 COPIES SMFDUMPW TO BACKUP.SMFDUMP (TAPE)
STEP3 WTO TO INFORM OPERATOR OF FAILURE
STEP4 UNCATLGS BACKUP.SMFDUMP(+1) IF STEP3 FAILS
STEP5 EMPTIES IPOSAV.SMFDUMPW
STEP6 COPIES SMF DATA SETS TO IPOSAV.SMFDUMPW
STEP7 MODS SMFSAVW TO BACKUP.SMFDUMP (TAPE)
STEP8 WTO TO INFORM OF FAILURE
STEP9 EMPTIES IPOSAV.SMFDUMPW

//SMFSAVW JOB (9999,OPER,10,10),
// ‘CORNERSTONE’,
//,
// MSGCLASS=X,
// MSGLEVEL=(1,1),
// NOTIFY=,
// TIME=1440,
// USER=
//*
//* STEP1 SIGN OUT TAPES
//DMPSMF1 EXEC IPOWTO,MSG=’SIGN OUT 1 STD LBL TAPE/NEXT STEP’,
// REGION=768K
//SYSIN DD *
DSN=BACKUP.SMFDUMP — DUMP OF ONE WEEKS SMFDUMP
THE DATASET RETPD IS 365
THE INTERNAL AND EXTERNAL TAPE LABELS SHOULD MATCH.
USE THE STANDARD LABEL TAPE NUMBER IN REPLY TO THE TAPE MOUNT REQUEST.
/*
//* STEP2 COPIES SMFDUMPW TO BACKUP.SMFDUMP (scratch TAPE)
//DMPSMF2 EXEC PGM=IFASMFDP,REGION=768K,COND=(0,LT)
//SYSPRINT DD SYSOUT=*
//INDD1 DD DSN= IPOSAV.SMFDUMPW,
// DISP=SHR
//OUTDD1 DD DSN=BACKUP.SMFDUMP(+1),
// DISP=(,CATLG,DELETE),VOL=(,,,25),
// LABEL=RETPD=365,UNIT=(300,,DEFER),
// DCB=( IPOSAV.SMFDUMPW)
//SYSIN DD *
INDD(INDD1,OPTIONS(ALL))
OUTDD(OUTDD1,TYPE(000:255))
/*
//* STEP3 WTO TO INFORM OPERATOR OF FAILURE
//DMPSMF3 EXEC IPOWTO,COND=((5,GE,DMPSMF2),EVEN),REGION=768K
//SYSIN DD *
— SMFSAVW HAS FAILED — CALL YOUR CORNERSTONE ADMINISTRATOR —
— SMFSAVW HAS FAILED — CALL YOUR CORNERSTONE ADMINISTRATOR —
— SMFSAVW HAS FAILED — CALL YOUR CORNERSTONE ADMINISTRATOR —
— SMFSAVW HAS FAILED — CALL YOUR CORNERSTONE ADMINISTRATOR —
/*
//* STEP4 UNCATLGS BACKUP.SMFDUMP(+1) IF STEP3 FAILS
//DMPSMF4 EXEC PGM=IEFBR14,COND=(5,GE,DMPSMF2),REGION=768K
//SYSUT2 DD DSN=BACKUP.SMFDUMP(+1),
// DISP=(OLD,DELETE)
/*
//* STEP5 EMPTIES IPOSAV.SMFDUMPW
//DMPSMF5 EXEC PGM=IEBGENER,REGION=768K,COND=(4,LT)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=NULLFILE,DCB= IPOSAV.SMFDUMPW
//SYSUT2 DD DSN= IPOSAV.SMFDUMPW,
// DISP=OLD
/*
//* STEP6 COPIES SMF DATA SETS TO IPOSAV.SMFDUMPW
//DMPSMF6 EXEC PGM=SMFDUMP,REGION=768K,COND=(4,LT)
//DUMPOUT DD DSN=IPOSAV.SMFDUMPW,
// DISP=(MOD,PASS)
//SYSPRINT DD SYSOUT=*
//SYSABEND DD SYSOUT=*
//SYSIN DD DUMMY
/*
//* STEP7 MODS SMFSAVW TO BACKUP.SMFDUMP (TAPE)
//DMPSMF7 EXEC PGM=IFASMFDP,REGION=768K,COND=(4,LT)
//SYSPRINT DD SYSOUT=*
//INDD1 DD DSN=IPOSAV.SMFDUMPW,
// DISP=SHR
//OUTDD1 DD DSN=BACKUP.SMFDUMP(+1),
// DISP=(MOD,KEEP),
// LABEL=RETPD=365,UNIT=3590,
// DCB=(IPOSAV.SMFDUMPW)
//SYSIN DD *
INDD(INDD1,OPTIONS(ALL))
OUTDD(OUTDD1,TYPE(000:255))
/*
//* STEP8 WTO TO INFORM OF FAILURE
//DMPSMF8 EXEC IPOWTO,COND=((5,GE,DMPSMF6),EVEN),REGION=768K
===> Scroll
//SYSIN DD *
— SMFSAVW HAS FAILED — CALL YOUR CORNERSTONE ADMINISTRATOR —
*************************************************************
IF FAILURE OCCURRED AFTER STEP4, CARE MUST BE EXERCISED ON A
RESTART DUE TO CATALOG UPDATE OF DATA SET ‘BACKUP.SMFDUMP’
*************************************************************
— SMFSAVW HAS FAILED — CALL YOUR CORNERSTONE ADMINISTRATOR —
/*
//* STEP9 EMPTIES IPOSAV.SMFDUMPW
//DMPSMF9 EXEC PGM=IEBGENER,REGION=768K,COND=(4,LT)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=NULLFILE,DCB=IPOSAV.SMFDUMPW
//SYSUT2 DD DSN=IPOSAV.SMFDUMPW,
// DISP=OLD
//*

               3.8. RESMFDMP – Restore BACKUP.SMFDUMP(+) generation data set from tape to file KCI08.SMFDUMP1

//RESMFDMP JOB (9999),
//,
// REGION=0K,TIME=1440,
// MSGCLASS=X,MSGLEVEL=(1,1)
//* *************************************************
//* *************************************************
//JOBLIB DD DSN=KCI00.LIB.PROD.LOAD,DISP=SHR
// DD DSN=CEE.SCEERUN,DISP=SHR
//*
//CSDEFINE EXEC PGM=IDCAMS
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
PARM MARGINS(1 80)
/*
//RESSMF2 EXEC PGM=IFASMFDP,REGION=768K,COND=(0,LT)
//SYSPRINT DD SYSOUT=*
//INDD1 DD DSN= BACKUP.SMFDUMP.G0253V00,DISP=OLD, if generation data set tape is used or if unique physical tape is used replace with:
//INDD1 DD DSN= BACKUP.SMFDUMP,DISP=(,CATLG),
// VOL=SER=CB0661,UNIT=(300,,DEFER),
DCB=(KCI01.DMNSNTAP.MODEL.DCB,
// RECFM=U,LRECL=0,BLKSIZE=32760,
// DSORG=PS),LABEL=(1,SL)
//OUTDD1 DD DSN=KCI08.SMFDUMP1,DISP=(NEW,CATLG),
// SPACE=(CYL,(50,10)),UNIT=SYSDA
//SYSIN DD *
INDD(INDD1,OPTIONS(DUMP))
OUTDD(OUTDD1,TYPE(000:255))
/*
Verification: If you execute SCPTOOL using the restored file KCI08.SMFDUMP1 as input and PRINT01.SCPTOOL.CSV3 as output, you will receive the PRINT01.SCPTOOL.CSV3 file as in item 3.5. SCPTOOL – jcl for calculating the extract of smf data.

Incoming search terms:

  • ifasmfdp
  • smf in mainframe
  • smf mainframe
  • IFA011I
  • mainframe smf
  • PGM=IFASMFDP
  • what is smf in mainframe
Choose donation amount:

Leave A Reply

Comments

No comments yet, be the first to add one!

Places

 

Choose donation amount:
您要找的资源已被删除、已更名或暂时不可用。 Clef two-factor authentication