Date: Thu, 4 Sep 1997 12:33:51 +0100
Reply-To: Philip Mason <Phil@WOOD-ST.DEMON.CO.UK>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Philip Mason <Phil@WOOD-ST.DEMON.CO.UK>
Organization: Wood Street Consulting
Subject: SASTip: Making Browse-only frames & then editing them
Content-Type: text/plain; charset="us-ascii"
You can make your Frame/SCL entries "browse-only" in 1 of 2 ways:
1 - Use the NEDIT option on PROC CPORT, eg.
proc cport c=foo NEDIT;
2 - Use the NOEDIT option on the MERGE statement in PROC BUILD. This will
copy the members of a catalog into another catalog, converting them to
"browse-only" mode, eg.
proc build catalog=sasuser.test2 batch ;
merge catalog=sasuser.test noedit ;
Making entries browse-only is an easy way to stop novices from modifying
the entries. However there is an easy way to convert "browse-only" entries
back to "editable" mode.
Enter the following command on the command line (or command window). It
will convert the SAS Institute supplied "browse-only" Graph'n'go
application so that it can be edited:
===> build;edit sasuser.test.x.frame;zoom on;setwsz;copy
sashelp.graph.gobject.frame gattr=all;src;copy sashelp.graph.gobject.scl
The command string does the following:
1 - Open build window
2 - Create a new frame entry
3 - Zoom frame, to ensure it is a big as possible
4 - Set window size so that imported regions can fit into frame
5 - Copy the Graph'n'go "browse-only" frame entry
6 - Go to Source/SCL window
7 - Copy Graph'n'go "browse-only" SCL entry
You can now edit the Graph'n'go application as much as you wish.
p.s. It is quite easy to link the Graph'n'go application into your
application. You just set some parameters in a stored list and then invoke
it. I shall do a tip on how this is done soon.
Freelance SAS Consultant
*** Available for work from 8th September 1997 ***
16 Wood Street, Wallingford, Oxfordshire, OX10 0AY, England
Phone: +44 1491 834615 Fax: +44 1491 834615