DLURLCOMPLETE
The DLURLCOMPLETE function returns the complete URL value from a DataLink value with a link type of URL. The value is the same as what would be returned by the concatenation of DLURLSCHEME with '://', then DLURLSERVER, and then DLURLPATH. If the DataLink has an attribute of FILE LINK CONTROL and READ PERMISSION DB, the value includes a file access token.
- DataLink-expression
- An expression that results in a value with a built-in DataLink data type.
If the argument can be null, the result can be null; if the argument is null, the result is the null value.
The result of the function is a varying-length string. The length attribute depends on the attributes of the DataLink:
- If the DataLink has an attribute of FILE LINK CONTROL and READ PERMISSION DB, the length attribute of the result is the length attribute of the argument plus 19.
- Otherwise, the length attribute of the result is the length attribute of the argument.
If the DataLink value only includes the comment, the result returned is a zero length string.
The CCSID of the character string is the same as that of DataLink-expression.
Examples
- Given a DataLink value that was inserted into column COLA (with
the attributes of FILE LINK CONTROL and READ PERMISSION DB) of a row
in table TBLA using the scalar function:
then the following function operating on that value:INSERT INTO TABLA VALUES( DLVALUE('http://dlfs.almaden.ibm.com/x/y/a.b','URL','A comment') )
Returns the value 'HTTP://DLFS.ALMADEN.IBM.COM/x/y/****************;a.b', where **************** represents the access token.SELECT DLURLCOMPLETE(COLA) FROM TBLA