com.ibm.dbb.build

Class CreatePDS

  • java.lang.Object
    • com.ibm.dbb.build.CreatePDS
  • All Implemented Interfaces:
    IExecute, com.ibm.dbb.build.internal.DDProcessConstants


    public class CreatePDS
    extends java.lang.Object
    implements IExecute, com.ibm.dbb.build.internal.DDProcessConstants
    This command is used to create partitioned datasets (PDS). Does nothing if the PDS already exists.

    Usage:

     CreatePDS createPDSCmd = new CreatePDS();
     createPDSCmd.setDataset(HLQ + "LOAD");
     createPDSCmd.setOptions("cyl space(1,1) dsorg(PO) recfm(U) blksize(32760) dsntype(library)");
     createPDSCmd.create();
     
    This class also supports chaining:
     new CreatePDS().dataset(HLQ + "LOAD").options("cyl space(1,1) dsorg(PO) recfm(U) blksize(32760) dsntype(library)").create();
     
    • Field Summary

      • Fields inherited from interface com.ibm.dbb.build.internal.DDProcessConstants

        CATALOG_KEYWORD, DBB_SUBPROCESS_ENABLED, DBB_SUBPROCESS_TRACE, DEFAULT_SOURCE_DATASET_ALLOC_OPTIONS, NEW_KEYWORD
    • Constructor Summary

      Constructors 
      Constructor and Description
      CreatePDS()
      Construct a command to create a data set
      CreatePDS(java.lang.String dataset, java.lang.String options)
      Construct a command to create a data set
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void create()
      Create a data set
      CreatePDS dataset(java.lang.String dataset)
      Set the data set to be allocated
      int execute()
      Calls the create()
      java.lang.String getDataset()
      Retrieve the data set to be allocated
      java.lang.String getOptions()
      Retrieve the options to be used to allocate the data set
      CreatePDS options(java.lang.String options)
      Set the options to be used to allocate the data set
      void setDataset(java.lang.String dataset)
      Set the data set to be allocated
      void setOptions(java.lang.String options)
      Set the options to be used to allocate the data set
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CreatePDS

        public CreatePDS()
        Construct a command to create a data set
      • CreatePDS

        public CreatePDS(java.lang.String dataset,
                         java.lang.String options)
        Construct a command to create a data set
        Parameters:
        dataset - the data set to be created
        options - the options to allocate the data set
    • Method Detail

      • getDataset

        public java.lang.String getDataset()
        Retrieve the data set to be allocated
        Returns:
        the data set
      • setDataset

        public void setDataset(java.lang.String dataset)
        Set the data set to be allocated
        Parameters:
        dataset - the data set
      • getOptions

        public java.lang.String getOptions()
        Retrieve the options to be used to allocate the data set
        Returns:
        the options
      • setOptions

        public void setOptions(java.lang.String options)
        Set the options to be used to allocate the data set
        Parameters:
        options - the options
      • dataset

        public CreatePDS dataset(java.lang.String dataset)
        Set the data set to be allocated
        Parameters:
        dataset - the data set
        Returns:
        this instance
      • options

        public CreatePDS options(java.lang.String options)
        Set the options to be used to allocate the data set
        Parameters:
        options - the options
        Returns:
        this instance

<IBM Copyright © 2018 IBM Corp. All Rights Reserved.