Class DsInfo

java.lang.Object
com.ibm.jzos.sample.dfsort.DsInfo

public class DsInfo extends Object
Helper class for DFSORT samples. Used to open a dataset using ZFile and retrieve attributes from it.
  • Constructor Details

    • DsInfo

      public DsInfo(String dsn) throws ZFileException
      Construct a new instance on an (unqualified) MVS dataset name
      Parameters:
      dsn - the dateset name
      Throws:
      ZFileException - if unable to open the dataset
  • Method Details

    • getDsn

      public String getDsn()
      Answers the given unqualified DSN
      Returns:
      String the dsn
    • getFullyQualifiedDsn

      public String getFullyQualifiedDsn()
      Answers the fully qualified DSN
      Returns:
      String the fully qualified DSN
    • getZFileDsn

      public String getZFileDsn()
      Answers the fully-qualified, //-quoted, DSN
      Returns:
      String the dsn
    • getLrecl

      public int getLrecl()
      Answers the datasets LRECL
      Returns:
      int the logical record length
    • isFixedRecfm

      public boolean isFixedRecfm()
      Answers true if the dataset has fixed length records
      Returns:
      boolean
    • isVariableRecfm

      public boolean isVariableRecfm()
      Answers true if the dataset has variable length records
      Returns:
      boolean