java.lang.Object
com.ibm.jzos.sample.dfsort.DsInfo
Helper class for DFSORT samples.
Used to open a dataset using ZFile and retrieve attributes from it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDsn()
Answers the given unqualified DSNAnswers the fully qualified DSNint
getLrecl()
Answers the datasets LRECLAnswers the fully-qualified, //-quoted, DSNboolean
Answers true if the dataset has fixed length recordsboolean
Answers true if the dataset has variable length records
-
Constructor Details
-
DsInfo
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
Answers the given unqualified DSN- Returns:
- String the dsn
-
getFullyQualifiedDsn
Answers the fully qualified DSN- Returns:
- String the fully qualified DSN
-
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
-