z/OS MVS Programming: Writing Transaction Programs for APPC/MVS
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Version_Service

z/OS MVS Programming: Writing Transaction Programs for APPC/MVS
SA23-1397-00

Version_Service returns the highest version of the APPC/MVS callable services that is currently available on the system. Available services are those with a version number that is equal to or between the version number where the service was introduced and the version number returned from the Version_Service.

Example

The following example explains the versioning of APPC/MVS callable services:
  • Assume that the ATBxxx1 service was introduced in release A (the first release using this versioning scheme). The invocation of ATBxxx1 expects an Unidentify_type and a return code parameter.
  • In the next release (release B) a new parameter is added to form the ATBxxx2 service. The invocation of the new service expects only a return code parameter.
  • In the following release (release C), a new parameter is added to the ATBxxx2 service to form the ATBxxx3 service. No changes are made to the ATBxxx1 and ATBxxx2 services.

The following table shows how a call to the Version_Service returns callable service version numbers for the Allocate service:

Table 1. Example Values Returned by the Version_Service
Current Version Value Returned Services Available
0 (MVS/ESA SP 4.2.0) N/A (See note 1) ATBALLOC
1 (MVS/ESA SP 4.2.2) 1 ATBALLOC
2 (MVS/ESA SP 4.3.0) 2 ATBALLOC, ATBALC2
3 (MVS/ESA SP 5.1.0) 3 ATBALLOC, ATBALC2
4 (OS/390 V1R3) 4 or 5 (See Note 2) ATBALLOC, ATBALC2, ATBALC5
5 (OS/390 V2R8) 5 ATBALLOC, ATBALC2, ATBALC5
6 (z/OS V1R7) 6 ATBALLOC, ATBALC2, ATBALC5, ATBALC6
Note:
  1. The Version_Service was not available in MVS/ESA SP 4.2.0.
  2. If APAR OW33764 is installed, then the Version_Service will return a value of 5. Otherwise, a value of 4 will be returned.

Requirements

Format

Figure 1. ATBVERS - Callable Service Version Service
CALL ATBVERS(
        Callable_Service_Version_Number,
        Return_Code,
       );

Parameters

Callable_Service_Version_Number
Returned parameter
  • Type: Integer
  • Char Set: N/A
  • Length: 4 bytes

The highest version of all APPC/MVS callable services currently available on the system.

Return_Code
Returned parameter
  • Type: Integer
  • Char Set: N/A
  • Length: 4 bytes
Valid values for this parameter are:
Decimal Value
Description
0
The Version_Service successfully returned the version number.
48
A service failure occurred.

Restrictions

Transaction programs that call Version_Service while in task mode should not have any enabled unlocked task (EUT) functional recovery routines (FRRs) established. For more information about EUT FRRs, see the section on providing recovery in z/OS MVS Programming: Authorized Assembler Services Guide.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014