Created
February 16, 2017 15:00
-
-
Save framingeinstein/e3dfd9c4e895be9e97f15af002e0ea78 to your computer and use it in GitHub Desktop.
Sample Implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Visit Number */ | |
/* s.prop58=s.eVar58=s.getVisitNum(); */ | |
s.prop58=s.getVisitNum(); | |
/* Time Parting (prop59,evar59=Hour of Day;prop60,evar60=Day of Week;prop61,evar61=Weekend or Weekday) */ | |
s.prop59=s.getTimeParting('h','-5'); | |
s.eVar59=s.getValOnce(s.prop59,'s_evar59',0); | |
s.prop60=s.getTimeParting('d','-5'); | |
s.eVar60=s.getValOnce(s.prop60,'s_evar60',0); | |
s.prop61=s.getTimeParting('w','-5'); | |
s.eVar61=s.getValOnce(s.prop61,'s_evar61',0); | |
/* New Repeat Visit */ | |
/* ORIG VERSION REPLACED SEP 29 2015 -- s.prop62=s.eVar62=s.getNewRepeat(365,'s_gnr');*/ | |
s.prop62=s.getNewRepeat(365,'s_gnr'); | |
/* Days Since Last Visit */ | |
/* ORIG VERSION REPLACED SEP 29 2015 -- s.prop63=s.eVar63=s.getDaysSinceLastVisit('s_lv');*/ | |
s.prop63=s.getDaysSinceLastVisit('s_lv'); | |
/* Carry Zip Code through PAA Process (confirm eVar75 is correct for paa zip) */ | |
s.eVar75=s.getAndPersistValue(s.eVar75,'s_evar75_per',0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment