SCS (Catalog Services)
- Purpose
- Print a list of catalog entries.
- Usage notes
- Use this function to print catalog entries.
- Options
- Use a fully-qualified or generic file ID to limit the output. You can also specify the type of objects you want to see. The list can be sorted by entry name, creation date, expiration date, or amount of free space.
- Related function
-
- DVT
- Print VTOC entries
- CATALOG
- Name of a catalog. By default, the system catalog search order is used.
- dsnmask
- A generic data set name. Within the data set name, you can include
a percent sign (%) to represent exactly one character, an asterisk
(*) to represent any number of characters (or no characters) within
a qualifier, or two asterisks (**) to represent any number of characters
(or no characters) within any number of qualifiers. The default is **.
To print a single entry, specify a fully-qualified entry name.
- ENTRIES
- The entries you want listed:
- ALL
- All catalog entries (the default)
- ALLVSAM
- All VSAM catalog entries
- ALIAS
- Alias entries
- AIX®
- Alternate index entries
- CLUSTER
- Cluster entries
- DATA
- VSAM data entries
- GDG
- Generation data group entries
- INDEX
- VSAM index entries
- NONVSAM
- NonVSAM entries
- OAM
- OAM collection entries
- PATH
- VSAM path entries
- PGSPC
- Pagespace entries
- UCAT
- User catalog entries.
- SORTBY
- One of the following:
- ALLOC
- Sorts by allocated space
- DATE
- Sorts by creation date
- DSORG
- Sorts by organisation
- FREESP
- Sorts by free space
- LRECL
- Sorts by logical record length
- NAME
- Sorts by data set name (the default)
- RECFM
- Sorts by record format
- INCLUDE
- One of the following:
- NO
- Restricts the data set list to data sets with only the qualifiers entered in the DSNAME field. Data sets with additional qualifiers are not be included.
- YES
- Generates the data set list with all data sets matching the qualifiers in the DSNAME field, including data sets with additional qualifiers.
- DATEFORM
- One of the following:
- YYDDD
- All dates on the Data Set List panel and listing shown as YYYY.DDD.
- YYMMDD
- All dates on the Data Set List panel and listing shown as YY/MM/DD.
- limit
- The maximum number of data sets selected for VTOC or catalog processing.
//SCS JOB (acct),'name' Catalog Services
//*
//FMBAT PROC
//FMBAT EXEC PGM=FILEMGR
//STEPLIB DD DSN=FMN.SFMNMOD1,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSABEND DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
// PEND
//*
//DELETE EXEC PGM=IEFBR14
//FILE DD DSN=FMNUSER.SCS.LISTING,
// DISP=(MOD,DELETE),
// SPACE=(TRK,(30,10)),UNIT=SYSDA,
// RECFM=FBA,LRECL=133
//*
//SCS00 EXEC FMBAT,REGION=6M
//SYSPRINT DD DSN=FMNUSER.SCS.LISTING,
// DISP=(,CATLG),
// SPACE=(TRK,(30,10)),UNIT=SYSDA,
// RECFM=FBA,LRECL=133
//SYSIN DD *
$$FILEM SCS
$$FILEM EOJ
/*