Class CreateFileWithFileAttributes


  • public class CreateFileWithFileAttributes
    extends java.lang.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:
    ZFile
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createFileWithAttributes​(java.lang.String fileName)
      Creates a non-VSAM MVS dataset with specified attributes.
      static void main​(java.lang.String[] args)
      The main method accepts a file name as the only argument and calls createFileWithAttributes(String) to create the file.
      • Methods inherited from class java.lang.Object

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

      • CreateFileWithFileAttributes

        public CreateFileWithFileAttributes()
    • Method Detail

      • main

        public static void main​(java.lang.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​(java.lang.String fileName)
        Creates a non-VSAM MVS dataset with specified attributes.
        Parameters:
        fileName - The name of the file to create