a.Add a Pass directive using the WRKHTTPCFG command.

Pass /sample /qsys.lib/samplel.lib/samplef.file/samplem.mbr

Where samplel is the library, samplef is the file, and samplem is member name in which the AS/400 stores this document.

b.Set the source type of samplem member to HTML(CHGPFM).

Access to file is *USE for QTMHHTTP or *PUBLIC(GRTOBJAUT). v To store it in the Integrated File System webtest directory:

a.Add a Pass directive using the WRKHTTPCFG command.

Pass /sample /webtest/sample.html

where webtest is an integrated file system directory, and sample.html is the document.

b.Access to file is *R for QTMHHTTP or *PUBLIC(CHGAUT).

vTo store it in IFS QOpenSys/webtest directory:

a.Add a Pass directive using the WRKHTTPCFG command.

Pass /sample /qopensys/webtest/sample.html

where webtest is an integrated file system directory in QOpenSys file system.

b.Access to file is *R for QTMHHTTP or *PUBLIC(CHGAUT).

vTo store it in the QDLS folder:

a.Add a Pass directive using the WRKHTTPCFG command.

Pass /sample /qdls/webtest/sample.htm

Where webtest is a QDLS folder, and sample.htm is the document.

b.Access to file is *R for QTMHHTTP or *PUBLIC(CHGAUT).

7.Add QTMHHTTP to AS/400 directory entry(WRKDIRE).

8.Finally, still using WRKHTTPCFG, enable POST in your HTTP configuration file. POST must be enabled in order for the server to serve CGI programs that read standard input.

9.Start or restart the server.

10.Point your web browser to the URL for the HTML document on the server where hostname is the fully qualified host domain name of your AS/400 system.

http://hostname/sample

Note: For REXX programs, you only need to indicate in the EXEC directive the path and the file name. REXX CGI execs must reside in database files named REXX or QREXSRC. For example:

EXEC /rexx/* /QSYS.LIB/AS400CGI.LIB/QREXSRC.FILE/*

The URL is :

http://hostname/rexx/samplecgi.rexx

Using directives for security and access control

The server administrator controls the behavior of the server. The server will not do anything that the server administrator has not explicitly configured it to do.

Several features of the server ensure that the administrator maintains this control:

86Web Programming Guide V4R5

Page 96
Image 96
IBM AS/400E manual Using directives for security and access control

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.