Kevin, Thanks for the debugger. It's really nice. I got to know where the problem is. This is my %ZISH routine's OPEN portion. Here I had included the command "S X2="/home/vista/OpenVistA"" to restrain the system from creating an HFS file in the "/" directory by default. As soon as I rmoved this command everything is woking fine.
OPEN(X1,X2,X3,X4,X5,X6) ;SR. Open file 9 ;D OPEN^%ZISH([handlename],[directory],filename,[accessmode],[recsize ]) 10 ;X1=handle name 11 ;X2=directory, X3=filename, X4=access mode 12 ;X5=new file max record size, X6=Subtype 13 ; 14 N %,%1,%2,%IO,%I2,%P,%T,X,Y,$ETRAP 15 S $ETRAP="D OPNERR^%ZISH" 16 S X2="/home/vista/OpenVistA" 17 S U="^",X2=$$DEFDIR($G(X2)),X4=$$UP^XLFSTR(X4) 18 S Y=$S(X4["A":"append",X4["R":"readonly",X4["W":"newversion",1:"reado nly") ........ But is there no way of defining the "default directory to create the HFS files in"? Regards Usha ----- Original Message ----- From: "Kevin Toppenberg" <[EMAIL PROTECTED]> To: <hardhats-members@lists.sourceforge.net> Sent: Tuesday, June 21, 2005 10:25 PM Subject: Re: [Hardhats-members] Does not ask DEVICE while exporting You can download the three files from the top of this page. Let me know if you need help. http://openforum.worldvista.org/~forum/index.php?title=Debugging_with_GT.M Kevin --- Usha <[EMAIL PROTECTED]> wrote: > I would like to have it. > Thanks > Usha > ----- Original Message ----- > From: "Kevin Toppenberg" <[EMAIL PROTECTED]> > To: <hardhats-members@lists.sourceforge.net> > Sent: Monday, June 20, 2005 11:02 PM > Subject: Re: [Hardhats-members] Does not ask DEVICE > while exporting > > > I have a very crude debugger that allows stepping > through code. I can get you the code if you want. > > Kevin > > > --- Usha <[EMAIL PROTECTED]> wrote: > > > Well how to do that? > > > > Usha > > > > ----- Original Message ----- > > From: "Greg Woodhouse" > > <[EMAIL PROTECTED]> > > To: <hardhats-members@lists.sourceforge.net> > > Sent: Friday, June 17, 2005 9:35 PM > > Subject: RE: [Hardhats-members] Does not ask > DEVICE > > while exporting > > > > > > At this point, I'd be inclined to try using a > > debugger to be sure that > > the pathname of the file you are trying to open is > > what you think it > > is. One possibility is that the path is being > > constructed in such a way > > that there is nothing to open. If there were a > > trappable error, you > > could also check the symbol table using ^XTER. > > > > --- Aylesworth Marc A Ctr AFRL/IFSE > > <[EMAIL PROTECTED]> wrote: > > > > > Also try to write t o/tmp this usually has 777 > > permissions where > > > other > > > directories may be more restricted > > > > > > Thanks > > > > > > Marc Aylesworth > > > > > > C3I Associates > > > > > > AFRL/IFSE > > > > > > Joint Battlespace Infosphere Team > > > > > > 525 Brooks Rd > > > > > > Rome, NY 13441-4505 > > > > > > Tel:315.330.2422 > > > > > > Fax:315.330.7009 > > > > > > Email: [EMAIL PROTECTED] > > > > > > -----Original Message----- > > > From: > [EMAIL PROTECTED] > > > > > > [mailto:[EMAIL PROTECTED] > > On Behalf Of > > > K.S. > > > Bhaskar > > > Sent: Friday, June 17, 2005 9:23 AM > > > To: hardhats-members@lists.sourceforge.net > > > Subject: Re: [Hardhats-members] Does not ask > > DEVICE while exporting > > > > > > Usha -- > > > > > > The information you sent, shell commands that I > > used to illustrate > > > the > > > use of ZSYstem, are probably not very helpful to > > anyone trying to > > > debug > > > why %ZISH is not accessing files in directories > > other than > > > /home/vista/OpenVistA. You may want to post the > > output of the > > > following > > > commands: > > > > > > ZSY "id" > > > ZSY "ls -ld /home/vista/OpenVistA" > > > ZSY "ls -ld XXX" > > > > > > where XXX is a directory where %ZISH is unable > to > > open a file. You > > > can > > > also just send the output of the commands > executed > > at a Linux shell > > > rather than the GT.M prompt: > > > > > > id > > > ls -ld /home/vista/OpenVistA > > > ls -ld XXX > > > > > > -- Bhaskar > > > > > > Usha wrote: > > > > I am able to open any file in > > /home/vista/OpenVistA directory only. > > > No > > > > other > > > > file is opening using %ZISH. > > > > > > > > Following is a screenshot, with the help of > > Bhaskar > > > > > > > > GTM>ZSYstem "echo $PWD" > > > > /home/vista/OpenVistA > > > > > > > > GTM>ZSYstem "uname -a" > > > > Linux local.cmpio.org 2.4.22-1.2115.nptl #1 > Wed > > Oct 29 15:42:51 EST > > > 2003 > > > > i686 i686 i386 GNU/Linux > > > > > > > > GTM>h > > > > [EMAIL PROTECTED] vista]$ echo $PWD > > > > /home/vista > > > > [EMAIL PROTECTED] vista]$ > > > > > > > > > > > > Regards > > > > Usha > > > > ----- Original Message ----- > > > > From: "Gregory Woodhouse" > > <[EMAIL PROTECTED]> > > > > To: <hardhats-members@lists.sourceforge.net> > > > > Sent: Thursday, June 16, 2005 5:28 PM > > > > Subject: Re: [Hardhats-members] Does not ask > > DEVICE while exporting > > > > > > > > > > > > > Can you OPEN the file? Can you open (with > > %ZISH) a file in a > > > > > different directory (say /tmp)? > > > > > > > > > > === > > > > > Gregory Woodhouse > > > > > [EMAIL PROTECTED] > > > > > > > > > > "Without the requirement of mathematical > > aesthetics a great many > > > > > discoveries would not have been made." > > > > > -- Albert Einstein > > > > > > > > > > > > > > > > > > > > On Jun 16, 2005, at 4:00 AM, Usha wrote: > > > > > > > > > > > The difference between the previous and > > later open statements > > > is > > > > > > that the > > > > > > latter open statement was executed after > > opening the file in > > > WRITE > > > > > > mode > > > > > > (which I think, created a new file > > patmast.txt in /home/vista/ > > > > > > OpenVistA > > > > > > directory). > > > > > > > > > > > > After deleting the > > "/home/vista/OpenVistA/patmast.txt" file, > > > when I > > > > > > try to > > > > > > run the open command with the trailing > '/', > > the following is > > > what I > > > > > > see > > > > > > > > > > > > GTM>D > > > > > > OPEN^%ZISH("PATFILE","/home/vista/VistA/","patmast.txt","R") > > > > > > > === message truncated === ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members