list datasetdefinitions

List one or all of the data set definitions you have created in a given project area.

Purpose

The scm list datasetdefinitions subcommand lists one or all of the data set definitions you have created in a given project area.

Synopsis

  • To run scm list datasetdefinitions after you have used scm login to create stored credentials:

    scm list datasetdefinitions  [ -r
    |  --repository-uri ] repository URI or nickname  [ -a  |  --projectarea]  project area      { [ -n |  --dsdef-name] data set definition name }

  • To run scm list datasetdefinitions and supply your credentials on the command line:

    scm list datasetdefinitions [ -r  |  --repository-uri ] repository URI [ -u  |  --username ] user ID in repository [ -P  |  --password ] password for user ID in repository [ -a  |  --projectarea]  project area         { [ -n |  --dsdef-name] data set definition name }

Options and arguments

[ -a | --project area ] project area
Specifies the project area or UUID whose data set definition(s) you want to list.
[ -n | --data set definition name ] data set definition name
Indicates a specific data set definition name. If you do not specify this option, list datasetdefinitions lists all of the data set definitions for the project area.
[ -P | --password ] password for user ID in the repository
Indicates the password for the specified user ID in the named repository. If you do not include this option on the command line, you are prompted for a password. If you specified a repository URI or nickname for which you have stored credentials using the scm login command, this option is ignored.
[ -r | --repository-uri ] repository URI
Specifies the repository in which to take this action. If you have stored repository credentials using the scm login command, you can use the nickname you supplied for these stored credentials.
[ -u | --username ] user ID in the repository
Specifies a user ID that exists in the named repository. If you specified a repository URI or nickname for which you have stored credentials using the scm login command, this option is ignored.
Tip: For more information about how to use the list datasetdefinitions command, run the scm.sh help list datasetdefinitions command.

Examples

List the data set definition COBOL in the project area whose UUID is _rxUoYEI6Ed-3qf8kDf2_nQ:

../scmtools/eclipse#>scm list datasetdefinitions –r jazzhost –a  _rxUoYEI6Ed-3qf8kDf2_nQ –n COBOL

(1039) "COBOL"                  
  Data set name = "TST7.COBOL"

Now list the same data set definition COBOL, but use the -u scm option to indicate the data set definition UUID:

../scmtools/eclipse#>scm –u y list datasetdefinitions –r jazzhost –a  _rxUoYEI6Ed-3qf8kDf2_nQ –n COBOL

(1039:_ojLxEEI9Ed-3qf8kDf2_nQ) "COBOL"
  Data set name = "TST7.COBOL"


video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki