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 (May 2003, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 19 May 2003 09:54:32 +0100
Reply-To:   Graeme.Kirton@FILCS.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Graeme.Kirton@FILCS.COM
Subject:   Re: copying using scl or base?
Comments:   To:
Content-type:   text/plain; charset=us-ascii

Thank You Richard, I now have it working.

-------------------------------------------------------------- Graeme Kirton IT Developer Filtronic Compound Semiconductors Ltd

"Richard A. DeVenezia" To: SAS-L@LISTSERV.UGA.EDU <radevenz@IX.NETC cc: OM.COM> Subject: Re: copying using scl or base? Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.U GA.EDU>

17/05/03 04:26 Please respond to "Richard A. DeVenezia"

<Graeme.Kirton@FILCS.COM> wrote in message > Basic copy function dont work for me!!!! All I wana do is copy 3 grseg > entrys into another catalog and rename them g1, g2, g3. > > Im using scl, so I try; > > rc=delete('work.pgraphs','catalog'); > > graph1=compress(spcchart.graph); /*eg. might be work.map1.none_256.grseg*/ > > graph2=compress(shortspc.graph); /*eg. might be work.map2.none_257.grseg*/ > > graph3=compress(histogram.graph); /*eg. might be work.map3.none_258.grseg*/ > > > rc=copy(graph1,'work.pgraphs.g1.grseg', 'catalog'); > rc=copy(graph2,'work.pgraphs.g2.grseg', 'catalog'); > rc=copy(graph3,'work.pgraphs.g3.grseg', 'catalog'); > > It aint work! > > Maybe proc copy might be useful, only I couln't see a copy+rename function. >

Let me correct myself. See COPY function fails to rename graphics GRSEG entries You will need to use the RENAME () function after copying your grseg.

Try this example - build a test frame and put nothing in it. Use the following for the frame scl and testaf it:


region = { _region_ = { ulx = 1 , uly = 1 , lrx = 25 , lry = 25 } } ;

declare sashelp.classes.Graphoutput_c.class g = _neo_ sashelp.classes.Graphoutput_c.class( region );


g.graph = '';

destcat = 'work.copy'; entname = scan (g.graph,3,'.') || '.grseg';

rc = copy (g.graph, destcat||'.foobar', 'catalog'); put rc=;

rc = rename (destcat||'.'||entname, 'g1', 'catalog'); put rc=;


Open the work.copy catalog and you should see g1.grseg.

-- Richard A. DeVenezia,

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