com.ibm.jzos.sample.nonvsam.directory

Class MakeDirectoryLike

  • java.lang.Object
    • com.ibm.jzos.sample.nonvsam.directory.MakeDirectoryLike


  • public class MakeDirectoryLike
    extends java.lang.Object
    This sample demonstrates how to create a directory using the attributes of an existing directory. The directory names are given as arguments to main, and both must be PDS directories.
    Since:
    2.4.0
    See Also:
    ZFile
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static void main(java.lang.String[] args)
      The main method accepts the name of the new directory and the name of an existing directory, and then calls makeDirectoryLike(String, String) to create the new directory using the attributes of the existing directory.
      static void makeDirectoryLike(java.lang.String newDirname, java.lang.String modelDirname)
      Creates a new directory using an existing directory as a model.
      • Methods inherited from class java.lang.Object

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

      • MakeDirectoryLike

        public MakeDirectoryLike()
    • Method Detail

      • main

        public static void main(java.lang.String[] args)
        The main method accepts the name of the new directory and the name of an existing directory, and then calls makeDirectoryLike(String, String) to create the new directory using the attributes of the existing directory.
        Parameters:
        args - The first argument must be the name of the directory to create and the second argument must be the name of an existing directory
      • makeDirectoryLike

        public static void makeDirectoryLike(java.lang.String newDirname,
                             java.lang.String modelDirname)
        Creates a new directory using an existing directory as a model.
        Parameters:
        newDirname - The name of the directory to create
        modelDirname - The name of an existing directory to use as a model
© Copyright IBM Corporation 2005, 2014.