WBFM gate, URL_DECODE function

This function processes a URL-encoded value in the source CCSID and converts it to a standard character string in the target CCSID.

Input parameters

SOURCE_DATA
This is the area containing the source data, consisting of URL-encoded forms data.
TARGET_BUFFER
This specifies the target buffer. If the specified buffer size is too small but other processing is successful, an OUTPUT_BUFFER_OVERFLOW exception is indicated and the required total size is returned as the actual length.
CLIENT_CCSID
Optional parameter. This is used to interpret percent-encoded escape sequences for URL-encoded data. If omitted, the default value is 819.
SOURCE_CCSID
Optional parameter. This is the source CCSID in which URL-encoded input data is provided. If omitted, it defaults to the client CCSID.
TARGET_CCSID
Optional parameter. This is the target CCSID in which output data is required. If omitted, it defaults to the source CCSID.

Output Parameters

REASON
The following values are returned when RESPONSE is EXCEPTION:
  • OUTPUT_BUFFER_OVERFLOW
  • CCSID_CONVERSION_ERROR
  • CCSID_NOT_SUPPORTED
  • FORMS_DECODE_ERROR
The following values are returned when RESPONSE is INVALID:
  • INVALID_FORMAT
  • INVALID_FUNCTION
  • INVALID_PARAMETER
The following values are returned when RESPONSE is DISASTER:
  • ABEND
  • INTERNAL_ERROR
  • FAILURE
RESPONSE
Indicates whether the domain call was successful. For more information, see RESPONSE parameter on domain interfaces.


dfhs3_WBFMurl_decode.html | Timestamp icon Last updated: Monday, 5 June 2017