The CATALOG Procedure |
Procedure features: |
|
This example demonstrates the following actions:
lists the entries in a catalog and routes the output to a file
changes entry names
changes entry descriptions
processes entries in multiple run groups
Program |
options nodate pageno=1 linesize=80 pagesize=60 source; |
LIBNAME perm 'SAS-library'; |
proc catalog catalog=perm.finance; contents; title1 'Contents of PERM.FINANCE before changes are made'; run; |
change dept=deptcode (et=formatc); run; |
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
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.