Re: [U2] [AD] UniBasic Program with arguments

2005-02-05 Thread Mark Johnson
My 3 cents. - Original Message - From: "Chauhan, Savita" <[EMAIL PROTECTED]> To: Sent: Thursday, February 03, 2005 9:09 AM Subject: RE: [U2] [AD] UniBasic Program with arguments > That's a good idea if the program doesn't have return arguments. > > &

Re: [U2] [AD] UniBasic Program with arguments

2005-02-03 Thread Michael Blum
This is actually pretty simple in UniData - UniBasic. The call to 'SYSTEM(17)' tells you whether you're running from the command line or as a called routine. Here's a program I wrote along these lines. SUBROUTINE GET.UDT.OPTION(RES, OPTNO) * GET.UDT.OPTION - Get the value of one specific UDT.OPT

RE: [U2] [AD] UniBasic Program with arguments

2005-02-03 Thread Chauhan, Savita
hursday, 3 February 2005 1:59 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [AD] UniBasic Program with arguments Thanks all you guys for all your replies. This list has come to my rescue so many times. I have so much more to learn. I realized that I can run my program (with args) only as one of the

Re: [U2] [AD] UniBasic Program with arguments

2005-02-03 Thread Peter D Olson
"Clever but not quite there... That would only work if the subroutine used arg 1 as a return argument." the orig. post was to run subroutine from command line ??? exactly what does the user expect this subroutine to do ??? This e-mail, including attachments, may include confidential and/or prop

Re: [U2] [AD] UniBasic Program with arguments

2005-02-03 Thread Mats Carlid
D] On Behalf Of Mats Carlid Sent: 03 February 2005 10:22 To: u2-users@listserver.u2ug.org Subject: Re: [U2] [AD] UniBasic Program with arguments Well, actually you can, sort of : LIST VOC SAMPLE 1 EVAL "SUBR('your.subroutine', arg1 , arg2 )" Then we can argue forever if this i

RE: [U2] [AD] UniBasic Program with arguments

2005-02-03 Thread Brian Leach
server.u2ug.org > Subject: Re: [U2] [AD] UniBasic Program with arguments > > Well, > > actually you can, sort of : > > LIST VOC SAMPLE 1 EVAL "SUBR('your.subroutine', arg1 , arg2 )" > > Then we can argue forever if this is really running from TCl >

Re: [U2] [AD] UniBasic Program with arguments

2005-02-03 Thread Mats Carlid
- Change is the only Constant. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Johnson Sent: Wednesday, February 02, 2005 8:18 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [AD] UniBasic Program with arguments Here it is, pretty quickly. Create

RE: [U2] [AD] UniBasic Program with arguments

2005-02-02 Thread David Jordan
February 2005 1:59 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [AD] UniBasic Program with arguments Thanks all you guys for all your replies. This list has come to my rescue so many times. I have so much more to learn. I realized that I can run my program (with args) only as one of the following

Re: [U2] [AD] UniBasic Program with arguments

2005-02-02 Thread Mark Johnson
Trevor: You gave up too easily. See my posts on PRINT that I've been using for over 20 years. My 1 cent - Original Message - From: "Trevor Ockenden" <[EMAIL PROTECTED]> To: Sent: Wednesday, February 02, 2005 10:51 PM Subject: RE: [U2] [AD] UniBasic Program with a

RE: [U2] [AD] UniBasic Program with arguments

2005-02-02 Thread Trevor Ockenden
enden m: 0414 731 634 e: [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chauhan, Savita Sent: Wednesday, 2 February 2005 9:48 AM To: u2-users@listserver.u2ug.org Subject: [U2] [AD] UniBasic Program with arguments Hi, I am trying to

RE: [U2] [AD] UniBasic Program with arguments

2005-02-02 Thread Chauhan, Savita
. --- Change is the only Constant. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Johnson Sent: Wednesday, February 02, 2005 8:18 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [AD] UniBasic Program with arguments Here it

Re: [U2] [AD] UniBasic Program with arguments

2005-02-02 Thread Mark Johnson
XECUTE "DECATALOG BP ":ID 007 EXECUTE "BASIC BP ":ID 008 EXECUTE "RUN BP ":ID That's it. I created this in 1978 and have written 2 articles about it, one in Datastream and the other for Spectrum. It should be part of the MV OS. My 3 cents. ----- Original Mes

Re: [U2] [AD] UniBasic Program with arguments - utility available

2005-02-01 Thread Cliff Bennett
Hi again, Savita. Oops. Solution to wrong problem. I do have a handy program that lets you call any cataloged subroutine with simple args (i.e. strings & numbers) from TCL. It displays the return value of each arg afterward. Let me know if you want a copy emailed to you (or anyone else). Re

RE: [U2] [AD] UniBasic Program with arguments

2005-02-01 Thread Bob Woodward
ROTECTED] On Behalf Of Cliff Bennett > Sent: Tuesday, February 01, 2005 4:05 PM > To: u2-users@listserver.u2ug.org > Subject: Re: [U2] [AD] UniBasic Program with arguments > > Hi, Savita. I presume you mean running the program from TCL (:), the U2 > command prompt. > >

Re: [U2] [AD] UniBasic Program with arguments

2005-02-01 Thread Cliff Bennett
Hi, Savita. I presume you mean running the program from TCL (:), the U2 command prompt. In UniData there are two built-in variables, synonyms actually, named @SENTENCE and @COMMAND. These contain the raw command line used to invoke your subroutine. I usually TRIM this (to eliminate multiple

RE: [U2] [AD] UniBasic Program with arguments

2005-02-01 Thread Bob Woodward
TECTED] [mailto:owner-u2- > [EMAIL PROTECTED] On Behalf Of Chauhan, Savita > Sent: Tuesday, February 01, 2005 2:48 PM > To: u2-users@listserver.u2ug.org > Subject: [U2] [AD] UniBasic Program with arguments > > Hi, > > I am trying to run a unibasic program (external subroutine) t

Re: [U2] [AD] UniBasic Program with arguments

2005-02-01 Thread Jerry Banker
@SENTENCE, commons, or run the program that calls the subroutine. - Original Message - From: "Chauhan, Savita" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 01, 2005 4:48 PM Subject: [U2] [AD] UniBasic Program with arguments Hi, I am trying to run a unibasic p

RE: [U2] [AD] UniBasic Program with arguments

2005-02-01 Thread Kevin King
bject: [U2] [AD] UniBasic Program with arguments Hi, I am trying to run a unibasic program (external subroutine) that takes two arguments. I don't know how do I pass it the arguments if I run it directly from shel prompt instead of calling it from another program. I have gone through the manual,

[U2] [AD] UniBasic Program with arguments

2005-02-01 Thread Chauhan, Savita
Hi, I am trying to run a unibasic program (external subroutine) that takes two arguments. I don't know how do I pass it the arguments if I run it directly from shel prompt instead of calling it from another program. I have gone through the manual, but can't find anything. Pls help. Thanks Savita.