- java.lang.Object
-
- com.ibm.jzos.sample.dfsort.DsInfo
-
public class DsInfo extends java.lang.Object
Helper class for DFSORT samples. Used to open a dataset using ZFile and retrieve attributes from it.
-
-
Constructor Summary
Constructors Constructor Description DsInfo(java.lang.String dsn)
Construct a new instance on an (unqualified) MVS dataset name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDsn()
Answers the given unqualified DSNjava.lang.String
getFullyQualifiedDsn()
Answers the fully qualified DSNint
getLrecl()
Answers the datasets LRECLjava.lang.String
getZFileDsn()
Answers the fully-qualified, //-quoted, DSNboolean
isFixedRecfm()
Answers true if the dataset has fixed length recordsboolean
isVariableRecfm()
Answers true if the dataset has variable length records
-
-
-
Constructor Detail
-
DsInfo
public DsInfo(java.lang.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 Detail
-
getDsn
public java.lang.String getDsn()
Answers the given unqualified DSN- Returns:
- String the dsn
-
getFullyQualifiedDsn
public java.lang.String getFullyQualifiedDsn()
Answers the fully qualified DSN- Returns:
- String the fully qualified DSN
-
getZFileDsn
public java.lang.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
-
-