AS/400 Internet Connection Server

Using the WRKHTTP command for CONFIG file editing


As an alternative to the other editing techniques, you can use the Work with HTTP Config (WRKHTTP) command.

Figure 1 shows a sample of the WRKHTTP command when prompted.
WRKHTTP Command (figure 1)
Figure 1: The WRKHTTP command


Here are some of the reasons why you might want to use this command:

Parameters used with the WRKHTTP command

The following parameters are used with the WRKHTTP command. Parameter values that are underlined are default values.
EDIT - selects the editor to use.

*SEU - use the AS/400 Source Entry Utility editor. The record length limit is 240 bytes. Also, there is no automatic syntax checking of the CONFIG file.

*SYS - use the system provided CONFIG file editor. This supports the maximum record length and provides syntax checking. However, this editor only allows line-at-a-time editing.

*NO - do not open the CONFIG file in either editor. Use this option if you want to use WRKHTTP to print the CONFIG file or generate a backup only.

PRINT - selects the print option to use. The CONFIG file listing is put into your job's output queue.

*NO - a listing of the CONFIG file is not created.

*BEFORE - the CONFIG file is listed before being opened in the editor.

*AFTER - the CONFIG file is listed after exiting the editor.

*BOTH - the CONFIG file is listed before and after editing.


BACKUP - used to indicate whether or not a generation backup of the CONFIG file is to be created.

*YES - a backup of the current CONFIG file is created before being opened for editing. The backup is in member QUSRSYS/QATMHTTPC (CONFIGxxxx) where "xxxx" is a number from 0001 to 9999.

*NO -- a backup of the current CONFIG file is not created.

PDM - used to indicate whether or not the PDM utility should be started for file QUSRSYS/QATMHTTPC after editing. You can use this option to delete old generation backups of the CONFIG file.

*NO - PDM is not started.

*YES - PDM is started.

RESTART - indicates whether or not the HTTP server is to be restarted at the completion of the WRKHTTP command.

*YES - the HTTP server is restarted.

*NO - the HTTP server is not restarted.



Creating the program and command

Use the following CL commands to create the WRKHTTP CL program and the WRKHTTP command. The commands assume that you have library HTTPLIB and source files HTTPLIB/QCLSRC and HTTPLIB/QCMDSRC.
To create the CL program:
CRTCLPGM PGM(HTTPLIB/WRKHTTP) SRCFILE(HTTPLIB/QCLSRC)

To create the command:
CRTCMD CMD(HTTPLIB/WRKHTTP) PGM(HTTPLIB/WRKHTTP)
SRCFILE(HTTPLIB/QCMDSRC



Return to WRKHTTP Download Page


Craig Pelkie
Bits & Bytes Programming, Inc.
craig@web400.com

web400 Home Page Download Files


Web Server, as400
Copyright © 1997, Bits & Bytes Programming, Inc.

WWWSights, Publisher
Last modified April 17, 2000