Testing and Debugging Your Installation s ACS Routines

Similar documents
DFSMS Basics: How to Write ACS Routines Hands-on Lab (Section 1)

DFSMS Basics: How to Create/Modify an SMS Configuration and Write ACS Routines - Demo

IBM. DFSMSdfp Storage Administration. z/os. Version 2 Release 3 SC

NaviQuest Testing ACS and Streamlining SMS Tasks

NaviQuest Testing ACS Hands-On Lab

An Introduction to z/os DASD Backup and Archiving

z/os Introduction and Workshop Data Sets

DFSMS:Intermediate NaviQuest Streamlining SMS Work

DFSMSdss Best Practices in an SMS Environment

The Life and Times of a Data Set: You Wouldn't Want Your Relatives Hanging Around, Why Your Data?

Session The Catalog Search Interface

DFSMS Basics: How to Write ACS Routines Hands-on Lab Workbook

Failures under MVS p. 67 General p. 67 JCL Errors p. 68 Syntactical JCL Errors p. 68 Allocation JCL Errors p. 69 ABEND Failures p.

Data Center Management Systems

DFSMS Basics: How to Write ACS Routines Part 2 - Hands-on Lab (Section 2)

Implementing and Using Extended-Addressing Volumes (EAV)

* Parameter... 1:18. B Backward References... 5:8 Blocksize: Choosing... 3:19

Dino Explorer. MVS Data Collector for Mainframe Assessment

CA JCLCheck Workload Automation CA RS 1404 Service List

IBM. DFSMS Using the Interactive Storage Management Facility. z/os. Version 2 Release 3 SC

IBM. DFSMS Implementing System-Managed Storage. z/os. Version 2 Release 3 SC

DFSMShsm: Managing PDSE V2 Data Sets

SMS Volume Selection. z/series Expo Session Z30 September, 2005 Ruth Ferziger

CA JCLCheck Workload Automation CA RS 1411 Service List

for Mainstar MXI G2 Session 8962 Speaker: Shari Killion

Making the Most of DFSMSdss and SMS: Hints, Tips, and Best Practices in your z/os Environment Session # 10954

COMPUTER EDUCATION TECHNIQUES, INC. (JCL ) SA:

DFSMSdfp Storage Administration Reference

Workload Characterization Algorithms for DASD Storage Subsystems 1

CA JCLCheck Workload Automation CA RS 1407 Service List

DFSMS Basics: Data Set Fundamentals Get to Know Your Data Sets!

z/os Basics: Migrating from HFS to zfs and things to watch out for

JCL MOCK TEST JCL MOCK TEST III

CA JCLCheck Workload Automation CA RS 1408 Service List

Dino Explorer Suite. User's Guide version 6.2.3

Hints and Tips for Improving your DFSMShsm Environment

IBM Tivoli Advanced Allocation Management for z/os. User's Guide. Version 3 Release 1 SC

CA Disk Backup and Restore CA RS 1309 Service List

PDSE Version 2: Member Generations Practical User Applications

CA JCLCheck Workload Automation CA RS 1406 Service List

ISPF Users Boot Camp - Part 2 of 2

This book is printed on acid-free paper. Copyright 2002 by Gary DeWard Brown. All rights reserved.

The SMF recovery analysis report (SRSSMF) formats SMF records produced by SRS and provides totals for the successful and unsuccessful recoveries

Installation Instructions for SAS 9.4 Installation Kit for FTP Format on z /OS

Chapter 2 ACCESS METHOD SERVICES. SYS-ED/ Computer Education Techniques, Inc.

CA JCLCheck Workload Automation CA RS 1704 Service List

IBM Tivoli Advanced Reporting for DFSMShsm. User s Guide. Version 2 Release 2 SC

Migrating Tape Data to the EMC DLm with DTS Software's DLMCLONE

With Tivoli Advanced Catalog

INNOVATION TECHSUPPORT

IBM. DFSMShsm Implementation and Customization Guide. z/os. Version 2 Release 3 SC

MVS/QuickRef - Tailoring QW

IBM. Documentation. IBM Sterling Connect:Direct Process Language. Version 5.3

CA 1 Tape Management CA RS 1403 Service List

Mainframe Developer NO.2/29, South Dhandapani St, Burkit road, T.nagar, Chennai-17. Telephone: Website:

Transporting files between MVS and MVS or between MVS and a Workstation

CA Disk Backup and Restore CA RS 1503 Service List

Appendix B WORKSHOP. SYS-ED/ Computer Education Techniques, Inc.

CA XCOM Data Transport for z/os CA RS 1312 Service List

IBM. DFSMS Introduction. z/os. Version 2 Release 3 SC

IBM Virtualization Engine TS7700 Series Copy Export Function User's Guide Version 2.1.5

Version 1 Release 2. IBM IMS Cloning Tool User's Guide IBM SC

Abstract Updates that apply to DB2 Cloning Tool Version for z/os 3.2 User's Guide (SC )

CustomPac Installation Dialog Message Book Dialog Level:27

CA Disk Backup and Restore CA RS 1602 Service List

Frequently Asked Questions about RTD

IBM Tivoli Advanced Reporting for DFSMShsm. User s Guide. Version 1 Release 1 SC

IBM Education Assistance for z/os V2R1

1) How many unique operating systems are available on IBM Z hardware? Answer Choice A58_

CA PDSMAN PDS Library Management CA RS 1404 Service List

RUNC Easy Commands for the ISPF Edit User

What Every Storage Administrator Should Do For YOUR DB2 Environment

CA Allocate DASD Space and Placement Using

zcost Management Dino Explorer Suite User s Guide

IBM System z Fast Track

CA Allocate DASD Space and Placement CA RS 1307 Service List

IBM. DFSMS Managing Catalogs. z/os. Version 2 Release 3 SC

CA JCLCheck Workload Automation CA RS 1705 Service List

Chapter 2 TSO COMMANDS. SYS-ED/ Computer Education Techniques, Inc.

Tivoli Business Systems Manager SMS 1.5

Chapter 1 RUNNING A SIMPLE JOB. SYS-ED/ Computer Education Techniques, Inc.

CA JCLCheck Workload Automation CA RS 1412 Service List

Session RMM Exploitation

Uni Hamburg Mainframe Summit z/os The Mainframe Operating. Part 2 TSO, ISPF und Unix Shell. Introduction to the new mainframe

ABCs of OS/390 System Programming Volume 3

MFT Platform Server for z/os Release Notes

Functions and CALL Routines

CA IMS Tools CA RS 1308 Service List

Mainstar : Backup & Recovery Manager Suite

VSAM Overview. Michael E. Friske Fidelity Investments. Session 11681

2010/04/19 11:38. Describing a unique product that shows the mainframe in a completely different way.

SmartIS. What is SmartIS? Product Description

Version 9 Release 1. IBM InfoSphere Guardium S-TAP for IMS on z/os V9.1 User's Guide IBM

Mainframe Developer & Admin Training in Chennai

[Installation and User s Guide] Syzygy Incorporated. SyzSPOOL/z - Installation and User s Guide. [Version 5.0] November 23, 2011

IBM. DFSMS Using the New Functions. z/os. Version 2 Release 3 SC

Appendix. Messages and codes

Uni Hamburg Mainframe Summit 2010 z/os The Mainframe Operating. Part 6 z/os Concepts

Version 1 Release 6. IBM Autonomics Director for Db2 for z/os User's Guide IBM SC

Micro Focus The Lawn Old Bath Road Newbury, Berkshire RG14 1QN UK

Transcription:

Testing and Debugging Your Installation s ACS Routines Session 10238 Steve Pryor DTS Software, Inc. 770-922-2444

Automatic Class Selection is Important Implement storage management policy Executed for all new dataset allocations SMS and non-sms, all types of media Space, DSNTYPE, DCB, etc. DATACLAS Datasets Perf, avail, access, GS, PAV, etc. STORCLAS MGMTCLAS RLSE, Backup, Migration, Expiration STORGRP Volumes Thresholds, BPV, Mig/bkup/dump elig

