Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Linux: The OS people choose without $200,000,000 of persuasion. -- Mike Coleman


devel / comp.lang.mumps / Problems to invocate a subroutine

SubjectAuthor
* Problems to invocate a subroutineLuciano Muratore
`* Re: Problems to invocate a subroutineK.S. Bhaskar
 `- Re: Problems to invocate a subroutineOldMster

1
Problems to invocate a subroutine

<479d8b97-9ca7-4943-9265-3899e04d9e61n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=169&group=comp.lang.mumps#169

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a0c:8c81:: with SMTP id p1mr4615109qvb.7.1631788541771;
Thu, 16 Sep 2021 03:35:41 -0700 (PDT)
X-Received: by 2002:a05:6830:2473:: with SMTP id x51mr3969946otr.34.1631788541410;
Thu, 16 Sep 2021 03:35:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Thu, 16 Sep 2021 03:35:41 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=194.78.96.162; posting-account=sN-t4goAAABTp4WhwGKtkstxs_YelddF
NNTP-Posting-Host: 194.78.96.162
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <479d8b97-9ca7-4943-9265-3899e04d9e61n@googlegroups.com>
Subject: Problems to invocate a subroutine
From: muratorela@gmail.com (Luciano Muratore)
Injection-Date: Thu, 16 Sep 2021 10:35:41 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 25
 by: Luciano Muratore - Thu, 16 Sep 2021 10:35 UTC

Hi there,
I am working with YottaDB 1.32.
The code is the following (in the Yottadb):
>zedit "probes2"
>zlink "probes2"
The errors that I get are the following:
YDB-E-INVCMD, Invalid command keyword encountered
YDB-E-LABELMISSING, Label referenced but not defined: block1
YDB-I-SRCNAM, in source module /home/test/.yottadb/r1.32_x86_64/r/probe2.m

And the file probe2.m is
do set i=100
write i,!
do block1
write i,!
halt

block1
set i=i+i
quit

By the way, I am following the videos of Kevin C. O'Kane.
And, I am having serious problems using the content of Kevin in YottaDB 1.32. Can someone explain me why it is that?.
Or, is there any good resource from where I can learn to implement Mumps commands, subroutines, functions, ets?.

Re: Problems to invocate a subroutine

<41deb4ca-ffc0-4545-b59f-baeee778ca94n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=170&group=comp.lang.mumps#170

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a37:634d:: with SMTP id x74mr5444093qkb.453.1631804369615;
Thu, 16 Sep 2021 07:59:29 -0700 (PDT)
X-Received: by 2002:a05:6808:281:: with SMTP id z1mr207963oic.30.1631804368935;
Thu, 16 Sep 2021 07:59:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Thu, 16 Sep 2021 07:59:28 -0700 (PDT)
In-Reply-To: <479d8b97-9ca7-4943-9265-3899e04d9e61n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=108.52.84.50; posting-account=zTPg1AoAAABx_LtAQ3dW6FBnU1dwmSvl
NNTP-Posting-Host: 108.52.84.50
References: <479d8b97-9ca7-4943-9265-3899e04d9e61n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <41deb4ca-ffc0-4545-b59f-baeee778ca94n@googlegroups.com>
Subject: Re: Problems to invocate a subroutine
From: ksbhaskar@gmail.com (K.S. Bhaskar)
Injection-Date: Thu, 16 Sep 2021 14:59:29 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 50
 by: K.S. Bhaskar - Thu, 16 Sep 2021 14:59 UTC

On Thursday, September 16, 2021 at 6:35:42 AM UTC-4, Luciano Muratore wrote:
> Hi there,
> I am working with YottaDB 1.32.
> The code is the following (in the Yottadb):
> >zedit "probes2"
> >zlink "probes2"
>
> The errors that I get are the following:
> YDB-E-INVCMD, Invalid command keyword encountered
> YDB-E-LABELMISSING, Label referenced but not defined: block1
> YDB-I-SRCNAM, in source module /home/test/.yottadb/r1.32_x86_64/r/probe2.m
>
> And the file probe2.m is
> do set i=100
> write i,!
> do block1
> write i,!
> halt
>
> block1
> set i=i+i
> quit
>
> By the way, I am following the videos of Kevin C. O'Kane.
> And, I am having serious problems using the content of Kevin in YottaDB 1..32. Can someone explain me why it is that?.
> Or, is there any good resource from where I can learn to implement Mumps commands, subroutines, functions, ets?.

Prof. O'Kane's implementation of MUMPS and YottaDB are independent implementations. As such, what is standard MUMPS (as a first approximation, anything not starting with Z) is likely to be common, and anything starting with Z is likely to be different. Also, system administration (installation, configuration, backups, crash recovery, etc.) will be very different. Here are some resources that might help you:

The YottaDB Acculturation Guide (https://docs.yottadb.com/AcculturationGuide/) is a set of self-paced exercises to get you started with setting up and using YottaDB. It should help you edit routines.

The YottaDB M Programmers Guide (https://docs.yottadb.com/ProgrammersGuide/) is a guide to M language implemented by YottaDB.

https://learnxinyminutes.com/docs/m/ may be helpful as a tutorial.

Please continue to post questions here.

Regards
– Bhaskar

Re: Problems to invocate a subroutine

<e596eb62-040c-4e3e-875d-9dd55b167646n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=171&group=comp.lang.mumps#171

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a37:a56:: with SMTP id 83mr5599654qkk.22.1631805067990;
Thu, 16 Sep 2021 08:11:07 -0700 (PDT)
X-Received: by 2002:a9d:694c:: with SMTP id p12mr5186346oto.182.1631805067569;
Thu, 16 Sep 2021 08:11:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Thu, 16 Sep 2021 08:11:07 -0700 (PDT)
In-Reply-To: <41deb4ca-ffc0-4545-b59f-baeee778ca94n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=50.249.135.41; posting-account=B5cu_goAAACZo0vIvp9ba07OhA0t6wHW
NNTP-Posting-Host: 50.249.135.41
References: <479d8b97-9ca7-4943-9265-3899e04d9e61n@googlegroups.com> <41deb4ca-ffc0-4545-b59f-baeee778ca94n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e596eb62-040c-4e3e-875d-9dd55b167646n@googlegroups.com>
Subject: Re: Problems to invocate a subroutine
From: sires.mark@gmail.com (OldMster)
Injection-Date: Thu, 16 Sep 2021 15:11:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 65
 by: OldMster - Thu, 16 Sep 2021 15:11 UTC

On Thursday, September 16, 2021 at 10:59:30 AM UTC-4, K.S. Bhaskar wrote:
> On Thursday, September 16, 2021 at 6:35:42 AM UTC-4, Luciano Muratore wrote:
> > Hi there,
> > I am working with YottaDB 1.32.
> > The code is the following (in the Yottadb):
> > >zedit "probes2"
> > >zlink "probes2"
> >
> > The errors that I get are the following:
> > YDB-E-INVCMD, Invalid command keyword encountered
> > YDB-E-LABELMISSING, Label referenced but not defined: block1
> > YDB-I-SRCNAM, in source module /home/test/.yottadb/r1.32_x86_64/r/probe2.m
> >
> > And the file probe2.m is
> > do set i=100
> > write i,!
> > do block1
> > write i,!
> > halt
> >
> > block1
> > set i=i+i
> > quit
> >
> > By the way, I am following the videos of Kevin C. O'Kane.
> > And, I am having serious problems using the content of Kevin in YottaDB 1.32. Can someone explain me why it is that?.
> > Or, is there any good resource from where I can learn to implement Mumps commands, subroutines, functions, ets?.
> Prof. O'Kane's implementation of MUMPS and YottaDB are independent implementations. As such, what is standard MUMPS (as a first approximation, anything not starting with Z) is likely to be common, and anything starting with Z is likely to be different. Also, system administration (installation, configuration, backups, crash recovery, etc.) will be very different. Here are some resources that might help you:
>
> The YottaDB Acculturation Guide (https://docs.yottadb.com/AcculturationGuide/) is a set of self-paced exercises to get you started with setting up and using YottaDB. It should help you edit routines.
>
> The YottaDB M Programmers Guide (https://docs.yottadb.com/ProgrammersGuide/) is a guide to M language implemented by YottaDB.
>
> https://learnxinyminutes.com/docs/m/ may be helpful as a tutorial.
>
> Please continue to post questions here.
>
> Regards
> – Bhaskar
It could just be an artifact of posting, but it doesn't appear there is a tab or space at the beginning of each line that isn't a line label (subroutine label). It should be like this, where underscore is a space, so that the spaces are obvious. Notice no space in front of the block1 label. Also the 'do' in front of 'set i=100' is wrong - it would be trying to branch to a label 'set' with that command

_set i=100
_write i,!
_do block1
_write i,!
_halt
block1_
_set i=i+i
_quit

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor