5.12 DASDLS (List datasets on a volume)

5.12.1 Function

The DASDLS utility is used to list all datasets and their attributes on the specified DASD image file.

5.12.2 Syntax

Descriptive

DASDLS [-option [-option ... ]] filename [SF=shadowfile]

Diagram

Êʬ¬¬ DASDLS ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬Ê





-option ¬¬¬¨¬¬¬¯

ʬ¬¬ filename ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ




shadowfile ¬¬¬¯

5.12.3 Parameter

options

-info

Show Format 1 DSCB information. This option is implied if any of the other options
are set.

-caldt

Display dates as YYYYMMMDD. If this option is not specified then dates are dis-
played as YYDDD.

-refdt

Display the last-referenced date (not applicable to MVT), otherwise it is omitted.

-expdt

Display the expiry date, otherwise it is omitted.

-hdr

Display column headers, otherwise they are omitted.

-dsnl[=n]

Reserve space on the output line for dataset names up to ‘n’ characters. If ‘n’ is not
specified then space for 26 characters is reserved. If the –dsnl option is omitted,
then space for 44 characters is reserved.

yroffs[=n]

Add the year offset ‘n’ (which may be negative) to dates before displaying them. If
n’ is omitted then 28 is used. No checking is done that the value of ‘n’ is sensible.

arguments

filename

Name of the DASD image file for which the datasets contained will be listed.

shadowfile

Optional name of an associated shadow file (s) from which any datasets will be
listed.

5.12.4 Examples

Example 1:

List all the datasets currently on the volume D:\MVS\DASD\MVSRES.CCKD.

DASDLS D:\MVS\DASD\MVSRES.CCKD

Example 2:

List all the datasets currently on the volume D:\MVS\DASD\MVSRES.CCKD showing information from the
Format 1 DSCB, with column headers and reserving only 20 characters for the dataset name.

DASDLS –dsnl=20 –hdr D:\MVS\DASD\MVSRES.CCKD

Example 3:

List all the datasets currently on the volume D:\MVS\DASD\MVSRES.CCKD showing information from the
Format1 DSCB, with column headers, calendar date format and reserving only 20 characters for the
dataset name.

DASDLS –dsnl=20 –hdr –caldt D:\MVS\DASD\MVSRES.CCKD

5.12.5 Sample Utility Output

Sample 1:

List all the datasets currently on the volume D:\MVS\DASD\MVSRES.CCKD.

D:\Hercules>dasdls D:\MVS\DASD\MVSRES.CCKD

Hercules DASD list program Version 3.10.0

(c)Copyright 1999-2006 by Roger Bowler, Jan Jaeger, and others

D:\MVS\DASD\MVSRES.CCKD: VOLSER=MVSRES

SYS1.STAGE1.OUTPUT

SYS1.LPALIB

SYS1.LINKLIB

SYS1.SVCLIB

SYS1.NUCLEUS

SYS1.DCMLIB

SYS1.INDMAC

SYS1.CMDLIB

SYS1.HELP

SYS1.SAMPLIB

Previous Page Next Page