• How to Use OPEN, CLOSE & USE

    From Mayur Pawar@21:1/5 to All on Thu Jul 29 04:05:33 2021
    Can any one tell me how to use or write a program to use " Open, Close, Use " commands ?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ed de moel@21:1/5 to All on Thu Jul 29 06:52:22 2021
    There are brief examples at:
    Open: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108043&Edition=examples
    Close: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108025&Edition=examples
    Use: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108054&Edition=examples

    However, since the various deviceparameters are mostly implementation dependent,
    it's probably better to refer to the documentation for the implementation you are using.

    Hope this helps,
    Ed

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From OldMster@21:1/5 to ed de moel on Tue Aug 3 14:30:19 2021
    On Thursday, July 29, 2021 at 9:52:23 AM UTC-4, ed de moel wrote:
    There are brief examples at:
    Open: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108043&Edition=examples
    Close: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108025&Edition=examples
    Use: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108054&Edition=examples

    However, since the various deviceparameters are mostly implementation dependent,
    it's probably better to refer to the documentation for the implementation you
    are using.

    Hope this helps,
    Ed

    Hopefully you aren't in the same trap I was in when learning M many years ago. I had no other M people to ask, and was coming from a dBase, Basic, Cobal, Fortran, etc. background. I was trying to figure out how to save something to disk - I spent 3
    frustrating days with the Open, Use, Write, and Close commands, but all I could find was talk about printers, terminals, etc. Finally as I looked through the 'Cookbook of Mumps', I noticed array references with a caret (^) in front. I thought, nawww,
    it can't be that easy. So I wrote a for loop 'F I=1:1:100 S ^DOESTHISWORK(I)="LINE "_I', ran it, then shut the machine down. I then restarted the machine, and magically I could do 'F I=1:1:100 W !,I,?5,^DOESTHISWORK(I)', and all that data was there.
    The light bulb went off at about 1,000 watts in my head, and I remember thinking - AWESOME.

    Mark

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to OldMster on Tue Sep 7 05:47:11 2021
    On Tuesday, August 3, 2021 at 5:30:21 PM UTC-4, OldMster wrote:
    On Thursday, July 29, 2021 at 9:52:23 AM UTC-4, ed de moel wrote:
    There are brief examples at:
    Open: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108043&Edition=examples
    Close: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108025&Edition=examples
    Use: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108054&Edition=examples

    However, since the various deviceparameters are mostly implementation dependent,
    it's probably better to refer to the documentation for the implementation you
    are using.

    Hope this helps,
    Ed
    Hopefully you aren't in the same trap I was in when learning M many years ago. I had no other M people to ask, and was coming from a dBase, Basic, Cobal, Fortran, etc. background. I was trying to figure out how to save something to disk - I spent 3
    frustrating days with the Open, Use, Write, and Close commands, but all I could find was talk about printers, terminals, etc. Finally as I looked through the 'Cookbook of Mumps', I noticed array references with a caret (^) in front. I thought, nawww, it
    can't be that easy. So I wrote a for loop 'F I=1:1:100 S ^DOESTHISWORK(I)="LINE "_I', ran it, then shut the machine down. I then restarted the machine, and magically I could do 'F I=1:1:100 W !,I,?5,^DOESTHISWORK(I)', and all that data was there. The
    light bulb went off at about 1,000 watts in my head, and I remember thinking - AWESOME.

    Mark
    I had that same experience when learning Mumps! :)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From rms@21:1/5 to Mike on Tue Sep 7 18:21:26 2021
    On Tuesday, September 7, 2021 at 8:47:12 AM UTC-4, Mike wrote:
    On Tuesday, August 3, 2021 at 5:30:21 PM UTC-4, OldMster wrote:
    On Thursday, July 29, 2021 at 9:52:23 AM UTC-4, ed de moel wrote:
    There are brief examples at:
    Open: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108043&Edition=examples
    Close: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108025&Edition=examples
    Use: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108054&Edition=examples

    However, since the various deviceparameters are mostly implementation dependent,
    it's probably better to refer to the documentation for the implementation you
    are using.

    Hope this helps,
    Ed
    Hopefully you aren't in the same trap I was in when learning M many years ago. I had no other M people to ask, and was coming from a dBase, Basic, Cobal, Fortran, etc. background. I was trying to figure out how to save something to disk - I spent 3
    frustrating days with the Open, Use, Write, and Close commands, but all I could find was talk about printers, terminals, etc. Finally as I looked through the 'Cookbook of Mumps', I noticed array references with a caret (^) in front. I thought, nawww, it
    can't be that easy. So I wrote a for loop 'F I=1:1:100 S ^DOESTHISWORK(I)="LINE "_I', ran it, then shut the machine down. I then restarted the machine, and magically I could do 'F I=1:1:100 W !,I,?5,^DOESTHISWORK(I)', and all that data was there. The
    light bulb went off at about 1,000 watts in my head, and I remember thinking - AWESOME.

    Mark
    I had that same experience when learning Mumps! :)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From rms@21:1/5 to rms on Tue Sep 7 18:27:43 2021
    On Tuesday, September 7, 2021 at 9:21:27 PM UTC-4, rms wrote:
    On Tuesday, September 7, 2021 at 8:47:12 AM UTC-4, Mike wrote:
    On Tuesday, August 3, 2021 at 5:30:21 PM UTC-4, OldMster wrote:
    On Thursday, July 29, 2021 at 9:52:23 AM UTC-4, ed de moel wrote:
    There are brief examples at:
    Open: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108043&Edition=examples
    Close: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108025&Edition=examples
    Use: http://71.174.62.16/Demo/AnnoStd?Frame=Main&Page=a108054&Edition=examples

    However, since the various deviceparameters are mostly implementation dependent,
    it's probably better to refer to the documentation for the implementation you
    are using.

    Hope this helps,
    Ed
    Hopefully you aren't in the same trap I was in when learning M many years ago. I had no other M people to ask, and was coming from a dBase, Basic, Cobal, Fortran, etc. background. I was trying to figure out how to save something to disk - I spent 3
    frustrating days with the Open, Use, Write, and Close commands, but all I could find was talk about printers, terminals, etc. Finally as I looked through the 'Cookbook of Mumps', I noticed array references with a caret (^) in front. I thought, nawww, it
    can't be that easy. So I wrote a for loop 'F I=1:1:100 S ^DOESTHISWORK(I)="LINE "_I', ran it, then shut the machine down. I then restarted the machine, and magically I could do 'F I=1:1:100 W !,I,?5,^DOESTHISWORK(I)', and all that data was there. The
    light bulb went off at about 1,000 watts in my head, and I remember thinking - AWESOME.

    Mark
    I had that same experience when learning Mumps! :)
    Which MUMPS are you using -- YottaDB/GT.M, Caché/IRIS/Healthshare, another flavor?
    Are you trying to do file IO or something else? If you give more specifics we can perhaps provide more help.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)