Class DfSortVariableJavaToDataset


  • public class DfSortVariableJavaToDataset
    extends java.lang.Object
    This example creates an instance of DfSort to sort variable record data generated by java and store the output in a Dataset.

    Arguments (supplied as key=value pairs):

    sortout=<dsn>
    The name of a RECFM=V dataset to receive the sorted data. Supplied to DFSORT as SORTOUT.
    numrecs=<nn>
    The number of records to generate.
    [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.

    Concepts illustrated:

    • Generate unsorted variable length record data in Java
    • Write these records on-the-fly to DFSORT.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

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

      • DfSortVariableJavaToDataset

        public DfSortVariableJavaToDataset()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception