Support 805.461.7300
Sales
Our Technology. Your Success.
Tech Notes

Use database as JOBID when using script upload to Accutrace

If you would like to use the database name as the JOBID for a file that you're uploading automatically in a script, you can use the following command.

Open your script, and create a new event. Make it a Command event.

Create a new command.

Name it JOBID in script or something that would make sense.

In the command statement syntax below copy/paste the following command.

com_PresortFolder=ADDBS(JUSTPATH(DBF("_azqualification")))
com_jobid=justfname(forceext(dbf(),""))
ocomEditIni=CREATEOBJECT('editini')
ocomEditIni.IniPath=com_PresortFolder+"Presort.ini"
ocomEditIni.AddIfNotFound=.T.
ocomEditIni.Sectionhdr='[MAILDAT]'
ocomEditIni.Searchfor='JOBID='
ocomEditIni.Replacewith=TRANSFORM(com_jobid)
ocomEditIni.UpdateIni()

Make sure to place this command after the presort event and before the Upload to AccuTRACE event in the script.

If you're not presorting, use this instead:

ocomEditIni=CREATEOBJECT('editini')
ocomEditIni.IniPath=FORCEEXT(DBF(),"ini")
ocomEditIni.AddIfNotFound=.T.
ocomEditIni.Sectionhdr='[ACCUTRACE]'
ocomEditIni.Searchfor='JOBID='
ocomEditIni.Replacewith=TRANSFORM(com_jobid)
ocomEditIni.UpdateIni()

ocomEditIni.Sectionhdr='[ACCUTRACE]'
ocomEditIni.Searchfor='NOTICEEMAIL='
ocomEditIni.Replacewith="youremail@email.com"
ocomEditIni.UpdateIni()

« Back to Tech Notes

AccuZIP’s Professional Services Team has been a great resource for helping me launch Informed Delivery campaigns for my clients. I am a small direct mail marketing agency specializing in helping my clients find and retain new customers with direct mail. Informed Delivery is the best thing the post office has come up with in my 30+ years in the business. However, just like everything else with the post office, they don't make it easy. AccuZIP has made doing these digital campaigns very simple. I have analyzed campaign results and found the price per click through to the client's website less than an Adword campaign. I am looking forward to working with AccuZIP and their entire Professional Services Team with more clients and campaigns.
S.R., Raleigh, NC