com.ibm.jzos.sample.dfsort
Class DfSortFixedDatasetToJava
- java.lang.Object
-
- com.ibm.jzos.sample.dfsort.DfSortFixedDatasetToJava
-
public class DfSortFixedDatasetToJava extends java.lang.ObjectThis example creates an instance ofDfSortto sort an existing Dataset and read the sort output into Java.Arguments (supplied as key=value pairs):
- sortin=<dsn>
- The name of a RECFM=F dataset to sort. Supplied to DFSORT as SORTIN.
- [encoding=<codepage>]
- The character set of the SORTIN dataset. If not supplied, binary data is assumed.
- [shareas=<yes | no>]
- Determines that address space for DFSORT. If yes, DFSORT will run in the same address space as the JVM. If no, it will run in a separate address space.
- [loglevel=<n>]
- Sets the logging level for the child process and prints the resulting child process output is written to System.err. The valid levels are those defined in the ZUtil.LOG_* constants.
Features illustrated:
- Specify an existing RECFM=F existing dataset as input (SORTIN) to DFSORT
- Sort the records in Ascending order
- Read the DFSORT (SORTOUT) results and process in Java
-
-
Constructor Summary
Constructors Constructor and Description DfSortFixedDatasetToJava()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidmain(java.lang.String[] args)
-