Chapter 2. Application Programming Interfaces

APIs for CGI applications

.

24

Get Environment Variable (QtmhGetEnv) API . . 25

Required parameter group

. 25

Error messages

.

26

Put Environment Variable (QtmhPutEnv) API . . 26

Required parameter group

. 26

Error messages

.

27

Read from Stdin (QtmhRdStin) API . . . .

. 27

Required parameter group

. 28

Error Messages

.

28

Write to Stdout (QtmhWrStout) API . . . .

. 29

Required parameter group

. 29

Error messages

.

29

Convert to DB (QtmhCvtDB) API

. 30

Required parameter group

. 31

Error messages

.

32

Parse QUERY_STRING Environment Variable or

 

 

Post stdin data (QzhbCgiParse) API . . . .

. 32

Required parameter group

. 33

CGII0200 Format

.

35

Field descriptions

.

35

Error messages

.

36

Produce Full HTTP Response (QzhbCgiUtils) API

36

Error messages

.

38

Configuration APIs

.

38

Convert URL to Path (QzhbCvtURLtoPath) API

 

38

Authorities and locks

.

38

Required parameter group

. 39

Error messages

.

40

Retrieve Directive (QzhbRetrieveDirective) API

 

40

Authorities and locks

.

40

Required parameter group

. 40

Error messages

.

42

Retreive a list of all Configuration Names

 

 

(QzhbGetConfigNames) API

. 42

Authorities and locks

.

42

Required parameter group

. 42

Error messages

.

43

Create a Configuration (QzhbCreateConfig) API

 

43

Authorities and locks

.

43

Required parameter group

. 43

Error messages

.

44

Delete a Configuration (QzhbDeleteConfig) API

 

44

Authorities and locks

.

44

Required parameter group

. 44

Error messages

.

44

Read a Configuration File into Memory

 

 

(QzhbOpenConfig) API

. 45

Authorities and locks

.

45

Required parameter group

. 45

Error messages

.

46

Free a Configuration File from Memory

 

 

(QzhbCloseConfig) API

.

46

Authorities and locks

.

46

Required parameter group

. 46

Error messages

.

47

Search for a Main Directive (QzhbFindDirective) API . . . . . . . . . . . . . . . . 47

Authorities and locks

.

47

Required parameter group

. 47

Error messages

.

48

Search for a Subdirective under Main Directive

 

 

(QzhbFindSubdirective) API

.

49

Authorities and locks

.

49

Required parameter group

. 49

Error messages

.

50

Return Details of a Main Directive or

 

 

Subdirective (QzhbGetDirectiveDetail) API . .

. 51

Authorities and locks

.

51

Required parameter group

. 51

Error messages

.

52

Add a Main Directive or Subdirective

 

 

(QzhbAddDirective) API

.

52

Authorities and locks

.

52

Required parameter group

. 52

Error messages

.

54

Remove a Main Directive or Subdirective

 

 

(QzhbRemoveDirective) API

. 54

Authorities and locks

.

54

Required parameter group

. 54

Error messages

.

55

Replace a Main Directive or Subdirective

 

 

(QzhbReplaceDirective) API

.

55

Authorities and locks

.

55

Required parameter group

. 55

Error messages

.

56

Server instance APIs

.

56

Retrieve a list of all Server Instances

 

 

(QzhbGetInstanceNames) API

. 56

Authorities and locks

.

56

Required parameter group

. 56

INSN0100 Format

.

57

Field descriptions

.

57

Error messages

.

57

Look up Server Instance Data

 

 

(QzhbGetInstanceData) API

.

58

Authorities and locks

.

58

Required parameter group

. 58

INSD0100 Format

.

59

Field descriptions

.

59

Error messages

.

60

Change Server Instance Data

 

 

(QzhbChangeInstanceData) API

. 60

Authorities and locks

.

61

Required parameter group

. 61

Error messages

.

61

Create a Server Instance (QzhbCreateInstance)

 

 

API . . . . . . . . . . . . . . . . 62

Authorities and locks

.

62

Required parameter group

. 62

Error messages

.

63

© Copyright IBM Corp. 1997, 2000

23

Page 33
Image 33
IBM AS/400E manual Application Programming Interfaces

AS/400E specifications

The IBM AS/400E, now more commonly known as IBM i, is a robust and versatile midrange server that has been designed to provide a comprehensive computing solution for businesses of all sizes. First introduced in the late 1980s, the AS/400 series has undergone multiple enhancements and rebranding, with the AS/400E being one of the notable iterations. This powerful platform is closely associated with IBM's commitment to reliability, scalability, and integrated business solutions.

One of the main features of the AS/400E is its highly integrated architecture that combines hardware and software into a cohesive system. This integration allows for seamless operations, reducing the complexity typically associated with managing disparate systems. The system is powered by IBM's proprietary OS/400 operating system, which has evolved into IBM i, featuring advanced capabilities like object-oriented programming, integrated database management, and security features that are essential for enterprise environments.

A key characteristic of the AS/400E is its robust database support, primarily through the use of DB2 for i. This integrated database management system enables efficient data handling and retrieval, facilitating real-time business analytics and reporting. Furthermore, the platform supports a variety of programming languages, including RPG, COBOL, and Java, making it flexible for developers who require diverse tools for application development.

The AS/400E is also known for its exceptional reliability and uptime, making it a preferred choice for critical business applications in industries such as finance, healthcare, and manufacturing. This reliability is backed by advanced error detection and correction mechanisms, as well as redundancy features that help prevent data loss and minimize downtime.

In terms of scalability, the AS/400E can effortlessly expand to accommodate growing business demands. Organizations can increase processing power by adding more resources without significant disruption. This scalability, combined with the system’s built-in virtualization capabilities, allows businesses to optimize resource usage and streamline operations.

Security is another defining feature of the AS/400E. The platform incorporates various layers of security measures, including user authentication, encryption, and comprehensive auditing capabilities, ensuring that sensitive business data is protected against unauthorized access.

Overall, the IBM AS/400E remains a powerful tool in the enterprise computing landscape, providing businesses with an integrated, reliable, and secure solution for their technological needs. Its enduring popularity is a testament to its capability to evolve with changing business requirements while maintaining its core attributes of high performance and stability.