Some useful SAS macros, UNIX scripts and DOS scripts
SAS Macros
readrtf.sas: Convert RTF file (table, listing, etc.) into SAS dataset
cmp_dsn.sas: Proc compare two datasets.
ck_dups.sas: Check if dataset has duplicate records.
cmp_vars.sas: Checks if variables exist in two datasets
ck_empty_vars.sas: Find all empty varibles in a dataset
ck_maxlen.sas: Compare length of a char variable to longest string in that variable
cklogs.sas: Scan SAS log file(s) for ERROR, WARNING, NOTE messages.
delnpsc.sas: Delete or replace the non printable/special characters from dataset
water_fall_graph.sas: A simple water fall graph using proc gchart
( output )
ck_vst_order.sas: Check if SDTM visits are in chronological order.
nullreport.sas: Create empty output with custome message.
getnobs.sas: Count observations of a dataset into macro variable.
get_datadate.sas: Get date/time of a dataset as macro variable.
assign_attrib.sas: Assign data attributes using excel file.
sdtm_split.sas: Create SUPP domain.
suppjoin.sas: Join parent and SUPP domain.
aocflag.sas: Create AOCxxFL variables in ADCM.
mksmall.sas: Adjust the lenght of char variables based on max length.
mkxpt.sas: Convert SAS dataset to XPT.
proccontents.sas: Simple proc contents macro.
pm.sas: Simple proc means macro.
calcmean.sas: Advanced proc means macro.
pf.sas: Simple proc freq macro.
dirlist.sas: Get list of files from a directory into SAS dataset.
list_macros.sas: Get list of macros from log file.
crt_dynamic_fmt.sas: Create format from dataset.
fill_format.sas: Create label and rows based on format.
f_swimlane.sas: Create swimlane graph with response colors.
Kaplan-Meir graphs.
gsetup.sas Setup markers and colors,
gsurvplot.sas Generate graph as PNG file and
gengraph.sas: Create rtf file
check: Scan SAS log file for ERROR, WARNING, NOTE messages.
scanlog: Scan LOG files. Also uses wildcards and scan multiple LOG files. (Note: check script required)
dos: Scan current dir for DOS files. Files with ^M characters.
checklst: Scan proc compare output in LST file.
cl: Scan proc compare output in LST file. Also uses wildcards and scan multiple LST files. (Note: checklst script required)
msas: Run SAS program and diplay seconds and total time.
pc: Command line SAS proc contents output. (example: pc adsl)
pf: Command line SAS proc freq output. (example: pf adsl "trt01a*sex")
pp: Command line SAS proc print output. (example: pp adsl usubjid age sex)
useful commands: Command syntax for various useful commands
check.bat: Scan SAS log file for ERROR, WARNING, NOTE messages.
cl.bat: Scan SAS LST file for proc compare results.
cmp_files.bat: Compare same file text in two different locations.
restart_explorer.bat: Re-start explorer.exe (taskbar)
msas.bat: Command to run SAS program
dosputty.bat: Putty like window to run aliases and SAS from command line
(Example alias.bat file)
pc.bat: Command line SAS proc contents output. (example: pc adsl)
showdesktop.scf: Minimize all windows. (Note: Save this file in QuickLinks folder)
shutdown.bat: Shutdown PC
outlook_domain_check.txt: MS Outlook VB macro checks if To and From addesses are from different domains
Book1.xlsm: Excel VB macro to avoid auto lock the screen (Note: Enable Editing, Enable Content and Save File.)
wmp.bat: Another way to avoid auto lock the screen (Note: Create playlist and save as plist1. song1
song2
song3 )
startup.txt: Start up folders location
remove_pinned_icons.bat: Remove pinned icons
batch-candid-adam.bat: CANDID batch run ADaM
batch-candid-tfl.bat: CANDID batch run TFLs
pcsas.txt: PC SAS Shortcut and start up files
multi_sessions.txt: PC SAS Multiple Sessions with Same Settings
R_Local_Installation.pdf: Set-up R, RStudio and run KM analysis.
PC and UNIX SAS® Reunited:
Notepad++ is a free (as in "free speech" and also as in "free beer") source code editor and Notepad replacement that supports several languages.
Downlaod SAS syntax highlighting file. Save it in "userDefineLangs" folder
Downlaod TextFX menu for some useful text function. Save it in /plugins folder.
Compare two files: Plugins → Plugin Manager → Show Plugin Manager, select 'Compare' and click Install
Microsoft SyncToy is a free application that synchronizes files and folders between locations.
PuTTY is a free implementation of SSH and Telnet for Windows and Unix platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham.
(Enable Auto login in Putty using ssh keys: Instructions )
TmQS Team quick support
Any Desk: exe zip
Statistics: Exact Binomial and Poisson Confidence Intervals
Statistics: Exact Binomial P-values
SDTMIG: v3.2,
v3.3,
v3.4
ADaMIG: v1.1,
v1.2,
v1.3
RECIST 1.1
visitors since Oct 26, 2008
© 2024 sastricks.com All Rights Reserved