DB2/390: Automated PTF Check
[AIX] [APAR] [APARFIX] [automated] [check] [check out] [DB2/390] [fix] [level] [MVS] [OS/390] [oss] [oss1] [patch] [PTF] [pw check 1.02] [rfcoscol] [RSDB2FIX] [SAPNet] [saposcol] [service] [z/OS]
- DB2-z/OS:CCMS: DB13: DB2 Utilities SHRLEVEL SyntaxSymptom The DB13 job templates to call DB2 Utilities contain a wrong syntax for SHRLEVEL. The value of SHRLEVEL is accidentally enclosed in brackets. This prevents the fix from IBM APAR PK87122...
- DB2-z/OS:CCMS: DB2 Utility job changesSymptom REORG jobs in transaction DB13 alter the primary and secondary space allocation, if the number of extents is greater than four. In addition, REORG and COPY jobs in DB13 are not...
- DB2-z/OS: Service SQLSymptom You want to create the service SQL to extract the current SQL query scenario. Other terms DB2, OS/390, z/OS, PLI8, DSNPLI8 Reason and Prerequisites To reproduce problems in the area of...
- DB2-z/OS: CCMS corrections (6.10, 6.20, 6.40, 7.x)Symptom This note describes DB2 for z/OS-specific corrections and advance developments for the CCMS for R/3 Releases 6.10, 6.20, 6.40 and 7.00. Other terms DB2, z/OS, ABAP, transport, correction, fix, advance development,...
- DB2-z/OS:CCMS: DSNACCOR RUNSTATS recommendationsSymptom When computing RUNSTATS recommendations, the stored procedure DSNACCOR does not take into account, if last RUNSTATS time is older than last REORG time. Other terms DB2, CCMS, DB13, z/OS, OS/390, RUNSTATS,...
- DB2-z/OS:CCMS: DSNDB01 excluded when calling DSNACCMOSymptom DB13 jobs exclude DB2 directory table spaces (DSNDB01) from RUNSTATS, REORG and COPY when stored procedure DNSACCMO is used to call the DB2 utilities. Other terms DB2, CCMS, DB13, z/OS, OS/390,...
- DB2-z/OS:CCMS: Mapping Table for REORG not found (DSNU056I)Symptom The execution of Online REORG fails with the following error message: DSNU056I -D6K0 117 09:26:04.97 DSNUGMAP – TABLE ‘SAPBRE.QT000101′ NOT FOUND This means, that the mapping table, which is necessary for...
Symptom
Latest News
As of7-Jul-2009a new version of RSDB2FIX is available as an attachment (SAPK34POSN.CAR) to this note.Attention:This transport should only be applied for Releases <= 4.6D. For Releases >= 6.10 apply the highest Basis Support Package listed in this note.
Short Description
It can be time-consuming to check whether all required Program Temporary Fixes (PTF) listed in SAP Notes 81737 (APAR List) and 364109 (DB2 Put Levels) have been applied to a z/OS system. SAP provides a tool that automatically performs the following steps:
1. Determination of the release and/or version of all software components (SAP System, SAP kernel, z/OS system, and DB2 subsystem)2. Extraction of all required PTFs from SAP Notes 81737 and 364109.3. Determination of the status of all required PTFs within the z/OS system4. Output of missing PTFs and/or Function Module IDs (FMID)
Other terms
DB2/390, OS/390, MVS, AIX, z/OS
service, fix, level, patch, PTF, APAR, ++APAR, APARFIX,
automated, check, RSDB2FIX, saposcol, rfcoscol, oss, SAPNet, oss1
Reason and Prerequisites
Please check whether the following requirements are satisfied for the involved SAP systems:
1. SAP Release 4.0B or higher2. z/OS Version 1.4 or higher3. DB2-z/OS Version 7.1 or higher
Solution
Technical Details
The technical details of the PTF check are illustrated in the graphic below.
Check system Target system
|————————| |————————|
| Application server | | Application server |
|————————| |————————|
| | ____| SAP |
| | / |————————|
| |——————| | R/3 |
| | RSDB2FIX | | connect ICLI/emb.SQL
| |——————| | / |
| | 1) read |_______/ |————————|
| | SAP Note 81737 | \ | z/OS host |
| | SAP Note 364109 | | TCP/IP |————————|
| | 2) connect | | emb.SQL | |
| | 3) check | | \ | |——–| |——| |
| | 4) output | | \___|_|rfcoscol|____|SMP/E-| |
| |——————| | | | SAPCL | |GIMAPI| |
| | | |——–| |——| |
| | | |
|————————| |————————|
The automated PTF check is based on the assumption that customers administer all z/OS software components using IBM’s System Modification Program Extended (SMP/E). This program keeps a record of all changes (for example, PTFs) to function modules in the Consolidated Software Inventory (CSI).
SMP/E also provides an interface (GIMAPI) that can be called by application programs to query the contents of the CSI. For more information on SMP/E, see the IBM manuals “SMP/E Reference” and “SMP/E User’s Guide”.
SAP’s rfcoscol (SAP Release 4.6D – 6.40) and SAPCL (= stored procedure that substitutes rfcoscol starting with SAP Release 7.0) are able to call the GIMAPI interface and forward SMP/E data to the connected SAP System. The PTF check itself is performed by report RSDB2FIX and runs on an SAP System that is called check system in this note. The system to be checked is referred to as target system. The target and check system have to be identical for SAP Release 7.0 and higher. For older SAP Releases (<= 6.40) it is also possible to choose one single SAP System to be the check system for all other SAP installations at the customer site.
SAP Notes 81737 and 364109 are formatted such that they can be used directly as input for the check report (SAP Note 364109 provides a list of PTFs related to the latest DB2 put level). Both SAP Notes need to be downloaded to your PC and are read by RSDB2FIX.
Alternatively, the check tool RSDB2FIX is also able to automatically retrieve the most recent versions of SAP Notes 81737 and 364109 directly from SAPNet (also called OSS = Online Service System) if a valid RFC connection exists. In that case, a download of these notes to your PC is not required.
The target system's kernel release as well as the versions of the DB2 and z/OS software used are determined. This information combined with the uploaded PTF information is subsequently used to retrieve a list of required PTFs and FMIDs.
The kernel release is used to determine which ICLI-PTF is required.
Finally, RSDB2FIX queries the status of each required FMID and PTF employing the connection to GIMAPI and SMP/E. PTFs that are not found with status "applied" or "superseded" are listed as "missing" in the output.
APARs that are not checked because none of the associated FMIDs can be located in the given CSIs are also written to the output.
Setup
Before starting the PTF check you have to set up your environment as follows:
1. Check the SMP/E settings.
The PTF check tool can only check entries in CSI. You have to make sure that these CSI entries reflect exactly the status of the software that is actually running.2. Select one of your SAP Systems as the check system to perform the PTF check.3. Update the check report RSDB2FIX in the check system:SAP Web AS Release >= 6.10
Apply the Support Packages listed below.SAP Releases <= 4.6D:
Apply transport SAPK34POSx (attached to this note).4. SAP Release <= 6.40: Setup rfcoscol
Setup/start rfcoscol on the z/OS Host and establish an RFC connection. For details refer to SAP Note 103135 or the SAP DBA and Planning Guides. Ensure that the user that starts rfcoscol has read access to SMP/E's CSI data sets.5. SAP Release >= 7.0: Setup stored procedure SAPCL
For details refer to the SAP DBA Guide.6. SAP Release <= 6.40: Establish an RFC connection from the check system to the target systema) Start the target system.b) On your check system, call transaction SM59.c) Choose 'Edit -> Create’.d) Specify the name of the new “RFC destination” and “Connection type” ‘3′,and provide a “Description”.e) Press “Enter”.f) Specify and save the “Technical settings” and the “Logon” data.g) Check the new R/3 connection by choosing “Test connection” and “Remote Logon”.7. Establish a connection to SAPNet (optional)a) Logon to the check system and call transaction OSS1.b) Choose ‘Parameters->Technical Settings’.c) Specify and save the Log on settings.d) Choose ‘Log on’, specify group ‘1_PUBLIC’, and check whether the connection works.
Performing the Check
Once you have completed the preparations described in section “Setup”, the PTF check can be performed.
1. If the check system is not able to connect to SAPNet you need to transfer SAP Notes 81737 and 364109 to your PC.
Within the SAP Service Marketplace proceed as follows:a) Access web page https://service.sap.com/notes and display theEnglishversion of SAP note 81737.b) Choose the button ‘Download’ to add the note to the Download basket.c) Add SAP Note 364109 to the Download basked as well. It contains in machine readable format a list of all PTFs related to the currently required service levels.d) On your PC call the ‘SAP Download Manager’ and download the two notes (default file names: NOTE_0000081737 and NOTE_0000364109).2. To access the PTF check tool, call transaction SA38 and execute report RSDB2FIX. The input screen of check report RSDB2FIX appears.3. Enter the following input values:a) SAP Note 81737 (optional if SAPNet connection works)
Full path name of the file on the PC that contains SAP Note 81737
Leave this input field empty if SAP notes 81737 and 364109 are retrieved directly from SAPNet.b) Fix level file (optional)
Full path name of the file on the PC that contains SAP Note 364109.
Leave this input field empty if SAP notes 81737 and 364109 are retrieved directly from SAPNet.c) Log name
Name of the log to which the output is written. The pattern
&R3&, &DATE&, and &TIME&
are substituted by the name of the R3 destination, the date, and the time, respectively.d) SAP System (R/3)
RFC destination of the target system.e) z/OS Host (TCP/IP)
RFC destination of the target system’s z/OS host.f) SAPNet (R/3)
SAPNet’s RFC destination. The default connection ‘SAPOSS’ is created by using transaction OSS1. The transaction can be accessed directly by pressing button ‘Online Service System (OSS1)’g) SMP/E settings
The input depends on how SMP/E is configured in your environment. Specify the data set and the target zone for at least one CSI library.
Please note that you cannot check GLOBAL or DLIB zones.
For instance, all DB2 function modules may be administered in SMPE.DB261.CSI and target zone TDB261, whereas the remaining software components (Open MVS, JES3, VTAM, and so on) may be kept in data set SMPE.OS390.CSI and target zone TOS390.
If global and target zone are kept in different data sets you need to specify the data set that contains the global zone.4. Choose ‘Ping’ to check whether the RFC connection(s) work(s).5. Save the input as a variant (Ctrl+S; use the target system ID as variant name). The PTF check can then be easily repeated.6. Make sure that no other PTF check is currently running on the target system (there is only a risk that the results are incorrect, if you run PTF checks in parallel; there is no risk of damaging the SMP/E data!).7. Execute report RSDB2FIX.8. The result log is displayed directly after the check. Elder logs can be displayed by choosing button ‘Display logs’ within the initial selection screen of RSDB2FIX.
Analyzing the Output
RSDB2FIX writes all errors, warnings, and check results to the output. If the report completes successfully you find a list of missing PTFs and FMIDs at the end of the output.
1. Below the section “Check PTFs” the following output may appear:”No missing PTFs found.”
All PTFs required for the FMIDs found within the given SMP/E settings have been applied. Nothing needs to be done.
Please note that if the fix level file was not used, only a subset of all required PTF is checked and that there may well be lots of missing PTFs.”The following PFTs are missing.”
A list providing information on the missing PTFs and their associated FMID and APAR is given. The list is ordered by FMID and APAR. Check the status of these missing PTFs. Maybe they are only needed under certain circumstances. (For instance, the additional remark “required for …” indicates that a PTF is only need for certain SAP Releases.) Otherwise, apply them to your z/OS system. For more information, see SAP Note 81737.2. Below the section “Check FMIDs” the following output may appear:”All APARs checked.”
This means that all APARs (and associated PTFs) could be checked. The SMP/E settings specified in the input screen is complete.
Please note that if the fix level file was not used, only a subset of all required APARs/PTFs is checked.”The following APARs were not checked because none of the associated FMIDs could be located in the specified’ CSIs.”
The list contains all APARs that could not be checked because none of the associated FMIDs has been applied in the given SMP/E settings. It is possible that the APAR refers to a product that is not installed in your environment. This is, for example, the case if you use JES2 and the APAR is related to JES3.
Check whether your input to report RSDB2FIX is incomplete. If that is the case you should correct the SMP/E settings on the input screen and run report RSDB2FIX again.
Troubleshooting
The following list helps to solve some of the problems that may occur when executing RSDB2FIX:
Error message: “SAPOSCOL is outdated (version >= 4.6D required) or not running on z/OS. See SAP note 183311 for details.”
-> Install the latest versions of saposcol/rfcoscol/librfc as described in SAP notes 103135 and 359375.Error message: “Report RSDB2FIX is outdated. Please obtain current version. See SAP note 183311 for details.”
-> Import the latest version of RSDB2FIX provided on sapservX in file ~ftp/general/R3server/abap/note.0183311/SAPK34POSn.CAR or in a Basis Support Package (SAP Release >= 6.10).Error message: “Version of SAP note 81737 is outdated. Please use current version.”
-> Download the latest version of SAP note 81737 and use it as input.Error message: “SMP/E API failed.” with “GIM59605S ** ENQ FAILED FOR SHARED USE OF … FOR QUERY PROCESSING.”
-> RSDB2FIX could not access SMP/E due to a SMP/E job or user session running in parallel.Error message: “SMP/E API failed.” with “GIM44250I GIMVSMSG – THE VSAM ERROR ANALYSIS OCCURRED …”
-> Give read access for SMP/E’s CSI data sets to the user that starts rfcoscol.
Fixes
The following list describes the fixes or developments shipped with the current version of RSDB2FIX. Please note that the latest transport always contains all earlier fixes.
1. SAPK34POS1PTF check runs on z/OS application servers.Node name of the R/3 application server accessed is written to the output.2. SAPK34POS2Fix level information is provided in a file named fixYYMMDD.txt.Additional information is written to the output:Put levels related to fix level infoGlobal settings ( Report version, min. PTF note version, …)Improved error handlingImproved consistency checks3. SAPK34POS3Problems with OS/390 Versions 2.7, 2.9, and 2.10 have been fixed.Additional information is written to the output:DOC-APARsOpen APARs4. SAPK34POS4
RSDB2FIX can now be used to check the PTF level before starting a heterogeneous migration from a non-DB2/390 source to a DB2/390 target system. Please proceed as follows:a) Import the latest version of RSDB2FIX into the source SAP system.b) Start saposcol and rfcoscol on the target z/OS host.c) Specify an RFC connection between the source SAP system and the target z/OS host.d) Call SA38 and execute RSDB2FIX specifying the name of the source system as input value for “SAP System (R/3)”.
During the check RSDB2FIX realizes that the SAP system is not running on DB2/390 and issues a warning. The check continues “assuming” that DB2/390 version 6.1 is implemented.5. SAPK34POS5Better performance (also see SAP note 359375)Result is written to standard R/3 log and can be displayed within RSDB2FIX by choosing “Display logs”.SMP/E API moved to rfcoscol.saposcol is not accessed during the PTF check anymore.Additional product information is written to the log.6. SAPK34POS6
Automatic retrieval of SAP note 81737 and fix level file from SAPNet.7. SAPK34POS7Fix in log name generation.Additional output in case of an SMP/E API error.8. SAPK34POS8 (Releases 3.0F-4.6D)
SAPKB61004 (Release 6.10)Support of DB2/390 v7.1Workaround for API problem9. SAPK34POS9 (Releases 3.0F-4.6D)
SAPKB61013 (Release 6.10)Support of z/OS 1.2Increased number of CSI libraries10. SAPK34POSA (Releases 3.0F-4.6D)
SAPKB61018 (Release 6.10)
SAPKB62002 (Release 6.20)Default database version DB2/390 v7.1Fix of Error in Step ‘Call R/3 System’.11. SAPK34POSB (Releases 3.0F-4.6D)
SAPKB61023 (Release 6.10)
SAPKB62006 (Release 6.20)Fix of Error in Step ‘Check SAP Note’ with error message ‘File … does not contain SAP note 81737 . Please specify full path name.’12. SAPK34POSC (Releases 3.0F-4.6D)
SAPKB61024 (Release 6.10)
SAPKB62009 (Release 6.20)Different error message if FMID is not found in specified CSIs.13. SAPK34POSD (Releases 3.0F-4.6D)
SAPKB61032 (Release 6.10)
SAPKB62020 (Release 6.20)Fix of an error in the automatic retrieval of SAP note 81737 and fix level file from SAPNet.14. SAPK34POSE (Releases 3.0F-4.6D)
SAPKB61038 (Release 6.10)
SAPKB62031 (Release 6.20)Minor changes15. SAPK34POSF (Releases 3.0F-4.6D)
SAPKB61039 (Release 6.10)
SAPKB62037 (Release 6.20)
SAPKB64001 (Release 6.40)Codepage check added.16. SAPK34POSG (Releases 3.0F-4.6D)
SAPKB61039 (Release 6.10)
SAPKB62039 (Release 6.20)
SAPKB64002 (Release 6.40)Fix of an error in the automatic retrieval of the fix level file from SAPNet (short dump)Adjustments for DB2 v8.117. SAPK34POSH (Releases 3.0F-4.6D)
SAPKB61042 (Release 6.10)
SAPKB62046 (Release 6.20)
SAPKB64010 (Release 6.40)Fix of SQL error (SQLCODE = -104, ERROR: ILLEGAL SYMBOL “#”). Occurs ifthe character ‘#’ is different from 0×7B in the codepage used.18. SAPK34POSI (Releases 3.0F-4.6D)
SAPKB61043 (Release 6.10)
SAPKB62050 (Release 6.20)
SAPKB64012 (Release 6.40)Extended check of ICLI PTFsStructured output of missing ICLI PTFs (now with a header that specifiesthe CSI dataset and target zone)19. SAPK34POSJ (Releases 3.0F-4.6D)
SAPKB61045 (Release 6.10)
SAPKB62055 (Release 6.20)
SAPKB64015 (Release 6.40)
SAPKB70005 (Release 7.00)Additional VARCHAR FOR BIT DATA check (details see SAP note 848384)20. SAPK34POSK (Releases 4.0B-4.6D)
SAPKB61046 (Release 6.10)
SAPKB62057 (Release 6.20)
SAPKB64015 (Release 6.40)
SAPKB70006 (Release 7.00)Modification that allows the upload of SAP notes that where downloaded from SAP Service Marketplace with the SAP Download Manager21. SAPKB61046 (Release 6.10)
SAPKB62058 (Release 6.20)Fix of SQL error (SQLCODE -333). Occurs with z/OS USS application servers and DB2 v8.1.22. SAPKB61048 (Release 6.10)
SAPKB62061 (Release 6.20)
SAPKB64019 (Release 6.40)
SAPKB70010 (Release 7.00)Enablement of DB2 Connect check.23. SAPK34POSL (Releases 3.1I-4.6D)Adjustments for SAP Release 3.1×24. SAPKB62064
SAPKB64022
SAPKB70014Change in handling of SAPNet connection (only 7.0)Adjustment of DB2 Connect check (THIN/FAT client, v9.1)25. SAPK34POSM (Releases 3.1I-4.6D)
SAPKB62064
SAPKB64022
SAPKB70016
SAPKB71006Adjustments for DB2 v9.126. SAPK34POSN (Releases 3.1I-4.6D)
SAPKB62067
SAPKB64025
SAPKB70020
SAPKB70105
SAPKB70202
SAPKB71009
SAPKB71104Fix of determination of z/OS versionUpward compatibility of variants