Command reference / comm
RTVCFGSRC
Retrieve Configuration Source
The Retrieve Configuration Source (RTVCFGSRC) command is used to retrieve the CL source statements which describe existing configuration objects. These source statements are placed into a source file member. The CL source may be used to re-create the configuration objects.
Allowed environments: *ALL.
Positional parameters: 4.
Parameters
CFGD
Configuration description
Specifies the names of configuration objects to be retrieved. This is a required parameter. Up to 256 names can be specified. These can be any combination of configuration object and generic names. You can enter multiple values for this parameter.
Suggested / special values:
*ALL
*ALL- All configuration objects of the specified configuration type (CFGTYPE parameter) are retrieved.
generic-configuration-object-name- Specify the generic name of the configuration description name. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. The asterisk substitutes for any valid characters. A generic name specifies all objects with names that begin with the generic prefix for which the user has authority. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete object name.
configuration-description-name- Specify the user-defined name of the configuration description.
CFGTYPE
Type
Specifies the type of configuration object to be retrieved.
Allowed values:
*ALL, *COSD, *CTLD, *DEVD, *LIND, *MODD, *NTBD, *NWSD
*ALL- All network server descriptions, lines, controllers, devices, modes, classes-of-service, and NetBIOS descriptions matching the specified names are retrieved in the following order: Connection Lists Network server descriptions Line descriptions Controller descriptions Device descriptions Mode descriptions Class-of-service descriptions NetBIOS descriptions SWTLINLST for controller descriptions Printer for remote displays
*NWSD- All network server descriptions matching the specified names are retrieved.
*LIND- All line descriptions that match the name specified on the Configuration description prompt (CFGD parameter) are retrieved.
*CTLD- All controller descriptions that match the name specified on the Configuration description prompt (CFGD parameter) are retrieved.
*DEVD- All device descriptions that match the name specified on the Configuration description prompt (CFGD parameter) are retrieved.
*MODD- All mode descriptions that match the name specified on the Configuration description prompt (CFGD parameter) are retrieved.
*COSD- All class-of-service descriptions that match the name specified on the Configuration description prompt (CFGD parameter) are retrieved.
*NTBD- All NetBIOS descriptions matching the specified names are retrieved.
SRCFILE
Source file
Specifies the name and library of the previously created database source file that contains the source file member.
QCLSRC- The source file named QCLSRC is used.
source-file- Specify the name of a source file.
*LIBL- All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB- The current library for the thread is searched. If no library is specified as the current library for the thread, the QGPL library is searched.
library-name- Specify the library where the source file is located.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Part 2-01
Part 2-11
Suggested / special values:
*LIBL, *CURLIB
SRCMBR
Source member
Specifies the name of the database source file member into which the CL source statements are written.
Suggested / special values:
*CFGD
*CFGD- The name of the source member is the configuration object name if there is only one name specified and the name is not generic or *ALL. Otherwise, the name is CFGSRC.
source-member-name- Specify the name of the source file member that contains the CL source statements.
RTVOPT
Retrieve option
Specifies which attachment information is retrieved for the specified objects. RTVOPT is ignored if the CFGTYPE parameter is *ALL.
Allowed values:
*NET, *OBJ
*NET- For network interfaces, each network interface description and the descriptions of its attached nonswitched lines, controllers, and devices are retrieved. For lines, each line description and the descriptions of its attached nonswitched controllers and devices are retrieved. For controllers, each controller description and the descriptions of its attached devices are retrieved. For network interfaces, lines, and controllers, switched attachment information is also retrieved.
*OBJ- Each specified configuration object description is retrieved with all attachment information.
MBROPT
Member option
Specifies whether the new records replace or are added to the existing records.
Allowed values:
*ADD, *REPLACE
*REPLACE- The system clears the existing member and adds the new records.
*ADD- The system adds the new records to the end of the existing records.
TEXT
Text 'description'
Specifies the text that briefly describes the object.
Suggested / special values:
*BLANK, *CFGDTXT
*CFGDTXT- The text description is the same as the text description of the object specified by the CFGD parameter unless there is more than one object specified or the name is a generic name. In this case, *BLANK is used for the text description.
*BLANK- No text is specified.
'description'- Specify no more than 50 characters of text, enclosed in apostrophes.
Examples
RTVCFGSRC CFGD(CTL*) CFGTYPE(*CTLD) SRCMBR(CTLS) RTVOPT(*OBJ)
This command places CL source statements in the file member CTLS in the source file QCLSRC. These source statements can be used to re-create object descriptions for all existing controllers with names beginning with CTL.
Generated from os/cl/catalog/RTVCFGSRC.json and os/cl/help/RTVCFGSRC.json.