2 weeks ago
hollandnumerics
Lapis Lazuli | Level 10
Member since
10-04-2012
- 170 Posts
- 30 Likes Given
- 8 Solutions
- 155 Likes Received
About
Recent book (see my blog site): "SAS Programming Experiences: A How-To Guide from a Power SAS User"
-
Latest posts by hollandnumerics
Subject Views Posted 265 02-05-2025 03:54 AM 733 01-10-2025 09:13 AM 1526 01-10-2025 07:25 AM 658 01-10-2025 07:21 AM 1496 12-12-2024 06:11 PM 732 12-12-2024 04:27 PM 1526 12-12-2024 04:14 PM 968 12-01-2024 06:02 PM 727 11-27-2024 09:38 AM 1130 10-21-2024 06:12 PM -
Activity Feed for hollandnumerics
- Posted Re: Can not save a newly created sas program in sas studio. on SAS Software for Learning Community. 02-05-2025 03:54 AM
- Posted Re: Import CVS on SAS Software for Learning Community. 01-10-2025 09:13 AM
- Got a Like for Re: Need help-SAS studio coding area function problem. 01-10-2025 08:34 AM
- Posted Re: help np file unattainable on SAS Software for Learning Community. 01-10-2025 07:25 AM
- Posted Re: Need help-SAS studio coding area function problem on SAS Software for Learning Community. 01-10-2025 07:21 AM
- Got a Like for Re: Code isn't working just right. 12-12-2024 07:35 PM
- Posted Re: Code isn't working just right on New SAS User. 12-12-2024 06:11 PM
- Posted Re: help np file unattainable on SAS Software for Learning Community. 12-12-2024 04:27 PM
- Posted Re: Code isn't working just right on New SAS User. 12-12-2024 04:14 PM
- Posted Re: unable to get a lift chart on SAS Software for Learning Community. 12-01-2024 06:02 PM
- Posted Re: I do not understand what I'm doing wrong on my code on SAS Software for Learning Community. 11-27-2024 09:38 AM
- Posted Re: Analytics Code Conversion/Replication Tool on SAS Software for Learning Community. 10-21-2024 06:12 PM
- Posted Re: Analytics Code Conversion/Replication Tool on SAS Software for Learning Community. 10-21-2024 03:42 PM
- Posted Re: SAS Studio issues forces user to terminate run sequence and lose libraries on SAS Software for Learning Community. 10-21-2024 03:40 PM
- Posted Re: Change of Home region on SAS Software for Learning Community. 10-20-2024 08:16 AM
- Posted Re: SAS STUDIO OPERATONAL ISSUES THAT FORCE USER TO TERMINATE RUN SEQUENCE AND LOSE LIBRARIES on SAS Software for Learning Community. 09-29-2024 10:55 AM
- Got a Like for Re: Username in SAS STUDIO. 08-29-2024 12:02 PM
- Posted Re: Username in SAS STUDIO on SAS Software for Learning Community. 08-29-2024 09:32 AM
- Tagged Re: Username in SAS STUDIO on SAS Software for Learning Community. 08-29-2024 09:32 AM
- Tagged Re: Username in SAS STUDIO on SAS Software for Learning Community. 08-29-2024 09:32 AM
-
Posts I Liked
Subject Likes Author Latest Post 56 2 2 5 4 -
My Liked Posts
Subject Likes Posted 2 01-10-2025 07:21 AM 1 12-12-2024 06:11 PM 1 08-29-2024 09:32 AM 2 05-16-2024 06:20 AM 2 02-20-2024 10:51 AM -
My Library Contributions
Subject Likes Author Latest Post 1
03-04-2016
05:27 AM
Ram,
A few amendments marked in red to match your specification:
data x;
infile datalines truncover;
length sname1 sname2 $7. sname $15.;
input sname1 sname2 AGM LL UL ns2 na2;
format AGM LL UL f5.1;
if sname1 ne '-' then sname = strip(sname1) || ' ' || strip(sname2);
datalines;
SCOT: Males 233.1 182.9 297.1 13 13
SCOT: Females 241.3 189.1 307.9 12 12
SCOT: NHW 218.4 170.8 279.4 11 11
SCOT: NHB 294.1 232.8 371.5 10 10
SCOT: HISP 217.9 167.0 284.3 9 9
SCOT: OTH 226.1 174.2 293.4 8 8
- - . . . 7 7
NNAL: Males 258.0 162.1 410.7 6 6
NNAL: Females 360.5 226.7 573.3 5 5
NNAL: NHW 334.9 214.9 522.0 4 4
NNAL: NHB 258.5 157.0 425.5 3 3
NNAL: HISP 324.1 202.9 517.8 2 2
NNAL: OTH 308.3 189.9 500.6 1 1
;
run;
options missing = ' ';
title 'Adjusted Geometric Means with 95% Confidence Intervals';
proc sgplot data=x noautolegend nocycleattrs;
refline 150 600 / axis=x;
highlow y=ns2 low=ll high=ul / type=bar intervalbarwidth=.05in
nooutline fillattrs=graphdata1 (color=Green);
scatter y=ns2 x=agm / markerattrs=graphdata2
(symbol=circlefilled size=15 color=black);
yaxistable sname / y=ns2 position=left location=outside
nolabel valuejustify=left pad=(right=0px) labelattrs=(weight=bold)
valueattrs = (weight=bold)
;
yaxistable agm LL UL / y=nS2 position=right location=inside
labelhalign=center labelattrs=(weight=bold)
valueattrs = (weight=bold)
pad=(left=20px right=10px);
yaxis display=none offsetmin=0.1 offsetmax=0.05 values=(1 to 13);
run;
Does that work for you now?................Phil
PS. BTW you don't use na2 anywhere in this program!
... View more
03-03-2016
05:12 PM
Ram,
Sometimes in life "size matters", but in ODS Graphics "order matters"!
The following code has been updated to:
split sname into 2 parts, so that your input statement reads the data you expect
reorder scatter after highlow, so the scatter is plotted after highlow (and on top of it!)
data x;
length sname1 sname2 $7. sname $15.;
input sname1 sname2 AGM LL UL ns2 na2;
format AGM LL UL f5.1;
sname = strip(sname1) || ' ' || strip(sname2);
datalines;
SCOT: Males 233.1 182.9 297.1 12 12
SCOT: Females 241.3 189.1 307.9 11 11
SCOT: NHW 218.4 170.8 279.4 10 10
SCOT: NHB 294.1 232.8 371.5 9 9
SCOT: HISP 217.9 167.0 284.3 8 8
SCOT: OTH 226.1 174.2 293.4 7 7
NNAL: Males 258.0 162.1 410.7 6 6
NNAL: Females 360.5 226.7 573.3 5 5
NNAL: NHW 334.9 214.9 522.0 4 4
NNAL: NHB 258.5 157.0 425.5 3 3
NNAL: HISP 324.1 202.9 517.8 2 2
NNAL: OTH 308.3 189.9 500.6 1 1
;
run;
title 'Adjusted Geometric Means with 95% Confidence Intervals';
proc sgplot data=x noautolegend nocycleattrs;
refline 150 600 / axis=x;
highlow y=ns2 low=ll high=ul / type=bar intervalbarwidth=.05in
nooutline fillattrs=graphdata1 (color=Green);
scatter y=ns2 x=agm / markerattrs=graphdata2
(symbol=circlefilled size=15 color=black);
yaxistable sname / y=ns2 position=left location=outside
nolabel valuejustify=left pad=(right=0px) labelattrs=(weight=bold);
yaxistable agm LL UL / y=nS2 position=right location=inside
labelhalign=center labelattrs=(weight=bold)
pad=(left=20px right=10px);
yaxis display=none offsetmin=0.1 offsetmax=0.05 values=(1 to 12);
run;
Enjoy!................Phil
PS. Look for "Philip R Holland" on Amazon - you may enjoy that too!
... View more
02-10-2016
08:31 AM
@Cynthia_sas wrote:
Starting with SAS 9.3, you can use:
ods pdf file='xxx.pdf' gtitle gfootnote;
Cynthia,
Can we use GTITLE and GFOOTNOTE with ODS LISTING, as I'd like to be able to force titles and footnotes into free-standing PNG files too?
...........Phil
... View more
01-13-2016
08:52 AM
3 Likes
Please can the drinks be served in tea cups to maintain the "speakeasy" theme?
... View more
01-07-2016
05:57 PM
Patrick and RahulG,
Thanks for the advice. However, I've decided to revert back to manually updating the static list in the prompt, because I'm not sure my client will be able to maintain the Metadata Server without help in the future. They will be able to follow instructions to reload the prompt's static list from a data set though, which will not require anything more than Local Server access.
Unfortunately sometimes the neat bits are not necessarily the most appropriate.
..............Phil
... View more
01-07-2016
05:48 PM
2 Likes
Lainie, I'm hoping to be at the Online Community meetup again this year. Lots of things happened in 2015, and there could be a few surprises! Don't miss the Tweetup on the Monday evening with the folks from Metacoda. Probably the best place to be to kickstart your SASGF networking too! ............Phil
... View more
12-24-2015
07:13 AM
How do you access a data set for a dynamic prompt using SAS Folders when EG and Metadata Server are on the same PC?
I can create a prompt from a static list, but I'd prefer to use a dynamic list. However, the dynamic list asks for data in SAS Folders. I have a Metadata Server on the same PC, but how do you link to the data set via SAS Folders?
... View more
04-03-2015
05:42 PM
1 Like
Anna, If you count my short presentation (probably only 1 slide, but a bit more talking) about the SAS Professional Forum group on LinkedIn at the Online Communities Linkup, I'll be presenting 4 times in Dallas. While I'm at the Online Communities Linkup I may talk a bit about the sasCommunity group on LinkedIn too, as I've just joined the group management team there. I will be talking to Lainie Hoverstad about this during SASGF anyway. In case you're interested in seeing me talk about something other than LinkedIn, my 3 other presentations will be: Converting Annotate to ODS Graphics. Is It Possible? [Room 147 at 3pm on Monday] How Do You Use Look-up Tables? [Room 146 at 4pm on Monday] SAS® Enterprise Guide or SAS® Studio: Which is Best for You? [Ballroom C3 at 9am on Wednesday] I've only missed one SAS Global Forum, since it changed from being called SUGI, and each year I meet up with old friends from previous SASGFs and then make new friends too. I like the idea of the SAS Photo Booth, so you will see me there! My only regret this year is that I'll miss the #SASGF15 #Tweetup, because my flight from the UK lands too late on Saturday evening. Looking forward to meeting everyone in Dallas....................Phil
... View more
07-10-2014
04:51 AM
dcampb, As Peter has mentioned, there are not many SAS file conversions that I can't cope with. See http://www.hollandnumerics.com for my contact details, if you are interested. .......Phil Holland
... View more
01-26-2014
04:51 PM
Tim, I'm also getting an odd error message when I try to use a tagset with an associated package: ERROR: Unknown BOOL attribute: QUIET. .............Phil
... View more
01-26-2014
04:20 PM
Tim, I think I understand the FILE= parameter now, but how do you send XML into a zipped file that is not in the zip archive base folder, eg. META-INF/manifest.xml? I can write to files in the default folder which are cleared after writing to the zip file, but I need to create another file in a different folder inside the zip archive file. Do you need to specify it in DEFINE PACKAGE? .........Phil PS. I'm struggling to find any documentation for TAGSET and PACKAGE together!
... View more
01-23-2014
04:59 PM
Tim, I searched for htmltags.tpl on support.sas.com, and also looked in my SAS 9.4 installation, but couldn't find this template. Do you have a link to where I can download it, or should I just wait for my 9.4M1 download and installation to complete first? .........Phil
... View more
01-23-2014
01:21 PM
In 2004 I wrote a conference paper "Help, I've Received a Spreadsheet File from StarOffice Calc.....!", which described how to extract data from SXC files (the predecessor of ODS files). This paper may help you read the XML files inside the ODS zip file.
... View more
01-23-2014
12:22 PM
In the absence of anything suitable already available on the SAS web site, I've started working on an ODS tagset to create OpenDocument spreadsheets. The final file is a zip file with a suffix of ".ods" containing a number of files: content.xml styles.xml settings.xml meta.xml META-INF/manifest.xml I know how to create a zip file using DEFINE PACKAGE, but how do you direct specific bits of XML into different files from a single template? I'd like to have a look inside the OOXML templates, but I've not yet installed 9.4M1. Thanks in advance.............Phil
... View more
12-23-2013
09:38 AM
LinusH, It certainly does! Many thanks...........Phil
... View more
- « Previous
- Next »