com.ibm.jzos.sample.nonvsam.directory
Class MakeDirectoryLike
- java.lang.Object
-
- com.ibm.jzos.sample.nonvsam.directory.MakeDirectoryLike
-
public class MakeDirectoryLike extends java.lang.ObjectThis 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
-
-
Constructor Summary
Constructors Constructor and Description MakeDirectoryLike()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidmain(java.lang.String[] args)The main method accepts the name of the new directory and the name of an existing directory, and then callsmakeDirectoryLike(String, String)to create the new directory using the attributes of the existing directory.static voidmakeDirectoryLike(java.lang.String newDirname, java.lang.String modelDirname)Creates a new directory using an existing directory as a model.
-
-
-
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 callsmakeDirectoryLike(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 createmodelDirname- The name of an existing directory to use as a model
-
-