LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 5 Oct 2006 15:10:26 -0400
Reply-To:     Randy Herbison <RandyHerbison@WESTAT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Randy Herbison <RandyHerbison@WESTAT.COM>
Subject:      FW: Update a catalog
Comments: To: SASL001@savian.net
Content-Type: text/plain; charset="us-ascii"

Just a quick follow-up: The command will probably work only if SAS can open a window. It's not likely to work if SAS is started with the NOTERMINAL option. If you can use commands, you can issue all at once:

NOTEPAD work.new.test.source; INCLUDE "c:\temp\test.sas"; CHANGE class shoes all; END

-----Original Message----- From: Randy Herbison Sent: Thursday, October 05, 2006 3:02 PM To: 'Alan Churchill'; SAS-L@LISTSERV.UGA.EDU Subject: RE: Update a catalog

Alan,

You can use the NOTEPAD command to open a source entry:

NOTEPAD work.new.test.source

After the entry has been opened, you can use other commands:

INCLUDE "c:\temp\test.sas"

CHANGE class shoes all

You can issue more than one command at a time if you separate them with semicolons.

As far as I know, this will open a window. You can automatically close it with the END command.

A data step alternative might be:

filename mySource catalog "work.new.test.source";

data _null_; infile "c:\temp\test.sas"; input; file mySource; put _infile_; run;

filename mySource clear;

-Randy

-----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Alan Churchill Sent: Thursday, October 05, 2006 2:17 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Update a catalog

All,

Is there any way to update a catalog entry from a command-line or some other way vs using the editor? I need an automated method.

Thanks,

Alan

Alan Churchill Savian "Bridging SAS and Microsoft Technologies" <http://www.savian.net/> www.savian.net


Back to: Top of message | Previous page | Main SAS-L page