Looks like you are sending a MV command string to the cache command processor.
If you precede the command with MV then it will invoke the MV shell to process the command.
John Lambert
--
You received this message because you are subscribed to the Google Groups "InterSystems: MV Community" group.
To post to this group, send email to Cac...@googlegroups.com
To unsubscribe from this group, send email to
CacheMV-u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/CacheMV?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: MV Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
InterSystems-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
using
CGULTASKNAME = "CleargageUploadTask"
CGULTASKDESC = "Cleargage Upload Configuration"
CGULTASKCLASS = "%SYS.Task.RunLegacyTask"
CGULCMD = 'MVCALL CLEARGAGE_OUT_TASK'
CGULSETTINGS = $LB("ExecuteCode",CGULCMD)
CGULSTARTTIME = ICONV(CGREC<3>,"MT")
ULTASK = "%SYS.Task"->OpenId(CGULTASKNAME)
IF ISOBJECT(ULTASK) # 1 THEN
ULTASK = "%SYS.Task"->%New()
END
ULTASK->Name = CGULTASKNAME
ULTASK->Description = CGULTASKDESC
ULTASK->TaskClass = CGULTASKCLASS
ULTASK->Settings = CGULSETTINGS
ULTASK->DailyStartTime = CGULSTARTTIME
ULTASK->Suspended = 0
ULTASK->NameSpace = SYSTEM(1002)
IF CGREC<4> = "Y" THEN ULTASK->Suspended = 1
ULTASK->%Save()
ULGUID = ULTASK->JobGUID
ULTASKID = ULTASK->%Id()
Does MVCALL CLEARGAGE_OUT_TASK work from the cache prompt rather than TCL?
for setting up a task yeah. it works for another similar task but this one gets the syntax everytime
Will give it a try
That fixed it! Thanks guys