WRAP

Syntax

Refer to the WFL Programming Reference Manual for the complete syntax diagrams.

Explanation

The WRAP statement enables users to

  • Wrap disk files into new files with a FILEKIND value of WRAPPEDDATA.

  • Wrap multiple disk files into a single file with a FILEKIND value of CONTAINERDATA.

  • Create wrapped files and wrapped containers with digital signatures.

A wrapped file created using the WRAP statement contains the file data and the original disk file headers. A wrapped container is made up of one or more wrapped files. Both wrapped files and containers can be transported across an open network and then be re‑created on another ClearPath MCP system using the UNWRAP statement. Refer to the UNWRAP command in this section.

The WRAP command is processed by the Work Flow Language (WFL), not CANDE. The command (and any text appearing on the same line) is passed unedited to WFL. For a more detailed explanation, refer to the WRAP statement in the WFL Programming Reference Manual.

Examples

The following example shows how to create the wrapped file WRAPPED/FILEA ON DISK from FILEA ON DISK and WRAPPED/FILEB ON DISK from FILEB ON DISK:

WRAP  FILEA AS WRAPPED/FILEA,
      FILEB AS WRAPPED/FILEB;