place they originally appeared. The 0x6B would be converted to 0xF6C2, and the resultant escape sequence would be 0x6CF6C2.

For the second approach, leave the data in its EBCDIC form and replace the original escape sequence (three characters) with the single character. In this case, replace 0x6CF2C3 with 0x6B.

Note: The CGI program should preserve an escape sequence that represents the character “%”.

3.Call QtmhCvtDB to convert the input stream.

Note: 7-bit ASCII CCSID 367 is standard on browsers.

Symptom

Error 403: Forbidden - Path not valid for this server.

Whenever a “Forbidden - Path not valid for this server” occurs when running a CGI program, the configuration directives have not been specified correctly.

Cause when a CGI program is requested: When a CGI program is requested, a Pass directive appears before an Exec directive. For example:

Pass /qsys.lib/htmlcgi.lib/*

Exec /qsys.lib/htmlcgi.lib/*

In this example any programs in library htmlcgi will not run because the Pass occurred before the Exec. Once a Pass condition is true, then the server does not go further.

Solution when a CGI program is requested: The best way to avoid this problem is to use one of the following:

1.Use Exec and Pass directives with mapping:

Pass /doc/* qsys.lib/html.lib/* Exec /cgi-bin/* qsys.lib/html.lib/*

2.Put the CGI programs in a separate library:

Exec /qsys.lib/htmlcgi.lib/*

Pass /qsys.lib/htmldoc.lib/html.file/*

Cause when a document is requested: When a document is requested, an Exec directive appears before a Pass directive. For example:

Exec /qsys.lib/html.lib/*

Pass /qsys.lib/html.lib/*

In this example any documents in library html will not be found because the Exec occurred before the Pass.

Solution when a document is requested: Change the order of the directives to correct the problem. For example:

Pass /qsys.lib/html.lib/*

Exec /qsys.lib/html.lib/*

Note: Since the value mapped /qsys.lib/html.lib/ is the same for both Pass and Exec, the combination above would correct a problem with using an incorrect directive. It also would leave a directive in the file that could never be used.

142Web Programming Guide V4R5

Page 152
Image 152
IBM AS/400E manual Put the CGI programs in a separate library

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.