Note: Built-In Function Rules Usage Options
Retrieves a list of fields and their descriptions from the Repository and returns them to the calling RDML function in a variable length working list.
This is a Specialized Built-In Function for use in a Development Environment only.
Arguments
|
Return Values
|
Example
A user wants to customize some field definitions by changing labels, and column headings.
FUNCTION OPTIONS(*DIRECT)
GROUP_BY NAME(#FLDDTL) FIELDS((#FLDNAM *NC) (#FLDDES *NC) #FLDLBL #FLDCH1 #FLDCH2 #FLDCH3)
DEF_LIST NAME(#FLDLST) FIELDS(#FLDNAM #FLDDES #SPARE) TYPE(WORKING) ENTRYS(1000)
********** -Request field-
REQUEST FIELDS(#STRFLD) TEXT(('Field to start from' 5 5))
********** -Get list of fields-
USE BUILTIN(GET_FIELD_LIST) WITH_ARGS(#STRFLD) TO_GET(#FLDLST #LAST #RETCOD)
********** -Process lists-
SELECTLIST NAMED(#FLDLST)
USE BUILTIN(GET_FIELD) WITH_ARGS(#FLDNAM) TO_GET(#RETCOD #FLDTYP #FLDLEN #FLDDEC #FLDREF #FLDDES #FLDLBL #FLDCOL)
********** < break column headings into FLDCH1, FLDCH2, FLDCH3 >
********** -Change field definition-
REQUEST FIELDS(#FLDDTL)
USE BUILTIN(PUT_FIELD) WITH_ARGS('NNN' #FLDNAM #FLDTYP #FLDLEN #FLDDEC #FLDREF #FLDDES #FLDLBL #FLDCOL) TO_GET(#STD_CMPAR)
ENDSELECT