Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Function result

&pagelevel(3)&pagelevel

The predefined functions included in the SDF-P scope of supply always return exactly one return value from the input parameters of the function call and the current environment data. This value is the function result.

Example

The function USER-IDENTIFICATION( ) is a function without input parameters; it returns the user ID of the current task as a return value.

Call:

USER-IDENTIFICATION( )

Return value:

'US123456'

Example

The function DATE( ) has exactly one input parameter; it returns the current date as its return value. The FORMAT input parameter determines the format in which the date is transferred, i.e. the way in which the day, month and year are arranged.

Call:

DATE(FORMAT=*ISO)

DATE(FORMAT=*GERMAN)

DATE(FORMAT=*AMERICAN)

Return value:

'1996-06-24176'

'24.06.1996'

'06/24/96176'

Example

The FILL function has four input parameters; it also returns exactly one return value, a string that is filled with fill characters to the specified length and in the specified direction.

Call:

FILL('ABCDE', 8, SIDE=*RIGHT, FILL-BYTE=C'.')

FILL('ABCDE', 8, SIDE=*LEFT)

Return value:

'ABCDE...'

' ABCDE'