<REMOVE FROM MACLIST2.HTML>
(create list of Clinical macros using this command in
the clinmacros folder)
ls -l *.sas | gawk '{print substr($0,33)}' > maclist.txt
(create an index in the same folder using this command)
crindex *.sas > @index.txt
(create list of System macros using this command in
the sysmacros folder)
ls -l *.sas | gawk '{print substr($0,32)}' > maclist.txt
(create an index in the same folder using this command)
crindex *.sas > @index.txt
(create list of Utility macros using this command in
the utilmacros folder)
ls -l *.sas | gawk '{print substr($0,33)}' > maclist.txt
(create an index in the same folder using this command)
crindex *.sas > @index.txt
(incorporate the above lists into maclist.html and then create maclist2.html as follows)
gawk 'BEGIN {prefix="./XXXXXXXXX/"}
{if (match($0,/.*Clinical.*<\/h2>/)) { prefix = "./clinmacros/"
}
else if (match($0,/.*System.*<\/h2>/)) { prefix = "./sysmacros/"
}
else if (match($0,/.*Utility.*<\/h2>/)) { prefix = "./utilmacros/"
}
sub(/[a-z][a-z,0-9,_]*\.sas/,"<a href=\""prefix"&\"
target=\"_blank\">&</a>",$0);print}'< maclist.html > maclist2.html
</REMOVE FROM MACLIST2.HTML>
| Jul 30 2007 allocr.sas
Jul 30 2007 allocw.sas May 8 10:47 dosemerge.sas May 8 10:41 locf.sas May 19 15:01 npctpvals.sas Jun 5 17:26 npcttab.sas May 26 17:36 popfmt.sas May 19 14:54 rgpp.sas May 12 18:10 rgpp_old.sas May 19 14:56 unicat2word.sas Jun 1 17:30 unicatrep.sas Jun 8 16:55 unimap.sas May 26 16:46 unipvals.sas Jun 9 18:42 unistatlabel.sas Jun 9 18:36 unistats.sas |
| Index of members in this directory with standard headers
======================================================== (this list was generated by the crindex script) allocr.sas - Spectre
(Clinical) example macro to allocate data libraries and
Usage: %allocr
allocw.sas - Spectre
(Clinical) example macro to allocate data libraries and
Usage: %allocw
dosemerge.sas - Clinical reporting macro to merge dose in with date
Usage:
locf.sas
- Clinical reporting macro to perform "Last Observation Carried
Usage:
npctpvals.sas - Clinical reporting
macro that calculates p-values for the
Usage: %npctpvals(dsin=data1,byvars=byvar1 byvar2,trtvar=trtgrp,
npcttab.sas - Clinical
reporting macro to produce tables showing "n", the
Usage: See tutorial with demonstrations on the Spectre web site
popfmt.sas - Clinical
reporting macro to create a treatment format that is the
Usage: %popfmt(stat.acct(where=(xxx=1 and &_pop_.cd=1)),trtgroup)
rgpp.sas - Create html graphical patient profiles Usage: %rgpp unicat2word.sas - Clinical reporting macro to
produce a Word-style cell table
Usage: %unicat2word(dsin=_unitran,dest=print,dlim=';')
unicatrep.sas - Clinical reporting
macro to produce a report from the dataset
Usage: %unicatrep(dsin=_unitran)
unimap.sas - Function-style
clinical reporting macro to map proc univariate
Usage: %let stats=%unimap(&labels); unipvals.sas - Clinical reporting
macro to calculate statistics values and
Usage: %unipvals(dsin=means,dsout=out,trtvar=tmt,respvar=val,type=N)
unistatlabel.sas - To replace _statlabel values in the %unistats output dataset Usage: N/A unistats.sas - Clinical reporting
macro to calculate proc univariate
Usage: %unistats(dsin=means,dsout=out,dspout=pout,trtvar=tmt,
|
| May 8 12:01 allocr.sas
May 8 12:02 allocw.sas Oct 12 2009 autoexec.sas May 8 12:26 closerep.sas May 8 12:12 crprotds.sas May 8 12:14 crtitlesds.sas May 8 12:15 ctitlepgmrk.sas May 8 12:16 jobinfo.sas May 8 12:21 layout2lsps.sas May 8 12:25 openrep.sas May 8 12:30 pagexofy.sas May 8 12:36 proginfo.sas May 8 12:42 protinfo.sas May 8 12:43 titlegen.sas May 8 12:46 titles.sas May 8 12:50 xytitles.sas |
| Index of members in this directory with standard headers
======================================================== (this list was generated by the crindex script) allocr.sas - Spectre
(Clinical) example macro to allocate data libraries and
Usage: %allocr
allocw.sas - Spectre
(Clinical) example macro to allocate data libraries and
Usage: %allocw
closerep.sas - Spectre (Clinical)
macro to close the temporary file created
Usage: Should be used with the %titles and %openrep macros as below.
crprotds.sas - Spectre (Clinical)
macro to create a protocol dataset from a
Usage: %crprotds(flatfile,der.study)
crtitlesds.sas - Spectre (Clinical) macro
to create a titles dataset from a
Usage: %crtitlesds(flatfile,der.titles)
ctitlepgmrk.sas - Spectre (Clinical) macro to
create a centered top title with a
Usage: %ctitlepgmrk("centred title")
jobinfo.sas - Spectre
(Clinical) macro to store important job information in
Usage: %jobinfo
layout2lsps.sas - Spectre (Clinical) macro to
calculate sas linesize and pagesize
Usage: %layout2lsps(lmargin=1.0,rmargin=0.75,tmargin=1.0,bmargin=1.0,
openrep.sas - Spectre
(Clinical) macro to redirect print output to a
Usage: Should be used with the %titles and %closerep macros as below.
pagexofy.sas - Spectre (Clinical)
macro to add "Page x of Y" labels where
Usage: %pagexofy(myfile.lst)
proginfo.sas - Spectre (Clinical)
macro to store important program information
Usage: %proginfo
protinfo.sas - Spectre (Clinical)
macro to store important protocol information
Usage: %protinfo
titlegen.sas - Spectre (Clinical)
macro to generate titles and footnotes from a
Usage: %titlegen(dsname)
titles.sas - Spectre
(Clinical) macro to create the titles and footnotes for
Usage: Should be used with the %openrep and %closerep macros as below.
xytitles.sas - Spectre (Clinical)
macro to finish creating the header lines
Usage: Must be called from within the %titles macro and must not be
|
| May 4 22:30 addautos.sas
May 4 22:35 adddecodevars.sas May 4 22:36 after.sas May 4 22:37 age.sas May 4 22:39 agedec.sas May 4 22:06 aligndp.sas Apr 13 20:23 allfmtvals.sas May 4 20:43 alluniq.sas May 4 19:42 asciinonp.sas May 4 22:11 attrc.sas May 4 22:08 attrn.sas May 4 22:10 attrv.sas May 4 19:41 bydrop.sas May 4 18:09 bytitle.sas May 4 19:49 capmac.sas May 4 19:51 capvar.sas May 4 19:53 casestrmac.sas May 4 19:54 casestrvar.sas May 4 19:37 char2num.sas May 11 18:12 checkv6.sas May 4 18:12 chkuniq.sas May 4 19:55 chompw.sas May 4 20:45 clashvars.sas May 4 19:35 clength.sas May 4 19:56 commas.sas May 8 13:20 complibs.sas May 4 20:45 compress.sas May 4 22:56 compvars.sas May 4 20:46 crdte.sas Sep 28 2008 datanulldemo.sas May 4 19:32 delhex.sas Apr 5 22:27 delifexist.sas May 4 19:27 delzero.sas May 4 22:59 dequote.sas Jun 13 09:46 dir.sas Jun 12 18:22 dirfpq.sas Jun 9 17:41 doallitem.sas May 4 22:52 dosfilesize.sas May 4 19:24 dropvars.sas May 4 18:13 dsall.sas May 8 13:25 dsattrib.sas May 4 20:47 dslabel.sas May 4 18:15 dslist.sas May 4 20:48 dtscale.sas May 4 20:49 duplvars.sas May 4 19:58 endwith.sas May 4 19:59 eqsuff.sas May 4 21:34 equals.sas May 4 22:58 fixnames.sas May 8 13:27 fixvars.sas May 4 18:22 flatten.sas May 4 18:26 fmtord.sas Apr 13 20:25 fmtpath.sas May 4 21:40 fmts2fda.sas May 13 15:40 getfmts.sas May 5 17:43 getvalue.sas May 4 21:41 globexist.sas May 4 22:40 globlist.sas May 4 20:00 hasvars.sas May 4 20:01 hasvarsc.sas May 4 20:02 hasvarsn.sas May 4 19:16 hexchars.sas May 4 18:29 hexcnt.sas May 4 20:03 lafootnote.sas May 4 20:04 latitle.sas May 4 19:47 lcralign.sas May 4 21:42 left.sas May 4 22:57 liblist.sas May 4 19:14 ljustify.sas May 4 18:35 lookahead.sas May 4 20:05 lowcase.sas May 4 19:13 lrafootnote.sas May 4 19:10 lratitle.sas Jun 13 09:46 ls.sas Jun 12 18:22 lsfpq.sas May 4 23:19 lstattrib.sas May 4 22:22 ltgtm1.sas May 1 13:06 match.sas May 4 20:06 maxtitle.sas May 4 18:39 misscnt.sas May 4 22:55 missvars.sas May 4 23:10 mkformat.sas May 4 21:43 modte.sas May 4 22:17 mtype.sas May 4 22:43 mvarlist.sas May 4 22:40 mvarvalues.sas May 4 22:15 nlobs.sas May 4 23:15 nobs.sas Mar 19 2008 nodata.sas May 4 21:46 nodup.sas May 4 22:27 nodupkey.sas May 4 20:07 noquotes.sas May 4 22:00 now.sas May 4 19:45 numchars.sas May 4 20:08 nvars.sas May 4 20:09 nvarsc.sas May 4 20:10 nvarsn.sas May 4 19:08 optlength.sas May 4 22:20 partialdates.sas Jun 12 11:11 prefix.sas May 4 19:06 printall.sas Feb 1 22:58 prxnames.sas May 4 21:47 putvars.sas May 8 10:55 qcompress.sas May 4 22:45 qdequote.sas May 4 22:49 qdosfileinfo.sas May 4 22:46 qgetenv.sas May 4 21:51 qleft.sas May 4 22:48 qreadpipe.sas May 4 21:52 qtrim.sas May 4 20:13 quotecnt.sas May 4 22:16 quotelst.sas May 4 20:14 quotescan.sas May 4 19:04 rafootnote.sas May 4 22:29 rannomac.sas May 4 19:03 ratitle.sas Apr 15 17:02 rcmd.sas May 4 21:55 readfile.sas May 4 20:15 remove.sas May 4 22:13 removew.sas Feb 12 10:26 rename8.sas May 4 19:02 replhex.sas Jun 12 19:22 rinclude.sas May 4 18:58 round.sas May 4 20:16 rxmatch.sas Feb 2 23:39 sas2xpt.sas May 4 22:51 scanlog.sas May 4 18:44 showhex.sas May 4 20:17 sortedby.sas May 8 13:05 splitmac.sas May 4 22:04 splitvar.sas May 4 20:25 substrw.sas Jun 12 11:10 suffix.sas May 4 18:46 supasort.sas May 4 22:06 sysfmtlist.sas May 4 21:56 therest.sas May 4 18:48 titlelen.sas May 4 20:26 trim.sas May 8 13:08 v_macros.sas May 4 20:27 varfmt.sas May 4 21:57 varinfmt.sas May 4 20:27 varlabel.sas May 4 20:32 varlen.sas May 4 20:31 varlist.sas May 4 20:29 varlistc.sas May 4 20:34 varlistn.sas May 4 20:35 varnum.sas May 4 20:36 vartype.sas May 4 18:56 vaxis.sas May 4 22:00 verify.sas May 4 20:39 verifyb.sas May 4 22:58 vwlist.sas May 4 20:40 windex.sas May 4 22:44 words.sas May 4 23:05 xl2sas.sas May 4 23:08 xlblocks.sas May 8 11:42 xlsheets.sas Feb 2 23:40 xpt2sas.sas May 4 22:23 yrcutoff.sas May 4 18:54 zerogrid.sas |
| Index of members in this directory with standard headers
======================================================== (this list was generated by the crindex script) addautos.sas - To concatenate a macro library onto the sasautos path
Usage: %addautos(mymacros)
adddecodevars.sas - To add decode variables where a user format is specified
Usage: %adddecodevars(dsin=ds1,dsout=ds2)
after.sas
- Function-style macro to give you what comes directly after a
Usage: %let width=%after(&str,%str(width=),%str( w=));
age.sas
- In-datastep function-style macro to calculate the age of a person
Usage: data test;
agedec.sas - In-datastep
function-style macro to calculate the age of a person
Usage: data test;
aligndp.sas - In-datastep
macro to create a string from a numeric value with
Usage: %aligndp(numvar,charvar,4);
allfmtvals.sas - Create a dataset with every start value of a format in it
Usage: %allfmtvals(fmt=$country,var=country,dsout=temp1,length=2)
alluniq.sas - To create
a dataset with all unique occurences of a variable
Usage: %alluniq(in,subject,allsubj)
asciinonp.sas - To show up ascii non-printables
characters in a flat file by
Usage: %asciinonp(infile,outfile)
attrc.sas - Function-style macro to return a character attribute of a dataset
Usage: %let dslabel=%attrc(dsname,label);
attrn.sas - Function-style macro to return a numeric attribute of a dataset
Usage: %let nobs=%attrn(dsname,nlobs);
attrv.sas - Function-style macro to return a variable attribute
Usage: %let vartype=%attrv(dsname,varname,vartype);
bydrop.sas - To drop by-group residuals
Usage: %bydrop(dsin,by1 by2)
bytitle.sas - To drop
the last title if it is a "by" title and write it to the
Usage: %bytitle
capmac.sas - Function-style
macro to capitalise the first letter of each
Usage: %let tidy=%capmac(%bquote(A, B AND C'S RESULTS));
capvar.sas - In-datastep macro to tidy case of text in a variable
Usage: data lparmcd;
casestrmac.sas - Function-style macro to
force mixed case forms of a string into
Usage: %let newtext=%casestrvar(&oldtext,Roland); casestrvar.sas - In-datastep macro to force
mixed case forms of a string into the
Usage: data test2;
char2num.sas - To "effectively" convert a list of character variables to numeric
Usage: %char2num(test,test2,char1 char2 char3 char4)
checkv6.sas - Check a dataset for Version 6 compatibility Usage: %checkv6(sasuser.myds); chkuniq.sas - To check for uniqueness in key variables.
Usage: %chkuniq(dsname)
chompw.sas - Function-style
macro to cut out a word from a macro string and
Usage: %let str2=%chompw(&str1,&target,2,0,casesens=yes);
clashvars.sas - To identify where
there is a clash of variable characteristics and
Usage: %clashvars(mylib)
clength.sas - To create
a length statement to unify character lengths in a list
Usage: %clength(ds1 ds2 ds3);
commas.sas - Function-style
macro to separate the elements of a list with
Usage: order by %commas(&var1 &var2 &var3);
complibs.sas - To "proc compare" identically-named datasets in two libraries
Usage: %complibs(base,comp)
compress.sas - Function-style macro to compress a macro string
Usage: %let str2=%compress(&str,1234567890.);
compvars.sas - To compare the
differences in variables present in two datasets
Usage: %let ds1=dataset1;
crdte.sas
- Function-style macro to return the creation datetime stamp of a
Usage: %let crdte=%crdte(dsname);
datanulldemo.sas - Clinical reporting sample code to
do a stacked-column report using
Usage: Ordinary SAS code.
delhex.sas - To delete occurrences of a specified hex character in a flat file.
Usage: %delhex(infile,outfile,'FE'x)
delifexist.sas - To delete a dataset if it exists
Usage: %delifexist(sasuser.myds)
delzero.sas - To delete
all datasets in a library with zero observations. This
Usage: %delzero(work)
dequote.sas - Function-style
macro to remove front and end matching quotes
Usage: %let str=%dequote(%qreadpipe(echo '%username%'));
dir.sas
- Function-style macro to return a list of members of a directory
Usage: %let dirlist=%dir(C:\utilmacros);
dirfpq.sas - Function-style
macro to return a list of full-path quoted members
Usage: %let dirlist=%dirfpq(C:\utilmacros); %*-
NO GOOD -;
doallitem.sas - To execute code for each item in a space-delimited list
Usage: %doallitem(dsa dsb dsc,'proc sort data=&item;by var;run;');
dosfilesize.sas - Function-style macro to return a DOS file size Usage: %let filesize=%dosfilesize(C:\spectre\unistats.html); dropvars.sas - To drop a list of unwanted variables in a list of datasets.
Usage: %dropvars(work._all,x1 x2)
dsall.sas
- To expand out the _all_ in a dataset list into all datasets in the
Usage: %dsall(sasuser.test work._all_);
dsattrib.sas - To force a set
of attributes, held in a template dataset,
Usage: %dsattrib(template,inds,outds)
dslabel.sas - Function-style macro to return a dataset label
Usage: %let dslabel=%dslabel(dsname);
dslist.sas - To list all the datasets in a libref.
Usage: %dslist(work);
dtscale.sas - To generate a date scale for sas/graph
Usage: %dtscale(&min,&max);
duplvars.sas - Function-style
macro to create a list of duplicate variables in a
Usage: data newds;
endwith.sas - Function-style
macro to ensure any non-null value assigned to a
Usage: filename outfile "%endwith(&outdir,/)output.txt";
eqsuff.sas - Function-style
macro to suffix a list of words (usually variables)
Usage: put %eqsuff(&varlist);
equals.sas - In-datastep
function-style macro to compare two numeric values to
Usage: if %equals(val1,7.3) then ...
fixnames.sas - In-datastep macro
to fix UTF-8 characters in a person's name by
Usage: data newpatinfo;
fixvars.sas - To "fix" variables in a library so they are consistent
Usage: fixvars(mylib,w);
flatten.sas - To "flatten" data so there is only one observation per "by group"
Usage: %flatten(dsin=test,bygroup=by1 by2,vars=str num)
fmtord.sas - To
create a numeric informat that maps a format label to its
Usage: %fmtord(agernge);
fmtpath.sas - Function-style macro to get the full fmtsearch path
Usage: %let path=%fmtpath;
fmts2fda.sas - To create sas code to generate formats as found in your data
Usage: %fmts2fda(mylib1 mylib2)
getfmts.sas - To get details of a list of user formats defined in a dataset
Usage: %getfmts(dsin=fmtlist,fmtvar=format,dsout=allfmts);
getvalue.sas - Function-style macro to return a variable's value
Usage: %let value=%getvalue(dsname,varname,1);
globexist.sas - Function-style macro
to return true if all the global macro
Usage: %if %globexist(globvar) %then %do ....
globlist.sas - Function-style
macro to return a list of current global macro
Usage: %let glist=%globlist;
hasvars.sas - Function-style
macro to return true if a dataset has all the
Usage: %if not %hasvars(dsname,aa bb cc) %then %do ....
hasvarsc.sas - Function-style
to return true if a dataset has all the character
Usage: %if not %hasvarsc(dsname,aa bb cc) %then %do ....
hasvarsn.sas - Function-style
macro to return true if a dataset has all the
Usage: %if not %hasvarsn(dsname,aa bb cc) %then %do ....
hexchars.sas - To show up ascii
non-printables characters in a flat file by
Usage: %hexchars(infile,outfile)
hexcnt.sas - To count the strange hex character in character variables Usage: %hexcnt(dsname,droplist,globcnt=_hexcnt_,globvars=_hexvars_); lafootnote.sas - To create a left-aligned footnote
Usage: %lafootnote(2," second footnote indented two spaces")
latitle.sas - To create a left-aligned title
Usage: %latitle(2," second title indented two spaces")
lcralign.sas - Write to a macro
variable with the supplied text left, center
Usage: %let macvar=;
left.sas
- Function-style macro to left-align the contents of a macro
Usage: %let macvar=%left(&macvar);
liblist.sas - To list all the libraries.
Usage: %liblist;
ljustify.sas - To left-justify all character fields in a dataset
Usage: %ljustify(dset)
lookahead.sas - To do the opposite
of lag and allow the user to look ahead at the
Usage:
lowcase.sas - Function-style
macro to return a lower-case version of a macro
Usage: %let lcase=%lowcase(&string);
lrafootnote.sas - To left and right-align a two part footnote for a pure text output
Usage: %lrafootnote(5,"Left aligned","Right-aligned")
lratitle.sas - To left and right-align a two part title for a pure text output
Usage: %lratitle(5,"Left aligned","Right-aligned")
ls.sas
- Function-style macro to return a list of members of a directory
Usage: %let dirlist=%ls(/usr/utilmacros);
lsfpq.sas
- Function-style macro to return a list of full-path quoted members
Usage: %let dirlist=%lsfpq(/usr/mylib); %*- NO
GOOD -;
lstattrib.sas - Lists the variable
attributes of the specified dataset in the
Usage: %lstattrib(sasuser.demog)
ltgtm1.sas - In-datastep
macro to turn a text numeric value into a numeric
Usage: %ltgtm1(textvar,numvar);
match.sas
- Function-style macro to return elements of a list that match those
Usage: %let match=%match(aa bb,aa cc);
maxtitle.sas - To find the highest
number title and footnote and output to global
Usage: %maxtitles
misscnt.sas - To create a list of variables and their missing value count Usage: %misscnt(dsname,droplist,globvar=_miss_); missvars.sas - To create a list of all-missing variables
Usage: %missvars(dsname);
mkformat.sas - To create a format
out of a "coded" and "decoded" variable in a
Usage: %mkformat(dsname(where=(x>1)),varcd,vardcd,fmtname,fmtcat);
modte.sas
- Function-style macro to return the last modification datetime
Usage: %let modte=%modte(dsname);
mtype.sas
- Function-style macro to return the member type of a dataset
Usage: %let mtype=%mtype(dsname);
mvarlist.sas - Function-style
macro to return a list of macro variable names
Usage: %macro dummy(a=123,b=345,c=);
mvarvalues.sas - Lists and resolves macro
variables one per line for a supplied
Usage: %mvarvalues(&mvarlist,*);
nlobs.sas
- Function-style macro to return the number of logical observations
Usage: %put >>>>>> %nlobs(sashelp.class) >>>>;
nobs.sas
- Function-style macro to return the number of observations in a
Usage: %put >>>>>> %nobs(sashelp.class) >>>>;
nodata.sas - To produce a "No Data" report
Usage: %if not %nobs(dset) %then %do;
nodup.sas - Function-style macro to drop duplicates in a space-delimited list
Usage: %let str=%nodup(aaa bbb aaa);
nodupkey.sas - To sort "nodupkey"
but list observations being dropped so that
Usage: %nodupkey(ds,var1 var2 var3)
noquotes.sas - Function-style
macro to remove all quoted strings from a macro
Usage: %let noquotes=%noquotes(&str);
now.sas - Function-style macro to return the current timestamp
Usage: %put Stage1: %now;
numchars.sas - To create a list
of character variables that contain numeric-like
Usage: %numchars(dsname,globvar=_numchars_);
nvars.sas
- Function-style macro to return the number of variables in a
Usage: %let nvars=%nvars(dsname);
nvarsc.sas - Function-style
macro to return the number of character variables
Usage: %let nvarsc=%nvarsc(dsname);
nvarsn.sas - Function-style
macro to return the number of numeric variables in
Usage: %let nvarsn=%nvarsn(dsname);
optlength.sas - To create a length
statement for character variables that take up
Usage: optlength(dset)
partialdates.sas - In-datastep macro to impute partial dates to a high or low value
Usage: data test;
prefix.sas - Function-style macro to return a list with a prefix added.
Usage: %let preflist=%prefix(C:\mylib\,fname1 "fname 2" fname3);
printall.sas - To print every
observation in a library where a variable satisfies
Usage: %printall(work,%str(num>1))
prxnames.sas - Function-style
macro to convert a space-delimited list of sas
Usage: %let dslist=var1 var2 vx:;
putvars.sas - To list
variables in a dataset suffixed with an equals sign
Usage: put %putvars(ds);
qcompress.sas - Function-style macro
to compress a macro variable string and
Usage: %let tidy=%qcompress(&string);
qdequote.sas - Function-style
macro to remove front and end matching quotes
Usage: %let str=%qdequote(%qreadpipe(echo '%username%'));
qdosfileinfo.sas - Function-style macro to return information
about a DOS file
Usage: %let filesize=%qdosfileinfo(C:\spectre\unistats.html,z); qgetenv.sas - Function-style
macro to get the contents of a system or user
Usage: %let newvar=%qgetenv(uservar);
qleft.sas
- Function-style macro to left-align the contents of a macro
Usage: %let macvar=%qleft(&macvar);
qreadpipe.sas - Function-style macro
to read the output of a system command and
Usage: %let mvar=%qreadpipe(echo $USER);
qtrim.sas
- Function-style macro to trim the contents of a macro variable and
Usage: %let macvar=%qtrim(&macvar);
quotecnt.sas - Function-style macro to count quoted strings in a macro expression
Usage: %let count=%quotecnt(&str);
quotelst.sas - Function-style macro to quote the elements of a list
Usage: %if %index(%quotelst(varnames),"varname") %then...
quotescan.sas - Function-style macro
to scan for a quoted string in a macro
Usage: %let scan=%quotescan(&str,2);
rafootnote.sas - To right-align a footnote for a pure text output
Usage: %rafootnote(5,"This footnote 5 will be right-aligned")
rannomac.sas - Compile Roland's annotate macros
Usage: filename webout "C:\spectre\";
ratitle.sas - To right-align a title for a pure text output
Usage: %ratitle(5,"This title 5 will be right-aligned")
rcmd.sas
- To run a system command on the remote host and write the output to
Usage: %rcmd(ps -fu userid); *- see details of a user-id -;
readfile.sas - Function-style
macro to read in a flat file and assign the
Usage: %let mvar=%readfile(filename);
remove.sas - Function-style
macro to remove all occurrences of the target
Usage: %let string2=%remove(&string1,XXX,yyy,YYY);
removew.sas - Function-style
macro to remove all occurrences of the target
Usage: %let colors2=%remove(&rainbow,green yellow);
rename8.sas - Function-style
macro to return a variable rename list for variable
Usage: data myds2;
replhex.sas - To replace
occurrences of a specified hex character in a flat file
Usage: %replhex(infile,outfile,'FE'x,' ')
rinclude.sas - To submit local sas code members in the remote session
Usage: %rinclude(mylib(mymacro1.sas) "C:\mylib\mymacro2.sas"
round.sas - To round all the numeric variables in a list of datasets.
Usage: %round(work._all_)
rxmatch.sas - Function-style
macro to return those space-delimited elements of a
Usage: %let match=%rxmatch(apopa pop aapop popaa,pop $s);
sas2xpt.sas - Create multiple transport files from sas datasets Usage: %sas2xpt((INDSLIB),%nrstr("V:\SAS\Two Parts\X&Y\temp\")); scanlog.sas - To scan a sas log file for important messages
Usage: %scanlog("full-file-path-name")
showhex.sas - To create
a new dataset where hex characters in character
Usage: %showhex(test1,test2,cvar1 cvar2 cvar3)
sortedby.sas - Function-style
macro to return the variables a dataset is sorted
Usage: %let sortedby=%sortedby(dsname);
splitmac.sas - Function-style macro to insert split characters in a macro string
Usage: %let str=The quick brown fox jumped over the lazy dog;
splitvar.sas - In-datastep macro to insert split characters in a string variable
Usage: data aaa;
substrw.sas - Function-style
macro to substring words assigned to a macro
Usage: %let whatsleft=%substrw(&mvar,4);
suffix.sas - Function-style macro to return a list with a suffix added.
Usage: %let sufflist=%suffix(.sas,fname1 "fname 2" fname3);
supasort.sas - To sort a list
of datasets by variables if they exist in the
Usage: %supasort(work._all_,date time)
sysfmtlist.sas - In-datastep macro to list all the system formats
Usage: if format in (" " %sysfmtlist) then _fmt="SYS";
therest.sas - Function-style
macro to give you everything following any found
Usage: %let rest=%therest(&str,\/);
titlelen.sas - To create a copy of sashelp.vtitle but with the length added.
Usage: %titlelen
trim.sas - Function-style macro to trim the contents of a macro variable
Usage: %let macvar=%trim(&macvar);
v_macros.sas - To compile the
validation macros %mmm, %fmm, %dmm and set up
Usage: %v_macros
varfmt.sas - Function-style macro to return a variable format
Usage: %let varfmt=%varfmt(dsname,varname);
varinfmt.sas - Function-style macro to return a variable informat
Usage: %let varinfmt=%varinfmt(dsname,varname);
varlabel.sas - Function-style macro to return a variable label
Usage: %let varlabel=%varlabel(dsname,varname);
varlen.sas - Function-style macro to return a variable length
Usage: %let varlen=%varlen(dsname,varname);
varlist.sas - Function-style macro to return a list of variables in a dataset
Usage: %let varlist=%varlist(dsname);
varlistc.sas - Function-style
macro to return a list of character variables in a
Usage: %let varlistc=%varlistc(dsname);
varlistn.sas - Function-style
macro to return a list of numeric variables in a
Usage: %let varlistn=%varlistn(dsname);
varnum.sas - Function-style
macro to return the variable position in a dataset
Usage: %let varnum=%varnum(dsname,varname);
vartype.sas - Function-style macro to return a variable type as either C or N
Usage: %let vartype=%vartype(dsname,varname);
vaxis.sas - To generate the values to construct a vaxis scale
Usage: %vaxis(&min,&max,spare=1)
verify.sas - Function-style
macro to return the position of the first character
Usage: %let pos=%verify(&text,%str( )); %*- first non-blank character
-;
verifyb.sas - Function-style
macro to return the position of the first character
Usage: %let pos=%verifyb(&text,%str( )); %*- last non-blank character
-;
vwlist.sas - To list all the views in a libref.
Usage: %vwlist(work);
windex.sas - Function-style macro to return the word count position in a string
Usage: %let windex=%windex(string,target);
words.sas - Function-style macro to return the number of words in a string Usage: %let words=%words(string); xl2sas.sas - Read an Excel spreadsheet into a sas dataset using DDE
Usage: %xl2sas(xlfile=C:\myfiles\My Spread Sheet.xls,sheetname=Sheet1,
xlblocks.sas - Read an Excel
spreadsheet sheet containing blocks of
Usage: %xlblocks(xlfile=C:\myfiles\My Sheet.xls,sheetname=Sheet One,
xlsheets.sas - Get a list of
sheet names (topics) from an Excel spreadsheet
Usage: %xlsheets(C:\Mydata\Spread Sheet Name.xls); xpt2sas.sas - Convert all the .xpt files in a folder to sas datasets
Usage: %xpt2sas(%nrstr("V:\SAS\Two Parts\X&Y\"),
yrcutoff.sas - To set the year
cutoff option to a number of years previous to the
Usage: %yrcutoff
zerogrid.sas - To create a "grid"
of combined values with a variable set to zero
Usage: %zerogrid(dsout=grid,var1=subject,ds1=demog,var2=tmtarm,
|
Use the "Back" button of your browser
to return to the previous page