Date: Mon, 13 Sep 2010 21:13:41 -0400
Reply-To: Michael Raithel <michaelraithel@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Michael Raithel <michaelraithel@WESTAT.COM>
Subject: Re: Detect if code has been changed in interactive mode
Content-Type: text/plain; charset="us-ascii"
Ya posted the following:
> Hi there,
> PC SAS, DM mode, is there a way we can detect the change status, before
> the code is saved? For example, we open up a piece of source code,
> a few lines of it on enhanced editor, then submit for running.
> Even more tricky part is to detect if the code submiited is the whole
> code or just some of the lines that highlighted? (the code is not
> Any idea?
Ya, interesting question and nice ensuing discussion! However, as several posters have concluded, it does not seem likely that you can shield the SAS code from being modified by a determined individual and always tell when s/he has modified it in Display Manager.
But, maybe that is why they invented SAS/IntrNet:-) As you likely know, SAS/IntrNet makes use of carefully-crafted web pages on the front-end that fire off canned SAS programs on the back end. Users click on selection lists, check boxes, radio buttons, etc. to specify their data selection/processing criteria. The Name/Value pairs in the web pages are passed to the SAS/IntrNet programs on the backend and become Macro variables that the programs then use to create the reports. So, the users simply cannot get their grubby little paws on the SAS programs and slyly modify them to suite their nefarious schemes. The programs totally are shielded from the users.
So, you might consider a SAS/IntrNet solution... if time and money and resources allow it.
Ya, best of luck in all your SAS endeavors!
I hope that this suggestion proves helpful now, and in the future!
Of course, all of these opinions and insights are my own, and do not reflect those of my organization or my associates. All SAS code and/or methodologies specified in this posting are for illustrative purposes only and no warranty is stated or implied as to their accuracy or applicability. People deciding to use information in this posting do so at their own risk.
Michael A. Raithel
"The man who wrote the book on performance"
Author: Tuning SAS Applications in the MVS Environment
Author: Tuning SAS Applications in the OS/390 and z/OS Environments, Second Edition
Author: The Complete Guide to SAS Indexes
Wish I knew what you were looking for,
Might have known what you would find... - Under the Milky Way, by The Church