[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mumps-l
Subject:    Re: NOCLI from Detached Process
From:       Christopher Jovais <Christopher.Jovais () radiology ! ucsf ! edu>
Date:       2003-10-31 20:27:48
[Download RAW message or body]

Since I had already generated a command procedure it was simple to
try using %submit and that worked like a charm.

Thank you very much for the suggestion.

Happy Halloween!

>Just realized you were talking about using %SUBMIT versus %SPAWN -
>my bad.  Will give that a try!
>
>>    Try spawning a command procedure with the VMS commands you wish
>>to execute. This is a very common problem.
>>
>>     Here's one general solution. First, SPAWN^%ZZLIB is invoked. If
>>it fails due to a NOCLI error, then the error is trapped to execute
>>the SPAWNER tag, which in turn write the command to be spawned to a
>>temporary file, which is then submitted to a batch queue.
>>
>>%ZZLIB
>>SPAWN(COM)      ; Spawn a command
>>         ; COM is the command to be spawned
>>         ; Example: W $$SPAWN^%ZZLIB("DIR")
>>         NEW (COM)
>>         S ZT=$ZT,ZE=$ZE,$ZT="SPAWNER^%ZZLIB"
>>         S X=$&ZLIB.%SPAWN(COM,,,64)
>>         S $ZT=ZT
>>         Q X
>>SPAWNER ; Spawn error target (check NO CLI error)
>>         S $ZT=ZT
>>         I $ZE'["-LIB-F-NOCLI" ZT $ZE
>>         ; Control to here means no cli, will have to submit
>>         S COMFILE=$&ZLIB.%TRNLOG("SYS$LOGIN")_"SPAWN_ZZLIB.COM"
>>         O COMFILE:NEW U COMFILE W "$ SET DEF
>>",$&ZLIB.%TRNLOG("SYS$LOGIN"),!,"$   ",COM,!!
>>         C COMFILE
>>         S X=$ZC(%SUBMIT,COMFILE,"/LOG_FILE/QUEUE=SYS$BATCH")
>>         Q $ZE
>>         ;
>>
>>-----Original Message-----
>>From: MUMPS List [mailto:MUMPS-L@LISTSERV.UGA.EDU]On Behalf Of
>>Christopher Jovais
>>Sent: Tuesday, October 28, 2003 4:45 PM
>>To: MUMPS-L@LISTSERV.UGA.EDU
>>Subject: NOCLI from Detached Process
>>
>>
>>Hello,
>>
>>I am using DSM on an OpenVMS Alpha platform and have a detached
>>process (jobbed from DSM) from which I would like to send VMS mail.
>>How do I work around the NOCLI error:
>>
>>**** Error in transfer process valid+12^zxxxxxx:1, %DSM-E-ZCFATAL,
>>fatal error r
>>eturned by external routine, -LIB-F-NOCLI, no CLI present to perform
>>function ****
>>
>>which I get when trying to spawn a VMS mail command?  The DSM manual
>>isn't very helpful in this regard, or I'm not looking in the right
>>place.
>>
>>Regards.
>>--

--
_________________________________________________________________________________
Christopher Jovais
University of California San Francisco
Department of Radiology
521 Parnassus Avenue C-324D
San Francisco, CA 94143-0628
tel: 415-502-5323
fax: 415-502-5836
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic