- java.lang.Object
-
- com.ibm.jzos.sample.nonvsam.file.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
-
-
Constructor Summary
Constructors Constructor Description CreateFileWithFileAttributes()
-
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 callscreateFileWithAttributes(String)
to create the file.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
The main method accepts a file name as the only argument and callscreateFileWithAttributes(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
-
-