being a low cost provider
Post on 17-Dec-2014
182 Views
Preview:
DESCRIPTION
TRANSCRIPT
WORLD CLASSLOW COST LEADER
Power Tuning Legacy ProcessingPART II – PIRANHAS (Pre TRAMS Processing)
Warning Indicators
Escalating Unit Costs Resource Intense Extensive Redundancies High Maintenance Diminishing Breadth of Knowledge
Cracks are Wider Crevices Deeper
Money Pit Profiles
Stealthy Piranahs Multiple Variations of Single Function Comprised of Single Function Programs Running Many Time per Day
Gigantic Killer Whales Flagship Jobs Visibly Consuming CPU/DASD Heavily Redundant File Content Uncontrolled Resource Scheduling Non Integrated Cross Application Development
Piranha TODAY'S PRETRAMS COSTS
STEP TODAY's
CPUDASD TODAY
(30xgdg)
CA11 $0.03
UNZIP 0.13
SUPERZIP na
STEP010 SORT $0.02 $0.05
STEP020 SORT $0.04 $1.50
STEP025 IEFBR14 $0.01
STEP030 &WHRLFMP $0.05 $1.50
STEP040 SORT $0.04 $0.05
STEP050 DUPBATW2 $0.04 $3.00
STEP060 INSTAPPW $0.03 $0.05
STEP070 SORT $0.04 $0.05
STEP080 SORT $0.04 $0.05
STEP090 SORT $0.04 $1.50
Single Run Cost na $0.51 $7.75
Daily Costs 194 $98.94 $1,503.50
Monthly Cost 30 $2,968.20 $45,105.00
Annual Cost 12 $35,618.40 $541,260.00
Bottom Line $576,878.40
Low Cost Ingredients
Design/Code for Maximum Throughput Integrate Similar Processes Avoid One-Off Cloning Apply Use Case Processing Models Minimize Non Business Logic
Minimize File Processing Costs Use Read It Once/Write It Once Design Archive Data not Safety Nets Minimize Redundant File Cycling
Piranha Scale Down
Approach Consolidate Program Functions Enhance Reporting Minimize Non Business Logic Use Read It Once/Write It Once Design Archive Data not Safety Nets
PreTrams TodaySTEP020
SORTCOPY
STEP030 &WHIRLFMP
SORT080SORTCOPY
STEP040SORTCOPY
&merid.RPTDUP
&merid.CLINTBK(+1)
BALRPT
CPUWORK
SARBALANCEREPORT
BATCHWVSB
HDRCHKRW(+1)
STEP050DUPBATW
STEP090SORTCOPY
STEP060INSTAPPW
DUPBRPT
CPUWORK2
SARDUP BATCH
CPUIN.INST(+1)
STEP070SORTCOPY
NCVAPPLVSO
NCVINSTVSO
CPUIN.INSTBKP(+100)
STEP010 SORT
&merid.&input
PSTR0015
SMIG310TODAY
STEP025 IEFBR14
&INPUT (DEL)
HDRCHKRW(+0)
xx.TRN.DUP(+60)
SMIGMAIL0004 = OK0004 = DUP BATCH0000 = Out of Balance
Minimum 10 STEPS Executed
Settlement File Read and Written Minimum 4 Times
Multiple Archives Made
DUPBATxx Coding ERRORS block Duplicate Batch Conditions
NSTAPPW Only Processes the Control Record and COPIES All Detail Records.
Erroneous Exception Codes for Normal End of Job.
Piranah Functionality
WHIRLFMx – Verify File Control Card Edit Data Fields Balance Batch and Detail Records Print Summary Report Output Accepted Files
DUPBATCHx – Verify Batch Numbers/Date Are Unique Update VSAM Batch Records Maintain Historical VSAM Batch File Output Good Batches
INSTAPPW – Verify ORG/Application Code 0001 or 0010 Copy Batch and Detail Records.
Maintenance Maze PS00.CP000000.WOW.SRX Name Size Created ChangedWHIRLFMQ 1125 2001/05/29 2005/10/25 WHIRLFMT 930 1997/09/29 2005/10/12 WHIRLFM2 1043 1997/09/29 2005/10/12 WHIRLFM3 963 2001/03/22 2005/10/12 WHIRLFM4 893 2001/03/22 2005/10/12 WHIRLFM5 1346 1997/09/29 2005/10/12 WHIRLFM6 944 2004/11/15 2005/10/12 WHIRLFM7 1276 2004/11/15 2005/10/12 WHIRLFM8 1036 1997/09/29 2005/10/12 WHIRLFM9 1199 2001/05/29 2006/03/03 DUPBATCH 654 1998/04/20 2004/02/10DUPBATE 631 2000/02/22 2005/10/12DUPBATEI 632 2000/02/22 2005/10/12DUPBATW 642 1998/04/20 2005/10/12DUPBATW2 672 1998/04/20 2005/10/12
WHIRLFMx Current 10 Clones 80% Redundant Code 8 Changed 10/12/05 6 Exceed 1M Lines
Custom Code? One Off Deviations
DUPBATxx Current 5 Clones 85% Redundant 4 Changed 10/12/05 Similar Line Counts
DUPBATW PROGRAM-ID. DUPBATCH. - - - - - - - - - - - - 209 Line(s) not Displayed 01 WS-SWITCH. 05 BATCH-SWITCH PIC X VALUE ' '. 88 GOOD-BATCH VALUE 'Y'. 88 DUP-BATCH VALUE 'N'. - - - - - - - - - - - - 144 Line(s) not Displayed 225-PROCESS-BATCH-HDR. - - - - - - - - - - - - - 19 Line(s) not Displayed INITIALIZE BATCH-SWITCH. WRITE BATCH-RECORD. EVALUATE WS-BATCH-STATUS WHEN '22' SET DUP-BATCH TO TRUE WRITE TRANOUT-DUP-RECORD FROM SAVE-OFFICE-HEADER - - - - - - - - - - - - - 3 Line(s) not Displayed WHEN '00' SET GOOD-BATCH TO TRUE WRITE TRANOUT-GOOD-RECORD FROM SAVE-OFFICE-HEADER - - - - - - - - - - - - - 10 Line(s) not Displayed 250-PROCESS-DETAIL-REC. MOVE CPU-TRAN-RECORD TO SAVE-DETAIL-RECORD. EVALUATE TRUE WHEN DUP-BATCH WRITE TRANOUT-DUP-RECORD FROM SAVE-DETAIL-RECORD PERFORM 320-WRITE-DETAIL-RECORD THRU 320-EXIT WHEN GOOD-BATCH WRITE TRANOUT-GOOD-RECORD FROM SAVE-DETAIL-RECORD - - - - - - - - - - - - - 93 Line(s) not Displayed 600-WRITE-TOTALS-FILE. - - - - - - - - - - - - - 17 Line(s) not Displayed IF DUP-BATCH MOVE 'DUPLICATE FILE REC''D' TO HMPTRMLK-ERR-MSG MOVE ZEROES TO HMPTRMLK-AMT ELSE MOVE SPACES TO HMPTRMLK-ERR-MSG MOVE WS-HMPTRM-ACCUM-AMT TO HMPTRMLK-AMT - - - - - - - - - - - - 128 Line(s) not Displayed
Only Processes Batch Headers.
Copies All Other Records.
DUP-BATCH is RESET every
time a GOOD BATCH is processed.
No way to know if DUP at
EOJ (600-Write).
Entire Settlement File Read and
Re-written to New Files.
INSTAPPW PROGRAM-ID. INSTAPPW. - - - - - - - - - - - - - 3 Line(s) not Displayed THIS PROGRAM READS A SETTLEMENT INPUT FILE IN THE NEW CPU-CPU FORMAT AND INSERTS THE INST NUMBER AND APPLICATION ID INTO THE EXISTING ORG HEADER. IT ALSO READS NCVINST & NCVAPPL TO VERIFY ACTIVE STATUS.
- - - - - - - - - - - - - 94 Line(s) not Displayed 05 WS-INST PIC 9(4) VALUE ZEROS. 05 WS-APPL PIC 9(4) VALUE ZEROS. 05 WS-CHECK-INST PIC S9(4) COMP VALUE ZEROS. - - - - - - - - - - - - - 25 Line(s) not Displayed 05 APPL-ID-PARM PIC 9(4). - - - - - - - - - - - - - 25 Line(s) not Displayed MOVE APPL-ID-PARM TO WS-APPL. - - - - - - - - - - - - - 46 Line(s) not Displayed MOVE HSTWCPUOH-ORG TO WS-INST - - - - - - - - - - - - -121Line(s) not Displayed MOVE WS-INST TO HSTWCPUOH-INST-NO. MOVE WS-APPL TO HSTWCPUOH-APPL-ID. - - - - - - - - - - - - - 51 Line(s) not Displayed
Summary: Simple ORG and APPL validation/insertion only function.
Notation: APPL is derived from EXEC statement.
CONCLUSION: Obsolete - Integrate Function into another program.
Integration
SUPERFM (combine WHIRLFM, DUPBAT, INSTAPPW)
ORG CONTROL RECORD (multiple allowed) Verify ORG Control Record Verify ORG/APPL Code 0001 or 0010
BATCH CONTROL RECORDS – Verify Batch Numbers/Date Are Unique Update VSAM Batch Records Maintain Historical VSAM Batch File
DETAIL SALES AND RETURNS Data Validation Balance to Batch Control
OUTPUTS Batch Summary and Duplicate Reports CPUINST File to TRAMS
NEW LOOK SUPERFM
NCVAPPL
NCVINST
SARBALANCEREPORT
BATCHWVSB
SARDUP BATCH
REPORT
CPUIN.INST(+1)
PSTR0015
EMAILBALANCEREPORT
EMAILDUP BATCH
REPORT
LRECL = 310 or 430 Merchant Dependent
STEP010UNZIP(piped)
SETTLE(+0)ZIP
STEP020SUPERFM
Two Step $AVING$
STEP010 – ZIP/UNZIP UNZIP Merchant Settlement Files PIPE Unencrypted Decompressed Data to STEP020 Secure Zipped Merchant Settlements Archived
STEP020 - SUPERFM Process All Control Record Requirements Verify and Maintain VSAM Batch Controls Edit and Balance Detail Sales and Refunds Generate Respective Balance and Error Reports Set Respective Error Condition Return Codes Spool Multiple Reports to Respective Destinations OUTPUT settlement records to DAILY TRAMS
SUPERZIP RESULTSSTEP
Today's AVG CPU
Today’sAVG DASD
(30xgdg)SUPERZIPAVG CPU
SUPERZIPAVG DASD (30xgdg)
CA11 $0.03 .03
STEP010 SORT/UNZIP $0.02 $0.05 na $.75
STEP020 SORT/Super $0.04 $1.50 $0.16 $1.60
STEP025 IEFBR14 $0.01 na na
STEP030 &WHRLFMP $0.05 $1.50 na na
STEP040 SORT $0.04 $0.05 na na
STEP050 DUPBATW2 $0.04 $3.00 na na
STEP060 INSTAPPW $0.03 $0.05 na na
STEP070 SORT $0.04 $0.05 na na
STEP080 SORT $0.04 $0.05 na na
STEP090 SORT $0.04 $1.50 na na
AVG Cost per Run na $0.51 $7.75 $0.16 2.35
Extended Daily Costs 194 $98.94 $1,503.50 $31.04 $455.90
Extended Monthly Cost 30 $2,968.20 $45,105.00 $931.20 $13,677.00
Extended Annual Cost 12 $35,618.40 $541,260.00 $11,174.40 $164,124.00
Total Annual Costs $576,878.40 $175,298.40
Estimated Annual Savings $401,580.00
Savings Percentage 70%
top related