1. gplot legend device type special characters question
Hi all,
i am trying to put the special characters alpha and beta in the legend of
my equation.....but it is coming as a blank and the sas log states that
NOTE: A hardware font was specified that is not available on the device
WIN. If the font is available on the hardcopy device, it will be utilized
if/when the previewed graph is printed.
i am using windows sas 8.2......
could someone point me in the right way....have copied my whole gplot code
below...
thanks
hari.....
******special characters for equation;
data _null_ ;
s1 = byte(222) ;
s2 = byte(223) ;
call symput('alpa',s1);
call symput('beta',s2);
put s1= s2= ;
run ;
goptions reset=global gunit=pct border cback=white
ftitle=swissb ftext=swiss htitle=4 htext=2 gsfmode=replace ;
symbol1 c=black v=dot w=4 I=none L=4 height=2;
symbol2 c=black w=4 i=r height=2;
axis1 order=(0 to 0.006 by 0.0015) offset=(2,2)
label=("xxx")
major=(height=3) minor=none
width=3;
axis2 order=(2 to 6.5 by 0.5) offset=(0,0)
label=("yyy")
major=(height=2) minor=none
width=3;
legend1 label=(H=0.15 in "Ln y = &alpa. + &beta.*ln(x)" POSITION=(bottom
right))
position=(bottom right inside)
offset=(1 , 5)
mode=share;
%inc gtitles;
proc gplot data=stat gout= &mrlstref ;
plot y*x y1*x / overlay
haxis=axis1 hminor=4 legend=legend1
vaxis=axis2 vminor=1 noframe;
run;
quit;
2. gplot: Symbols disappear if special order in legend
3. Importing Excel file with special characters
SAS-L gurus, I'm using the Import Wizard (v9) to import some Excel files. One of the fields contains the % (drug strengths) character and SAS is not importing that field and does not give me an error. How do I get SAS to import this field directly? Thanks in advance, Joanne Mor
4. Compress out special characters
5. display special characters/symbols
Hi all. Just wondering if anyone please teach me what are the SAS statements to allow SAS to output special characters/symbols such as , etc.. Thanks a lot. Have a great day.
6. Remove special characters from SAS dataset
7. Filevar And Name With Embedded Spaces Or Special Characters
SAS-Pros:
Sometimes I forget just how great a tool SAS is and how extraordinary
the SAS-L list is -- you guys answer questions before they are asked !
I also apologize for the length of this note !
I have to read through a directory structure and interrogate files with
a particular file extension. Recent notes from Jack and Harry provided a
quick and easy way to traverse the directory structures:
Filename FILELIST Pipe "dir C:\ /S /B /O-D";
Data _NULL_ ;
Length CHECK $ 3 ;
Infile FILELIST Lrecl=256 Truncover ;
File 'C:\Files.TXT' ;
Input ;
CHECK = Reverse(Substr(Reverse(Trim(_INFILE_)), 1, 3)) ;
If (Upcase(CHECK) = 'MBX') Then
Put @1 _INFILE_ ;
Run ;
The above code, using the PIPE, does exactly what I need; I'm only
interested in files with a ".mbx" extension. I then want to count the
number of new message headers per .MBX file. This code performs the task:
Data MESSAGES (Keep=DESC MSG_COUNT) ;
Length FNAME DESC $ 50 ;
Infile 'C:\Files.TXT' Lrecl=256 Truncover ;
Input @1 FNAME $150. ;
Infile DUMMY Filevar=FNAME Filename=DESC End=EOF ;
* ACCT = Scan(DESC, 1, ' ') ;
MSG_COUNT = 0 ;
Do While (^EOF) ;
Input @1 STR $Char6. ;
If (STR = 'From: ') Then MSG_COUNT + 1 ;
Else Continue ;
End ;
Output MESSAGES ;
Run ;
Proc PRINT Data=MESSAGES ;
Run ;
"Standardly" (if there is such a thing on Windows systems) named files,
like below, cause no problem:
C:\TestIMAP\LWitham\DynDNS.mbx
C:\TestIMAP\LWitham\Drafts.mbx
C:\TestIMAP\LWitham\Clarion.mbx
C:\TestIMAP\LWitham\PaceIRC\Resource25.mbx
C:\TestIMAP\LWitham\Trash\attached.mbx
The problem occurs with filenames that contain embedded spaces or
"special characters" (like "&" and "-" in the first record below):
C:\TestIMAP\lsippel\FA Exec Staff\FA Safety &- Security.mbx
C:\TestIMAP\lsippel\FA Exec Staff\FA outmail NACUBO.mbx
C:\TestIMAP\lsippel\FA Exec Staff\FA NACUBO Conferences Correspondence.mbx
C:\TestIMAP\lsippel\FA Exec Staff\FA New Systems.mbx
C:\TestIMAP\lsippel\FA Exec Staff\FA listserve junk mail.mbx
C:\TestIMAP\lsippel\FA Exec Staff\FA Misc.mbx
C:\TestIMAP\lsippel\FA Exec Staff\FA Faxes.mbx
C:\TestIMAP\lsippel\FA Exec Staff\FA Facilities Management.mbx
The program chokes on these filenames. My question is, is there a way,
using FILEVAR to process multiple files, to get around this issue. I'm
using FILEVAR because I have to have the counts by filename, using
another pipe would read the files as one continuous stream, I believe.
Can the spaces and characters be escaped in some way to make FILEVAR
(and me) happy ? We have SAS v8 on this particular server, but do
have v9 on workstations and test servers . This app will be run on a
Windows 2000 server.
Any and all help will be much appreciated. Thank you.
-Gerry
Gerard T. Pauline
Mgr, Internet Applications &
University WebMaster
Computer Systems, DoIT
Pace University