-users-boun...@listserver.u2ug.org] On Behalf Of Bernard Lubin
Sent: Tuesday, 13 May 2014 11:44
To: U2 Users List
Subject: Re: [U2] Read yourself
You will need to do a system(9001) to get the program stack This will tell you
the subroutine that is being called.
To get the library, first check
by Design!
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Robert
Sent: Tuesday, May 13, 2014 3:28 PM
To: U2 Users List
Subject: Re: [U2] Read yourself
I saw on one PICK system, a precompiler language. It was the same
List
Subject: Re: [U2] Read yourself
I saw on one PICK system, a precompiler language. It was the same as
PICK/BASIC, but had a preprocessor to it.
So, for example to get the user number on a Universe system you would use
USER.NO=@USER.NO
On a PICK system, it would be USER.NO=OCONV(0,'U50BB
This can be broken simply by copying the program to some other location,
without changing the variables.
-Original Message-
From: Robert i...@keyway.net
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Tue, May 13, 2014 9:58 am
Subject: Re: [U2] Read yourself
Awesome feature
For long.
George
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson
Sent: Tuesday, May 13, 2014 1:13 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Read yourself
This can be broken simply by copying
Well do you see any problem in just using the SYSTEM(9001) and ignoring
embedding this information ?
-Original Message-
From: George Gallen ggal...@wyanokegroup.com
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Tue, May 13, 2014 10:27 am
Subject: Re: [U2] Read yourself
-boun...@listserver.u2ug.org] On Behalf Of Wjhonson
Sent: Tuesday, May 13, 2014 1:31 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Read yourself
Well do you see any problem in just using the SYSTEM(9001) and ignoring
embedding this information ?
-Original Message-
From: George
* this already, and the answer is
apparently not, so if I have to roll my own.
-Original Message-
From: George Gallen ggal...@wyanokegroup.com
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Tue, May 13, 2014 10:40 am
Subject: Re: [U2] Read yourself
Does the 9001 call work
, 2014 1:55 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Read yourself
I had posted an update, that I had tried it (it returns the program stack)
Its System(9001), and it will return the subroutine names in the stack as well
as the main program (on Universe 11 anyway)
Someone has to try
Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
Sent: Tuesday, May 13, 2014 10:29 AM
To: U2 Users List
Subject: Re: [U2] Read yourself
Actually, expounding on that. You could have a program insert the program and
file
aware (the first
step to
Activating the MATRIX) then you would compile/catalog.
George
-Original Message-
From: [hidden email] [mailto:[hidden email]] On Behalf Of George Gallen
Sent: Tuesday, May 13, 2014 1:27 PM
To: U2 Users List
Subject: Re: [U2] Read yourself
Then you would need
: Tuesday, May 13, 2014 1:55 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Read yourself
I had posted an update, that I had tried it (it returns the program stack)
Its System(9001), and it will return the subroutine names in the stack as
well as the main program (on Universe 11 anyway
Its entirely possible this feature did not exist on UV 10.0
-Original Message-
From: Richard Lewis rbl...@gmail.com
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Tue, May 13, 2014 1:46 pm
Subject: Re: [U2] Read yourself
George,
It's better illustrated by multiple call
\Abo\BP\BP\_TCL.SHELL²1161■3²E:\AboEnterprise\Abo\BP\BP\_BPTEST²104■4²SAVEDLISTS\_BpTest_332397981²1■
Bill
Untitled Page
- Original Message -
*From:* rbl...@gmail.com
*To:* U2 Users List u2-users@listserver.u2ug.org
*Date:* 5/13/2014 1:46 PM
*Subject:* Re: [U2] Read yourself
George,
It's
Does anyone have a BASIC program, that will open it's own code in a variable ?
So something like this
GOSUB RETURN.A.LOCAL.FILE.AND.KEY.FOR.ME
READ THIS.PROGRAM FROM F.LOCALFILENAME, K.PROGRAMKEY
the program reads itself.
Does anyone have a program like that?
What problem are you trying to solve by doing so?
After all it's not rocket science (pardon the pun) to
OPEN BP TO BP.FV THEN
READ R.PROG FROM BP.FV, PROG.ID ELSE ... Whatever
END
Sent from my iPad
On 13 May 2014, at 6:54 am, Wjhonson wjhon...@aol.com wrote:
Does anyone have a BASIC program,
, 2014 4:33 pm
Subject: Re: [U2] Read yourself
What problem are you trying to solve by doing so?
After all it's not rocket science (pardon the pun) to
OPEN BP TO BP.FV THEN
READ R.PROG FROM BP.FV, PROG.ID ELSE ... Whatever
END
Sent from my iPad
On 13 May 2014, at 6:54 am, Wjhonson wjhon...@aol.com
unless it can find it out
somehow.
-Original Message-
From: Adrian Overs ove...@citysoft.com.au
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Mon, May 12, 2014 4:33 pm
Subject: Re: [U2] Read yourself
What problem are you trying to solve by doing so?
After all it's
Sent: Mon, May 12, 2014 4:41 pm
Subject: Re: [U2] Read yourself
There are @ commands that can get this stuff. Or read the cat pointer.
John Israel
Sent from my iPhone
On May 12, 2014, at 7:39 PM, Wjhonson wjhon...@aol.com wrote:
The program does not inherently know that it's in a file
.
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson
Sent: Monday, May 12, 2014 6:48 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Read yourself
I understand how one could potentially do it.
I was more
You can get the Program name by parsing @SENTANCE
You can then read the Verb from the VOC and act on that or if the item is
globally catalogued then read the last line from your catdir item
From unix level use strings $catpath/$item | tail -1 and then process that.
HTH
Sent from my iPad
On 13
- Original Message -
*From:* d...@pickpro.com
*To:* U2 Users List u2-users@listserver.u2ug.org
*Date:* 5/12/2014 4:55 PM
*Subject:* Re: [U2] Read yourself
We always have a variable PGID defined at the top of the program.
This at least HELPS identify
:-)
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Haskett
Sent: Monday, May 12, 2014 7:19 PM
To: U2 Users List
Subject: Re: [U2] Read yourself
You can also use the program stack (UD - SYSTEM(49), UV - SYSTEM
Wont work --- if you use any external subroutines.
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Adrian Overs
Sent: Monday, May 12, 2014 7:18 PM
To: U2 Users List
Subject: Re: [U2] Read yourself
You can get
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Adrian Overs
Sent: Monday, May 12, 2014 7:18 PM
To: U2 Users List
Subject: Re: [U2] Read yourself
You can get the Program name by parsing @SENTANCE You can then read the Verb
from the VOC and act on that or if the item is globally
Subject: Re: [U2] Read yourself
You can also use the program stack (UD - SYSTEM(49), UV - SYSTEM(9001),
D3 - SYSTEM(33)). This gives not only the program running but the
path. That ought to give needed information to both open the file and
read the program source code.
HTH,
Bill
...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Adrian Overs
Sent: Monday, May 12, 2014 7:18 PM
To: U2 Users List
Subject: Re: [U2] Read yourself
You can get the Program name by parsing @SENTANCE You can then read the Verb
from the VOC and act on that or if the item is globally
better key to use for a configuration record than the program name itself.
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Adrian Overs
Sent: Monday, May 12, 2014 7:39 PM
To: U2 Users List
Subject: Re: [U2] Read yourself
, lends nothing to any routine being self-aware.
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Adrian Overs
Sent: Monday, May 12, 2014 7:58 PM
To: U2 Users List
Subject: Re: [U2] Read yourself
I totally agree
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Mon, May 12, 2014 6:09 pm
Subject: Re: [U2] Read yourself
I think the point has been lost.
The person is requesting the name of the CURRENT ROUTINE
If that is A SUBROUTINE - there is no @ that I know of that returns the name of
the currently
on the contents of this information is
strictly prohibited.
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson
Sent: Tuesday, 13 May 2014 11:29 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Read yourself
I just
I saw on one PICK system, a precompiler language. It was the same as
PICK/BASIC, but had a preprocessor to it.
So, for example to get the user number on a Universe system you would
use USER.NO=@USER.NO
On a PICK system, it would be USER.NO=OCONV(0,'U50BB')
Rather than write it into the
32 matches
Mail list logo