Thanks Guys,

As far as I can tell IO is defined, I set IO = 0

the code I am using is as follows
where fileName = "d:\Jack\JLSglobal.gof" passed in as parameter

 kill ^%utility($j)
  set IO=0
  set header=$$header^%Wgr(fileName_":(""RU"")",7,0)
  set globallist=$P(header,$C(22)_"#"_$C(1),2)
  For L=1:1 D  QUIT:global=""
  .set global=$P(globallist,$C(19,94,1),L) QUIT:global=""
  .set ^%utility($J,global)=""
  set status = $$main^%Wgr(fileName_":(""RU"")",7,"*",0,0,0)

which is almost exactly as it was posted by Kevin.

If I set the gloabal manualy and run the lines  individualy in terminal it
sort of works but skips the globals that I am trying to import.
copy and paste from terminal

JSTEVENSON>kill ^%utility($j)
JSTEVENSON>set ^%utility($J,"^MtAccess.LNKjobRelationshipAccD")=""
JSTEVENSON>set ^%utility($J,"^MtAccess.LNKjobRelationshipAccI")=""
JSTEVENSON>set IO=0
JSTEVENSON>set header=$$header^%Wgr("d:\Jack\JLSglobal.gof:(""RU"")",7,0)
JSTEVENSON>set status =
$$main^%Wgr("d:\Jack\JLSglobal.gof:(""RU"")",7,"*",0,0,0)


Skipping ^MtAccess.LNKjobRelationshipAccD
                                        1 blocks
Skipping ^MtAccess.LNKjobRelationshipAccI
                                        1 blocks
JSTEVENSON>

so the same code run line by line executes but doesnt work, when run as a
routine/method fails to run.

Also Ramon I cant find the source, where is it hiding?

I am stuck

Jack Stevenson
Senior Product Development Manager
Mtivity
London UK
+44 (0) 207 801 6211


"Ram�n Jim�nez" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Denver,
>
> > Variables required:
> >  gui
> >  IO
>
> True... I'm losing my hard-earned capability of reading pure MUMPS code :(
>
> -- 
> ZCacheLib - Open Source Extensions for Cach�
> http://www.zcachelib.org



Reply via email to