Under MVS, the RETURN macro returns control to the calling program and signals normal termination of the returning program. Control returns after restoring the address of the calling programs save area into register 13. The return is made by executing a branch instruction using the address in register

14.You can write the RETURN macro to restore a designated range of registers, provide the proper return code in register 15, and flag the save area used by the returning program.

Sample MVS RETURN - using TOperand:

L13,4(13) Get backward chain pointer

 

RETURN

(3,6),T

(caller′ s save area)

+

LM

3,6,12(13)

Restore the registers

+

MVI

12(13),X′ FF′

Set return indicators

+

BR

14

Return

Sample MVS RETURN - Using Return CodeOperand:

 

LA

15,0

Set return code zero in R15

L13,4(13) Get backward chain pointer RETURN (14,12),RC=(15)

+

L

14,12(13,0)

Restore register 14

+

LM

0,12,20(13)

Restore registers 0 - 12

+

BR

14

Return

Note: You should have previously loaded a return code value into register 15.

Figure 29 on page 274 shows an example of MVS coding for initiation and termination procedures.

Chapter 13. A s s e m b l e r 273

Page 297
Image 297
IBM OS/390 manual 13,413 Get backward chain pointer, Caller′ s save area, Restore the registers, Mvi

OS/390 specifications

IBM OS/390, a versatile operating system, was a cornerstone in enterprise environments and played a pivotal role in mainframe computing. Released in the mid-1990s, OS/390 combined the strengths of IBM's MVS (Multiple Virtual Storage) with new features and enhancements, targeting scalability, reliability, and performance in demanding business applications.

One of the key features of OS/390 was its robust support for multiple users and processes. The system allowed thousands of concurrent users to access applications and data, ensuring high availability and minimizing downtime—a critical requirement for many large organizations. This scalability was supported through various enhancements in memory management and processor scheduling, enabling optimal resource allocation across diverse workloads.

OS/390 was known for its superior workload management capabilities. The Workload Manager (WLM) component allowed administrators to define service policies, specifying how system resources would be allocated according to the priority of tasks. This ensured that critical business processes received the necessary resources while less critical tasks were managed more flexibly.

Another significant characteristic of OS/390 was its commitment to security. The operating system provided comprehensive security features, including user authentication, data encryption, and auditing capabilities. This focus on security was vital for organizations handling sensitive data, ensuring compliance with regulations and safeguarding against unauthorized access.

OS/390 also supported advanced technologies that facilitated integration and development. The system included features like the IBM CICS (Customer Information Control System) for transaction processing and IMS (Information Management System) for database management. These technologies allowed organizations to build robust, high-performance applications tailored to specific business needs.

The ease of network integration was another strength of OS/390. With the advent of the Internet and global connectivity, OS/390 systems could easily interface with various network protocols, enabling businesses to operate in a connected world. This inclusion paved the way for many organizations to expand their capabilities and offer new services, driving digital transformation.

In conclusion, IBM OS/390 represented a significant advancement in mainframe technology, combining scalability, security, and robust workload management. Its rich feature set and support for critical enterprise applications solidified its role as a vital component of many organizations' IT infrastructures, ensuring they could meet their operational challenges head-on while supporting future growth. As technology continues to evolve, the legacy of OS/390 remains influential in the realm of computing.