DECOMPRESS


8.5C

 

The DECOMPRESS instruction expands the logical string from a source variable into a destination variable. The instruction uses the following format:

 

 

[label]

DECOMPRESS

{source}[{sep}{dest}]

 

Where:

label

Optional. A Program Execution Label.

source

Required. A previously defined Character String Variable that contains the input string that is decompressed.

sep

Required. A comma or one of the following prepositions: BY, TO, OF, FROM, USING, WITH, IN, or INTO.

dest

Required. A previously defined character variable that receives the decompressed data.

Flags Affected: EQUAL, EOS, OVER

Note the following:

  1. Only the Logical String of the {source} variable is decompressed.

  2. The EOS flag is set when the {dest} variable is too small to receive all of the decompressed data. In this case, the {dest} variable is set to a Null String.

  3. The EQUAL flag is set if the {source} variable was successfully decompressed and stored into {dest}.

  4. The OVER flag is set if a recoverable decompression error occurs.

  5. A U42 error occurs if an internal error occurs.

 

 

See Also: Example Code, COMPRESS, Character String Instructions

 



PL/B Language Reference DECODE64 DECRYPT