Date: Thu, 9 Aug 2001 09:10:20 -0400
Reply-To: Richard DeVenezia <radevenz@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Richard DeVenezia <radevenz@IX.NETCOM.COM>
Organization: MindSpring Enterprises
Subject: Re: Can you hide SAS code?
As was mentioned in an earlier thread about hiding code:
You can write the code to be submitted to a SAS WORK catalog entry, and then
%include it.
When the submit continue returns, you would delete the catalog you just
%included from. The catalog and the entry are now gone.
rc = filename ('coderef', 'work.submit.code.source', 'catalog');
... write data and proc step code to coderef catalog entry ...
submit continue;
%include coderef;
endsubmit;
rc = filename('coderef', '');
rc = delete ('work.submit', 'catalog');
Another, perhaps more effective way, is to issue the command CLEAR RECALL.
submit continue;
...
endsubmit;
call execcmdi ('CLEAR RECALL');
--
Richard DeVenezia - SAS Macros and AF Tools
http://www.devenezia.com
"BrainMine" <Email@BrainMine.nl> wrote in message
news:001c01c12000$3ec3e940$795abbd4@chello.nl...
> And what is more, as Lpogoda has pointed out, the complete code in the
> SUBMIT block does show up in the program editor after entering the RECALL
> command.
>
> Is there no way to prevent that?
>
> I already prevented the LOG showing the code by entering OPTIONS NOSOURCE
> NONOTES; at the start of the SUBMIT block.
>
> Kind regards,
>
> Clemens van Brunschot