Class DsInfo
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 DSNintgetLrecl()Answers the datasets LRECLAnswers the fully-qualified, //-quoted, DSNbooleanAnswers true if the dataset has fixed length recordsbooleanAnswers 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
-
getFullyQualifiedDsn
Answers the fully qualified DSN- Returns:
- String the fully qualified DSN
-
getZFileDsn
-
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
-