Previous Page | Next Page

The CATALOG Procedure

Example 2: Displaying Contents, Changing Names, and Changing a Description


Procedure features:

PROC CATALOG statement

CHANGE statement options:

(ENTRYTYPE=) or (ET=)

CONTENTS statement options:

FILE=

MODIFY statement

RUN statement

QUIT statement


This example demonstrates the following actions:


Program

 Note about code
options nodate pageno=1 linesize=80 pagesize=60 source;

 Note about code
LIBNAME perm 'SAS-library';

 Note about code
proc catalog catalog=perm.finance;
   contents;
title1 'Contents of PERM.FINANCE before changes are made';
run;
 Note about code
   change dept=deptcode (et=formatc);
run;

 Note about code
   modify loan.frame (description='Loan analysis app. - ver1');
   contents;
title1 'Contents of PERM.FINANCE after changes are made';
run;
quit;

Output

                Contents of PERM.FINANCE before changes are made               1

                        Contents of Catalog PERM.FINANCE

# Name    Type            Create Date       Modified Date Description

1 REVENUE FORMAT   16OCT2007:13:48:11  16OCT2007:13:48:11 FORMAT:MAXLEN=16,16,12
2 DEPT    FORMATC  30OCT2007:13:40:42  30OCT2007:13:40:42 FORMAT:MAXLEN=1,1,14
3 LOAN    FRAME    30OCT2007:13:40:43  30OCT2007:13:40:43 Loan analysis
                                                          application
4 LOAN    HELP     16OCT2007:13:48:10  16OCT2007:13:48:10 Information about
                                                          the application
5 LOAN    KEYS     16OCT2007:13:48:10  16OCT2007:13:48:10 Custom key definitions
                                                          for application
6 LOAN    PMENU    16OCT2007:13:48:10  16OCT2007:13:48:10 Custom menu
                                                          definitions for
                                                          application
7 LOAN    SCL      16OCT2007:13:48:10  16OCT2007:13:48:10 SCL code for loan
                                                          analysis application
                Contents of PERM.FINANCE after changes are made                2

                        Contents of Catalog PERM.FINANCE

# Name     Type            Create Date       Modified Date Description

1 REVENUE  FORMAT   16OCT2007:13:48:11  16OCT2007:13:48:11 FORMAT:MAXLEN=
                                                           16,16,12
2 DEPTCODE FORMATC  30OCT2006:13:40:42  30OCT2007:13:40:42 FORMAT:MAXLEN=1,1,14
3 LOAN     FRAME    30OCT2006:13:40:43  11FEB2007:13:20:50 Loan analysis
                                                           app. - ver1
4 LOAN     HELP     16OCT2007:13:48:10  16OCT2007:13:48:10 Information about
                                                           the application
5 LOAN     KEYS     16OCT2007:13:48:10  16OCT2007:13:48:10 Custom key
                                                           definitions for
                                                           application
6 LOAN     PMENU    16OCT2007:13:48:10  16OCT2007:13:48:10 Custom menu
                                                           definitions for
                                                           application
7 LOAN     SCL      16OCT2007:13:48:10  16OCT2007:13:48:10 SCL code for loan
                                                           analysis application

Previous Page | Next Page | Top of Page