Class CreateFileWithFileAttributes

java.lang.Object
com.ibm.jzos.sample.nonvsam.file.CreateFileWithFileAttributes

public class CreateFileWithFileAttributes extends Object
This sample demonstrates how to create a non-VSAM MVS sequential dataset with specific file attributes. The file name is given as an argument to main, and must be a non-VSAM MVS sequential dataset name.
Since:
2.4.0
See Also:
  • Constructor Details

    • CreateFileWithFileAttributes

      public CreateFileWithFileAttributes()
  • Method Details

    • main

      public static void main(String[] args)
      The main method accepts a file name as the only argument and calls createFileWithAttributes(String) to create the file.
      Parameters:
      args - The name of the file to create
    • createFileWithAttributes

      public static void createFileWithAttributes(String fileName)
      Creates a non-VSAM MVS dataset with specified attributes.
      Parameters:
      fileName - The name of the file to create