dbTalk Databases Forums  

Compiling outside of UV

comp.databases.pick comp.databases.pick


Discuss Compiling outside of UV in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Dave Mitchell
 
Posts: n/a

Default Re: Compiling outside of UV - 05-22-2006 , 08:05 PM






It seems Rick is asking for a Windows script (or batch file, for us old DOS
fogies) to compile and catalog a basic program in UV. manufv's answer so
far seems the closest, but the UV command invoked directly from a DOS
command line doesn't seem to want to catalog.

So, here's my solution:

1) Write a BASIC program somewhere that accepts command line input using
@SENTENCE, and parse out fields 2 and 3 for filename and program name, then
simply execute two commands to compile and catalog. Compile and catalog
this program somewhere (I called my program DOS.COMP, and compiled and
cataloged it in an account I have called MIS).

2) Use this anytime from a DOS command line to compile and catalog any given
program, using

C:\whatever\uv\bin\UV DOS.COMP filename programname

in your batch file.

My DOS.COMP code:

TCL = @SENTENCE
FILENAME = FIELD(TCL," ",2)
PROGNAME = FIELD(TCL," ",3)
IF FILENAME = "" OR PROGNAME = "" THEN
GOSUB Usage
STOP
END
CMD1 = "BASIC ":FILENAME:" ":PROGNAME
CMD2 = "CATALOG ":FILENAME:" ":PROGNAME
EXECUTE CMD1
EXECUTE CMD2
STOP
*
Usage:
PRINT "USAGE: DOS.COMP Filename ProgramName"
RETURN

I wrote a simple "Hello World" program in the PGM file of the MIS account,
and called it MITCH. I didn't compile or catalog it, though. Then I ran:

C:\IBM\Accounts\MIS>..\..\uv\bin\UV DOS.COMP PGM MITCH

from a DOS command line. The output was:

Compiling: Source = 'PGM/MITCH', Object = 'PGM.O/MITCH'


Compilation Complete.
"MITCH" cataloged.

Going back into UV, into my MIS account, I simply type MITCH, and it says
Hello World, just as if I had comiled and cataloged it within UV.

Hope this helps

Mitch

"Rick Weiser" <rickw (AT) designbais (DOT) com> wrote

Quote:
Hi all,

Is there an easy way to create a windows script to compile and catalog
a UV program from outside of the UV enviornment? I use a freeware
editor called Crimson on XP. I have been using it for jBASE and built
a script to compile and catalog a jBASE program. I want to do the same
with UV.

Does anyone know if this is possible?

Thanks,

Rick




Reply With Quote
  #12  
Old   
Rick Weiser
 
Posts: n/a

Default Re: Compiling outside of UV - 05-22-2006 , 08:38 PM






Thanks everyone, I will try all of these options.

Rick


Reply With Quote
  #13  
Old   
Tony Gravagno
 
Posts: n/a

Default Re: Compiling outside of UV - 05-23-2006 , 03:22 PM



I have posted MVExec.exe on my freeware page, no nags, completely
functional with mv.NET:
http:// remove.this.anti.spam.partNebula-RnD.com/freeware/
See the README.txt, then MVExec_README.rtf for complete details.

I guess Rick was looking for something to allow him to compile
programs on his localhost. Oh well, now you can compile or execute
anything you want on localhost or any other network box, including
across the internet with the new Gateway feature in mv.NET.

A single server license for mv.NET is required to use this software.
The List price for a single license is $260 per DBMS server, and can
satisfy requests from a large number of users. See my blog for info
about how many licenses we need for web functions:
http:// removethispartNebula-RnD.com/blog
/tech/2006/05/how-many-licenses-do-i-need.html
(sew that URL together an 'removethispart')

Contact me for a free evaluation license for mv.NET and to discuss
embedding mvExec functionality into your own client-side applications.
If you already have mv.NET - have fun !

Tony
TG@ removethisNebula-RnD.com

Reply With Quote
  #14  
Old   
Rick Weiser
 
Posts: n/a

Default Re: Compiling outside of UV - 05-23-2006 , 04:58 PM



Dave,

Thanks, this works like a charm.

Rick


Reply With Quote
  #15  
Old   
Rick Weiser
 
Posts: n/a

Default Re: Compiling outside of UV - 05-23-2006 , 04:59 PM



Yes Tony,

All I needed was to compile locally on UV.

Thanks all,

Rick


Reply With Quote
  #16  
Old   
Dave Mitchell
 
Posts: n/a

Default Re: Compiling outside of UV - 05-24-2006 , 09:53 PM



Glad to be of service. Also glad to hear that I still have some useful
knowledge left.....

"Rick Weiser" <rickw (AT) designbais (DOT) com> wrote

Quote:
Dave,

Thanks, this works like a charm.

Rick




Reply With Quote
  #17  
Old   
Symeon
 
Posts: n/a

Default Re: Compiling outside of UV - 05-26-2006 , 02:37 AM



Tony - your MVExec is not really freeware if it relies on a paid
licnece of MV.NET
Maybe you could do a version for each inherent objects interface in the
MV world (i.e. uniobjects) ....


Reply With Quote
  #18  
Old   
Tony Gravagno
 
Posts: n/a

Default Re: Compiling outside of UV - 05-26-2006 , 09:44 AM



"Symeon" wrote:
Quote:
Tony - your MVExec is not really freeware if it relies on a paid
licnece of MV.NET
My utility is free. It's functionality that exists nowhere else and
I'm providing it at no cost for anyone who has the infrastructure to
run it.

If I do use UniObjects then someone might say the DBMS isn't free.
Shall I write a new DBMS for you too? If the user runs over Windows
shall I buy that for them so that they don't need to spend any money?
(I hear a "yes please" in the distance... oh well)

Yes, mv.NET has an end-user List Price of $260 which, for this tool
could satisfy the needs of 100 users or more. That's not a bad price
to pay for the functionality, which is unique in our marketplace. I
would hope that anyone who gets use from this, especially for
commercial purposes, would be inclined to purchase a license or two of
mv.NET from me as a token of gratitude. My response would be to write
more freeware. No purchases, no more freeware.

Quote:
Maybe you could do a version for each inherent objects interface in the
MV world (i.e. uniobjects) ....
I don't think so. Don't go and get greedy now. I've done my part.
You're free to spend your time to do this if you wish.

T
Yes, I saw the winky.


Reply With Quote
  #19  
Old   
Ed Sheehan
 
Posts: n/a

Default Re: Compiling outside of UV - 05-26-2006 , 01:33 PM




"Tony Gravagno" <g6q3x9lu53001 (AT) sneakemail (DOT) com.invalid> wrote

Quote:
"Symeon" wrote:
Tony - your MVExec is not really freeware if it relies on a paid
licnece of MV.NET

My utility is free. It's functionality that exists nowhere else and
I'm providing it at no cost for anyone who has the infrastructure to
run it.

If I do use UniObjects then someone might say the DBMS isn't free.
Shall I write a new DBMS for you too? If the user runs over Windows
shall I buy that for them so that they don't need to spend any money?
(I hear a "yes please" in the distance... oh well)

Yes, mv.NET has an end-user List Price of $260 which, for this tool
could satisfy the needs of 100 users or more.
snip

Here's $5.20. Please send me two users' worth... :-)

Ed




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.