Macros for SAS Application Developers
https://github.com/sasjs/core
Toggle main menu visibility
Home
File List
▼
@sasjs/core
Macro Core
▼
File List
▼
base
mf_abort.sas
mf_dedup.sas
mf_deletefile.sas
mf_existds.sas
mf_existfeature.sas
mf_existfileref.sas
mf_existfunction.sas
mf_existvar.sas
mf_existvarlist.sas
mf_fmtdttm.sas
mf_getapploc.sas
mf_getattrc.sas
mf_getattrn.sas
mf_getengine.sas
mf_getfilesize.sas
mf_getfmtlist.sas
mf_getfmtname.sas
mf_getgitbranch.sas
mf_getkeyvalue.sas
mf_getplatform.sas
mf_getquotedstr.sas
mf_getschema.sas
mf_getuniquefileref.sas
mf_getuniquelibref.sas
mf_getuniquename.sas
mf_getuser.sas
mf_getvalue.sas
mf_getvarcount.sas
mf_getvarformat.sas
mf_getvarlen.sas
mf_getvarlist.sas
mf_getvarnum.sas
mf_getvartype.sas
mf_getxengine.sas
mf_increment.sas
mf_isblank.sas
mf_isdir.sas
mf_isint.sas
mf_islibds.sas
mf_loc.sas
mf_mkdir.sas
mf_mval.sas
mf_nobs.sas
mf_readfile.sas
mf_trimstr.sas
mf_uid.sas
mf_verifymacvars.sas
mf_wordsinstr1andstr2.sas
mf_wordsinstr1butnotstr2.sas
mf_writefile.sas
mp_abort.sas
mp_aligndecimal.sas
mp_appendfile.sas
mp_applyformats.sas
mp_assert.sas
mp_assertcols.sas
mp_assertcolvals.sas
mp_assertdsobs.sas
mp_assertscope.sas
mp_base64copy.sas
mp_binarycopy.sas
mp_chop.sas
mp_cleancsv.sas
mp_cntlout.sas
mp_copyfolder.sas
mp_coretable.sas
mp_createconstraints.sas
mp_createwebservice.sas
mp_csv2ds.sas
mp_deleteconstraints.sas
mp_deletefolder.sas
mp_dictionary.sas
mp_dirlist.sas
mp_distinctfmtvalues.sas
mp_dropmembers.sas
mp_ds2cards.sas
mp_ds2csv.sas
mp_ds2ddl.sas
mp_ds2fmtds.sas
mp_ds2inserts.sas
mp_ds2md.sas
mp_ds2squeeze.sas
mp_dsmeta.sas
mp_filtercheck.sas
mp_filtergenerate.sas
mp_filterstore.sas
mp_filtervalidate.sas
mp_getcols.sas
mp_getconstraints.sas
mp_getdbml.sas
mp_getddl.sas
mp_getformats.sas
mp_getmaxvarlengths.sas
mp_getpk.sas
mp_gitadd.sas
mp_gitlog.sas
mp_gitreleaseinfo.sas
mp_gitstatus.sas
mp_gsubfile.sas
mp_guesspk.sas
mp_hashdataset.sas
mp_hashdirectory.sas
mp_include.sas
mp_init.sas
mp_jsonout.sas
mp_lib2cards.sas
mp_lib2inserts.sas
mp_loadformat.sas
mp_lockanytable.sas
mp_lockfilecheck.sas
mp_makedata.sas
mp_md5.sas
mp_perflog.sas
mp_prevobs.sas
mp_recursivejoin.sas
mp_replace.sas
mp_reseterror.sas
mp_resetoption.sas
mp_retainedkey.sas
mp_runddl.sas
mp_searchcols.sas
mp_searchdata.sas
mp_setkeyvalue.sas
mp_sortinplace.sas
mp_stackdiffs.sas
mp_storediffs.sas
mp_stprequests.sas
mp_streamfile.sas
mp_stripdiffs.sas
mp_testjob.sas
mp_testservice.sas
mp_testwritespeedlibrary.sas
mp_tree.sas
mp_unzip.sas
mp_updatevarlength.sas
mp_validatecol.sas
mp_wait4file.sas
mp_webin.sas
mp_zip.sas
►
ddl
►
fcmp
►
lua
►
meta
►
metax
►
server
►
tests
►
viya
►
xplatform
•
All
Files
Pages
Loading...
Searching...
No Matches
mf_uid.sas
Go to the documentation of this file.
1
/**
2
@file
3
@brief Creates a unique ID based on system time in friendly format
4
@details format = YYYYMMDD_HHMMSSmmm_<sysjobid>_<3randomDigits>
5
6
%put %mf_uid();
7
8
@version 9.3
9
@author Allan Bowe
10
11
**/
12
13
%macro mf_uid(
14
)
/*/STORE SOURCE*/
;
15
%local today now;
16
%let today=%sysfunc(today(),yymmddn8.);
17
%let now=%sysfunc(compress(%sysfunc(time(),tod12.3),:.));
18
19
&today._&now._&sysjobid._%sysevalf(%sysfunc(ranuni(0))*999,CEIL)
20
21
%mend mf_uid;
base
mf_uid.sas
Generated by
1.12.0
For more information visit the
Macro Core library
.