DSNL602I INVALID SERVICE NAME SPECIFIED – service_parm

Explanation

A specified service name parameter was not valid.

service_parm
The RESTSVC keyword parameter being processed.

System action

Processing of the command is terminated

User response

Correct the service name parameter and reissue the command.

Problem determination

Examine the service_parm displayed. It must conform to the syntax of the RESTSVC keyword of the DISPLAY, START, or STOP RESTSVC command.

If the service_parm displayed appears to follow the command syntax, each service name parameter must be separated from each other by a comma(,). A comma cannot be part of a parameter. One way that a comma could have become part of a service name parameter is that the entire parameter of the RESTSVC keyword was delimited by apostrophes (’). Apostrophes should only delimit a particular service name parameter if the case of the service name parameter is to be preserved. Otherwise the service name parameter will be folded to upper case prior to processing by Db2. For example, the RESTSVC specification RESTSVC('A.b,b.*')is incorrect, while the RESTSVC specification RESTSVC('A.b','b.*') is correct.

Another possible issue is how the wildcard character, asterisk (*) is used. An asterisk can be used in two ways. An asterisk can be used when requesting to display all services (*.*) or when requesting to display a subset of services in a particular collection. When displaying a subset of services, an asterisk can be used as a partial name of the service portion of a qualified/unqualified REST service name and can only be used as the last character of the partial name. It cannot be used anywhere in the collection ID or the version ID of a REST service name.