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