The SAS Output Delivery System and reporting techniques

proc greplay : how to take the pictures...

Reply
N/A
Posts: 0

proc greplay : how to take the pictures...

Hello
thank you cynthia for yours answers at my last questions.
I don't know how to do that :
i have 4 pictures and i want to display these 4 pictures using a proc greplay :
imagine that my 4 pictures are in : C:/myname/pic1.jpg,C:/myname/pic2.jpg
C:/myname/pic3.jpg,C:/myname/pic4.jpg
i want to put them in a catalog mycat
how can i do ?
i try this but it's not OK
libname matgre "G:\Assens\greplay";

ods rtf file='G:/assens/greplay/grafods2.rtf';
ods pdf file='G:/assens/greplay/grafods2.pdf';
ods html path='G:/assens/greplay' (url=none)
body='grafods2.html'
style=sasweb;
goptions reset=all rotate=portrait;

proc greplay igout=matgre
tc=sashelp.templt template=l2r2 nofs;
treplay 1:"GBP1.jpg"
2:"GBP2.jpg"
3:"GXY1.jpg"
4:"GXY2.jpg"
;
run;
quit;
ods _all_ close;

in fact i dont know how to put my pictures in a catalog and after use it with proc greplay.
thank you for your help.
N/A
Posts: 0

Re: proc greplay : how to take the pictures...

I've missed or forgotten part of this discussion, so excuse me if I ask an obvious question.

First of all, what you will replay is not the jpg files. These are files you have printed from a SAS step where the device driver was a JPEG file constructor. On that same step, you should have had the option to also send the output to a graphics catalogue. In fact, if you didn't specify one, they would by default have gone to the WORK.GSEG catalog.

In this location, they are native SAS/Graph objects, and not printed files. It is these that you can copy to other catalogues with catalogue management steps, or use as the input to the Template procedures of SAS/Graph.

Saying "it's not OK", is not sufficient for a discussion forum. You are better off sending a copy of the log entry where your attempt failed. There should be something that complains about the definition for the four treplay statements. It may also complain that the IGOUT catalogue does not exist since this is expected to be the input catalogue for the procedure. Your output catalogue is defined with GOUT.
Super Contributor
Posts: 273

Re: proc greplay : how to take the pictures...

In addition to the previous comment
i test and correct your code but
i show you that images (jpeg or png) inserted in authentic sasgraph object (gslide)
with the sasgraph editor and correctly saved
return those alerts from Sas when i replay the 4 slides

you must think to another solution
in html links to the images and so one
in fact finally why using sasgraph?


Andre

[pre]
76 goptions reset=all rotate=portrait;
77
78 proc greplay igout=gsegaw
79 tc=sashelp.templt template=l2r2 nofs;
NOTE: Building list of graphs from the catalog.

NOTE: Enter greplay commands or statements.
80 treplay 1:"jpg"
81 2:"png"
82 3:"jpg1"
83 4:"png1"
84 ;
NOTE: Foreground color WHITE same as background. Part of your graph may not be visible.
WARNING: The device "SASEMF" does not support images. Images will not be displayed.
WARNING: The device "SASEMF" does not support images. Images will not be displayed.
NOTE: Foreground color WHITE same as background. Part of your graph may not be visible.
WARNING: The device "SASPRTC" does not support images. Images will not be displayed.
WARNING: The device "SASPRTC" does not support images. Images will not be displayed.
NOTE: Foreground color WHITE same as background. Part of your graph may not be visible.
WARNING: The device "GIF" does not support images. Images will not be displayed.
WARNING: The device "GIF" does not support images. Images will not be displayed.
NOTE: 39 RECORDS WRITTEN TO d:\temp\templat2.gif
85 run;

86 quit;
[/pre]
N/A
Posts: 0

Re: proc greplay : how to take the pictures...

thank you
Ask a Question
Discussion stats
  • 3 replies
  • 222 views
  • 0 likes
  • 2 in conversation