Previous Topic: YPRCSKL - Process HTML Skeleton

Next Topic: Usage Details

Parameters

The following are Process HTML Skeleton (YPRCSKL) parameters:

SKELETON (Skeleton name)

Specifies the name of the processed skeleton. This is the same as the member name within the YHTMSRC file.

skeleton-name

Specifies the name of the markup language skeleton being processed.

*SELECT or *S

Allows the user to select a skeleton from a list of skeletons in the YMLSSRC file.

OPTION (Processing Option)

Specifies the type of processing you want for the specified skeleton.

*CVTTODOC (Convert To Document)

This option performs a conversion from a source member in YMLSSRC to an HTML file in the WEBOPT directory. After selecting this option, the HTML document exists in the folder; the document can be accessed from a PC and edited using a graphical HTML editor or text-based editing tool.

*CVTTOSKL (Convert To Skeleton)

Following editing of the HTML skeleton, this option can be used to convert the edited HTML file back into a source member in YMLSSRC.

REPLACE (Replace existing skeleton/file)

Specifies whether an existing target object is replaced. If OPTION(*CVTTODOC) is specified, the target object is the HTML file in the Web Option folder. If OPTION(*CVTTOSKL) is specified, the target object is the member in YMLSSRC in the Web Option library.

*NO

If the target object already exists, it is not replaced, and an error message is sent.

*YES

If the target object already exists, it is replaced.

DLTDOC (Delete document)

Specifies whether the HTML file in the IFS is deleted after it is converted back into a member in YMLSSRC. If the conversion process is unsuccessful, this parameter is ignored and the HTML file is not deleted from the IFS

This parameter is only valid if OPTION(*CVTTOSKL) is selected.

Note: Specifying DLTDOC(*YES) ensures that 'stray' copies of skeletons are not retained in the IFS after they are edited using a 3rd-party HTML editor. This eliminates confusion about whether the member in YMLSSRC (which is used by Web Option at runtime) is up-to-date.

*YES

If the HTML file has successfully been converted back into a member in YMLSSRC, the HTML file is deleted from the IFS.

*NO

The HTML file is not deleted from the IFS following a successful conversion into a member in YMLSSRC.