ACS Variables &ACCT_JOB &DEF_STORCLAS &JOB &MSPARM &SIZE &ACCT_STEP &DSN &LABEL &MSPOLICY &SPACE_TYPE &ACSENVIR &DSNTYPE &LIBNAME &MSPOOL &SYSNAME &ALLVOL &DSORG &LLQ &NQUAL &SYSPLEX &ANYVOL &DSOWNER &MAXSIZE &NVOL &UNIT &APPLIC &DSTYPE &MEMHLQ &PGM &USER &BLKSIZE &EXPDT &MEMLLQ &RECORG &XMODE &DD &FILENUM &MEMN &RETPD &DEF_DATACLAS &GROUP &MEMNQUAL &SECLABL &DEF_MGMTCLAS &HLQ &MSPDEST &SECOND_QTY Read-write &DATACLAS &STORCLAS &MGMTCLAS &STORGRP

ACS Routine Failures Coding Errors Incorrect use of FILTLISTs or masks Incorrect use of quotes Incorrect use of GDG or special names Logic Errors Using inappropriate R/O variables Missing or early EXIT Failure to SET R/W variable appropriately Unable to allocate Poor performance Wrong volume selected Missing backup, dataset deleted

Problem Variables &ALLVOL, &ANYVOL Volume reference values = REF=SD ST NS Recall or Recover and VOLCOUNT(ANY) = null &DSN GDG = base name only, PDS = dataset name only Data Class assignment may change R/O variables &RECORG, &NVOL, &DSNTYPE, &SIZE / MAXSIZE

Problem Variables &SIZE / &MAXSIZE ACS test case must specify KB, ACS routine can compare KB/MB z/os 1.11 introduces &SPACE_TYPE and &SECOND_QTY &SIZE / &MAXSIZE recalculated after DATACLAS routine runs But this is not accounted for in ISMF test For non-vsam &SIZE = Primary + directory &MAXSIZE = Primary + directory + 15 secondaries For VSAM (based on cluster, then data, then index) &SIZE = Primary &MAXSIZE = Primary + 122 secondaries * volcount May be different if ECR and/or Add l Volume Amount = S

Native ISMF Test Test cases are flatfile PDS members ISMF Test (7.4.3) SCDS or ACTIVE ACS Test Listing Testcase library Member ABC1 DESCRIPTION1: STEVE TEST CASE 1 DSN: MY.DATA.SET DD: DD1 XMODE: BATCH ACSENVIR: ALLOC LABEL: SL FILENUM: 1

Create an ISMF Test Case Manually Define or Alter or Execute via ISMF Test (7.4.1, 7.4.2, 7.4.3) Naviquest Saved ISMF list SMF data created by ACS routine exit DCOLLECT, VMA extract Data source may need to be cleaned up before testcase generation SYS1.VTOC, SYS1.VVDS eliminated duplicates eliminated

Naviquest Terminology Data Classification Data Types Data Subtypes Testbed library TSO online Batch production temp Hi perf Delete daily DDEL HPER Weekly migrate Non SMS WMIG NEVR Subtype Prefix All datasets associated with a data subtype have the same expected ACS results. HPER1 HPER2 WMIG1 WMIG2

ISMF Testcase Listings ACS routines executed and EXIT codes SMS classes and SG assignments Messages ACS TESTING RESULTS CDS NAME : STEVE.SCDS ACS ROUTINE TYPES: DC SC MC SG ACS TEST LIBRARY : STEVE.TESTCASE.PDS - ACS TEST MEMBER EXIT CODE RESULTS --------- ---------- ----------------------------------- DESCRIPTION: TEST CASE CREATED 2011/01/30 AT 08:06 BY STEVE EXPECTED RESULT: SJPA1 0 DC = NULL VALUE ASSIGNED 0 SC = STC1 MSG : SIZE GT 30M=000014C0 0 MC = STANDEF ACS TESTING RC: 00

Saved ISMF List Create list via ISMF Dataset application (option 1) Easy to create Build Test Cases via Naviquest (option 11.1) Easy to create But does not always create valid test cases Any invalid data in the testcase results unable-to-alter, unableto-execute testcase, or worse Saved list uses SPACETYPE instead of SPACE_TYPE Saved list uses K or M in SIZE variable (unable to ALTER but testcase executes, incorrectly) Non-dataset variables must be manually entered JOB, XMODE, ACCT, DD, etc. can be entered at Naviquest testcase generation time

DCOLLECT Data Run DCOLLECT for dataset info ISMF option C or batch job Generate test cases Naviquest (ISMF 11.2) Easy to create lots of test cases Naviquest testcase generation filters out SYS1.VVDS, etc. Non-dataset variables must be manually entered after testcase generation JOB, XMODE, ACCT, DD, etc.

SMF Records from IGDACSSC STORCLAS exit supplied in SYS1.SACBCNTL source code accesses ACERO, ACERW, ACSPM must be reassembled for each new DFSMS release writes exit entered message write ACS R/O variables to SMF type 127 optionally write ACS R/O variables to job log if ACCT=DEBUG Program ACBTST create testcases from SMF type 127 recs - one PDS member/rec Can create many test cases includes all variables - JOB, STEP, DD, PGM, USER, etc. Customize exit to select only desired jobs/applications PDS member names Tnnnnnnn may need to be made meaningful

Naviquest Enhanced ACS Management ISMF Option 11 Test Case Generation Test Case Listings Comparison Test Case Update Batch or ISPF batch jobs invoke ISMF / ISPF via REXX most ISPF functions can be performed in batch

Naviquest Regression Testing Test Case Execution Execute Test Cases vs. SCDS 1 save listing Execute Test Cases vs. SCDS 2 save listing Test Case Listing Comparison Compare listing 1 vs. listing 2 Outputs: Summary of exceptions listing Exception Test Case PDS test case library for test cases with different results Test Case Update Update Test Case Library from Exception Library + Exception Listing Replace DESCRIPTION2 DC=, SC=, MC=, SG= (limited to 80 chars)

WRITE Statements Use to display values of variables Up to 110 characters Problems TSO displays only if allocation fails Only first SG name displayed Only first volume displayed for &ALLVOL / &ANYVOL Maximum of 5 messages per ACS routine

Using Trigger Values Testing vs. ACTIVE Run test jobs, e.g., PGM=IEFBR14 Examine JESMSGS Testing vs. SCDS Use ISMF Test Examine Testcase Listing Select on special values Special JOBNAME, DD, etc. IF &DD = PI314159 THEN WRITE SIZE= &SIZE IF &JOBNAME = TESTX* THEN DO WRITE SIZE= &SIZE IF &XMODE = TSO THEN EXIT CODE(99) END Nonexistent SMS class, e.g., IF &STORCLAS = NULL THEN SET &STORCLAS = IF &ACSENVIR = ALLOCTST (vendor use)

CONVERTVOL Use SMS Conversion-in-Place (SIM) to execute ACS routines Non SMS DFSMSdss or FDRCOPY SMS // EXEC PGM=FDRCONVT //SYSIN DD * SIMULATE STATUS=SMS, VOL=PROD04, REDETERMINE=YES ACS Routines // EXEC PGM=ADRDSSU //SYSIN DD * CONVERTV SMS TEST - DYNAM(PROD04)- RETDETERMINE

What ACS Testing Can t Do Expose ACS routine logic errors directly Use of LIKE= parameter in JCL No &DSNTYPE, &DSORG, &SIZE/&MAXSIZE, RECORG Find Dataset Separation Profile errors Determine which volume will be selected for allocation Use VOLSELMSG option in IGDSMSxx

IGDSMSxx Values Values affecting ACS Routines ACSDEFAULTS(YES NO) BREAKPOINTVALUE(nnnnn) DSNTYPE(LIBRARY PDS HFS) REVERIFY(YES NO) USE_RESOWNER(YES NO) Values affecting Allocation and Volume Selection FAST_VOLSEL(ON OFF) GDS_RECLAIM(YES NO) OVRD_EXPDT(YES NO) USEEAV(YES NO) VOLSELMSG

ACS Testing and Debugging Keys to Success Limit the size and complexity of the ACS routines Log all updates to ACS and prepare a fallback Use SETSMS with SAVEACDS Use WRITE statements to show ACS variable values Include easily-accessible testing code in ACS routines Perhaps duplicate the production ACS routines as test segments in the test LPARs Create / Maintain Testcase Library and regression testing regimen

Documentation DFSMSdfp Storage Administration Document Number: SC26-7402-15 Defining SMS Constructs ACS Routine Language and Syntax Naviquest DFSMS Using ISMF Document Number: SC26-7411-08 DFSMS Implementing System-Managed Storage Document Number: SC26-7407-07 Implementing SMS management DFSMS Using the New Functions Document Number: SC26-7473-09 What s new in DFSMS (incl HSM, DFDSS, IDCAMS, et. al.)

Questions???