[U2] startud

2004-07-22 Thread Björn Eklund
Hi,
anyone who start unibasic programs automaticlly when you start unidata?
I would like my a phantom process started each time I run startud. 
All tips are welcome. Could cron be a way to go?
We are on ud5.2 and solaris 8.

Thanks
Bjvrn
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Bounce from non-member

2004-07-22 Thread David T. Meeks
A 40019 error is a generic Write failure error, which implies that for 
some reason the process was unable
to write to FileB.

This being a Type 19 file makes it somewhat interesting.  This means it's 
trying to actually create an OS
file with the name mentioned, and is unable to write to it.

Would likely need a bit more detail than this.  OS, UV version, 
etc...  Also, after you see said message,
does that record exist in FileB?

Dave

At 12:10 AM 7/22/2004 -0400, you wrote:
Reposted for a non-member:

From: Anmol Chandrakant Khopade [EMAIL PROTECTED]

Hi,
   I am facing following problem regarding Phantoms in universe:
   We have a phantom which keeps on polling a type 19 file, say File1 
 for data and transfers it to another type 19 file, say File B.  File 
 B in turn is being read by another phantom.   The first phantom gets 
 killed sometimes and pretty randomly. The error code thrown is 40019, but 
 I could not get any the information about this error.
   Please find below a sample error message:
FATAL - Unable to write 7545698440*13346*25966.940943 on FileB

If someone has experienced such problem and/or has a workaround , 
 please let me know

TIA,

-Anmol
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


David T. Meeks || All my life I'm taken by surprise
Architect, Technology Office   ||  I'm someone's waste of time
Ascential Software ||  Now I walk a balanced line
[EMAIL PROTECTED]   ||  and step into tomorrow - IQ

---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


[U2] PDF docs

2004-07-22 Thread David Tod Sigafoos
It used to be that the pdfs were available for download.

It appears now that all pdfs are for ONLINE only reading.  Have I just
not found the 'download' section?

Thanks

  

-- 
DSig
David Tod Sigafoos

If patriotism has to precipitate us into dishonour, 
if there is no precipice of inhumanity over which 
nations and men will not throw themselves, then, 
why in fact do we go to so much trouble to become,
or to remain, human? Jean-Paul Sartre
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Report Writer to Create MVquery Statements

2004-07-22 Thread Ross Ferris
We have a drag'n'drop report writer within Visage. There is also the mvQuery product 
from Microgen - I'm sure there are others that I'm not aware of.

However, most (all) of these deviate from mv in that they are probably GUI, and 
would require a PC for report specification, rather than ye ol' green screen

HTH

Ross Ferris
Stamina Software
Visage  an Evolution in Software Development

-Original Message-
From: [EMAIL PROTECTED] [mailto:owner-u2-
[EMAIL PROTECTED] On Behalf Of Mark Johnson
Sent: Thursday, 22 July 2004 11:52 PM
To: [EMAIL PROTECTED]
Subject: [U2] Report Writer to Create MVquery Statements

One of my new clients (new to MV as well) would like a program to help them
create their own ad-hoc mvquery reports. Presently, I'm creating a simple
2-section program where the first section indicates the verb, filename,
heading/footing and some of the popular modifiers. The second section is
free-form text for the actual 'work' of the statement.

Due to the complexity of these reports, I cannot imagine an easier approach
within MV. I've used MS Access on Access and Crystal Reports against a SQL
database and wonder if there's something already written for MV.

I want to stay within MV. I don't want to venture into CR or any other ODBC
item. Does anyone have any ideas on a simple MV report writer. Please don't
deviate from staying within MV.

Thanks in advance
Mark Johnson
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] PDF docs

2004-07-22 Thread Andy Moore
DISCLAIMER:
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error, please delete it and notify
the sender immediately.  Please note that there is no guarantee that
this email or any attachment is virus free or has not been intercepted
or amended.

David,

I presume you are trying to download PDF files from a website, but only have the links 
to the actual file available.

In Internet Explorer you can right click the link and select SAVE TARGET AS. This will 
then allow you to download the PDF file.

-Original Message-
From: David Tod Sigafoos [mailto:[EMAIL PROTECTED]
Sent: 22 July 2004 15:22
To: [EMAIL PROTECTED]
Subject: [U2] PDF docs


It used to be that the pdfs were available for download.

It appears now that all pdfs are for ONLINE only reading.  Have I just
not found the 'download' section?

Thanks

  

-- 
DSig
David Tod Sigafoos

If patriotism has to precipitate us into dishonour, 
if there is no precipice of inhumanity over which 
nations and men will not throw themselves, then, 
why in fact do we go to so much trouble to become,
or to remain, human? Jean-Paul Sartre
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Bounce from non-member

2004-07-22 Thread Glenn Herbert
When an item is written to a Type1/19 file, the data is first written to a 
temp file of the form DBxyy where x is a 5 digit pid# and yy is a 
2 digit sequencer.  An error during this process, such as creating the temp 
file and writing to it, could cause the fatal.  If the temp file and 
writing are successful, then the next phase is to remove any existing file 
with the ID of the target key, in this case 
7545698440*13346*25966.940943.  If this file cannot be 
removed  (unlinked) for some reason, a fatal is flagged.  If successfully 
removed, then the next step is to rename (copy) the temp file to the target 
id.  Again, if an error occurs here, a fatal is flagged.  If the copy is 
successful, the temp work file is removed with no care about its outcome.

After the temp file clean up, a check is made to determine if a WRITE or 
WRITEU was in process to either release or retain the write lock/latch, 
respectively.  If a fatal was flagged earlier, a status is returned and the 
parent BASIC write dispatch function actions on that, generating the 40019.

Could be there are some kind of permissions issue, or temp file being left 
around, or even maybe a clash of pid numbers whereby a longer pid, say 6 
digits, is being truncated to 5 and clashing with an existing temp file 
using a 5 digit pid (speculation on my part, but something I have seen)

Good luck.
At 10:13 AM 7/22/2004, you wrote:
The error resides in the SYS.MESSAGE file but all it
says is Write failure.  Not very helpful.
Ron White
- Original Message -
From: Moderator [EMAIL PROTECTED]
To: U2 Users Discussion List [EMAIL PROTECTED]
Sent: Wednesday, July 21, 2004 11:10 PM
Subject: [U2] Bounce from non-member
 Reposted for a non-member:

 From: Anmol Chandrakant Khopade [EMAIL PROTECTED]

 Hi,
I am facing following problem regarding Phantoms in universe:
We have a phantom which keeps on polling a type 19 file, say File1
for data and transfers it to another type 19 file, say File B.  File B
in turn is being read by another phantom.
The first phantom gets killed sometimes and pretty randomly. The error
code thrown is 40019, but I could not get any the information about this
error.
Please find below a sample error message:
 FATAL - Unable to write 7545698440*13346*25966.940943 on FileB

 If someone has experienced such problem and/or has a workaround ,
please let me know

 TIA,

 -Anmol
 ---
 u2-users mailing list
 [EMAIL PROTECTED]
 To unsubscribe please visit http://listserver.u2ug.org/
 ---
 [ E-mail scanned Virus Free by NAI - McAfee anti-virus system ]



---
[ E-mail scanned Virus Free by NAI - McAfee anti-virus system ]
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] PDF docs

2004-07-22 Thread chris
David Tod Sigafoos wrote:
It appears now that all pdfs are for ONLINE only reading.  Have I just
not found the 'download' section?
 

I think you can open them online then click save as. and save on you 
local drive.

HTH
Chris
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] CallHTTP

2004-07-22 Thread Lee Bacall
Anyone know offhand what the limit may be on a GET?

Thanks
Lee Bacall
http://www.binarystar.com
Phone: +1 (954) 791-8575
Cell:  +1 (954) 655-6581

- Original Message - 
From: Wendy Smoak [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Nick Cipollina
[EMAIL PROTECTED]
Sent: Wednesday, July 21, 2004 6:24 PM
Subject: RE: [U2] CallHTTP


snip

 Are you doing a GET or a POST?  There is a limit on GET, but it comes
 from the HTTP specification, not UniVerse.  (And exceeding it is no
 excuse for it dying like that!)

 -- 
 Wendy Smoak
 (Sent at 3:25 PM)
 ---
 u2-users mailing list
 [EMAIL PROTECTED]
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Report Writer to Create MVquery Statements

2004-07-22 Thread Lee Bacall
Subject: [U2] Report Writer to Create MVquery Statements
Mark,
ad
There is a utility we call BUILD that is a part of the Nucleus Programmer's
Workshop.
It was designed for non-programmers to create ad hoc queries, and works in
Dumb terminal or GUI modes.
Nucleus also includes a utility EXPORT2EXCEL, to export stuff to excel.

You can download a free 3 user evaluation from
http://www.binarystar.com/contact.html
I would be happy to demonstrate the operation over the web if you like -
just email me directly, thanks
/ad

Lee Bacall
[EMAIL PROTECTED]
http://www.binarystar.com
Phone: +1 (954) 791-8575
Cell:  +1 (954) 655-6581

- Original Message - 
From: Mark Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 9:52 AM
Subject: [U2] Report Writer to Create MVquery Statements


 One of my new clients (new to MV as well) would like a program to help
them
 create their own ad-hoc mvquery reports. Presently, I'm creating a simple
 2-section program where the first section indicates the verb, filename,
 heading/footing and some of the popular modifiers. The second section is
 free-form text for the actual 'work' of the statement.

 Due to the complexity of these reports, I cannot imagine an easier
approach
 within MV. I've used MS Access on Access and Crystal Reports against a SQL
 database and wonder if there's something already written for MV.

 I want to stay within MV. I don't want to venture into CR or any other
ODBC
 item. Does anyone have any ideas on a simple MV report writer. Please
don't
 deviate from staying within MV.

 Thanks in advance
 Mark Johnson
 ---
 u2-users mailing list
 [EMAIL PROTECTED]
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Importing data from OS file

2004-07-22 Thread Buffington, Wyatt
So what is the suggestion?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Firl
Sent: Tuesday, July 20, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: RE: [U2] Importing data from OS file


 An easy way (if you are on a Linux/Unix box), would be to create a 
 pseudo-floppy drive on your system in the DEVICE file

Lee,

Thanks for the suggestion.  I was aware of this capability on UNIX
platforms, but I require a solution that works on UNIX and Windows, as
well as jBASE and Universe.  In the absence of standard bulk file
loading utility for MV, I started working on my own.

Tom Firl
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] CallHTTP

2004-07-22 Thread Michael Spencer
It is the same limit as the length of a url which I think is 2083. 
 
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lee Bacall
Sent: July 22, 2004 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [U2] CallHTTP

Anyone know offhand what the limit may be on a GET?

Thanks
Lee Bacall
http://www.binarystar.com
Phone: +1 (954) 791-8575
Cell:  +1 (954) 655-6581

- Original Message -
From: Wendy Smoak [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Nick Cipollina
[EMAIL PROTECTED]
Sent: Wednesday, July 21, 2004 6:24 PM
Subject: RE: [U2] CallHTTP


snip

 Are you doing a GET or a POST?  There is a limit on GET, but it comes
 from the HTTP specification, not UniVerse.  (And exceeding it is no
 excuse for it dying like that!)

 -- 
 Wendy Smoak
 (Sent at 3:25 PM)
 ---
 u2-users mailing list
 [EMAIL PROTECTED]
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


SV: [U2] startud

2004-07-22 Thread Björn Eklund
I've decided to make an new startscript for Unidata that includes startud
and the start command of my program.

-Ursprungligt meddelande-
Fren: Bjvrn Eklund [mailto:[EMAIL PROTECTED]
Skickat: den 22 juli 2004 08:59
Till: '[EMAIL PROTECTED]'
Dmne: [U2] startud


Hi,
anyone who start unibasic programs automaticlly when you start unidata?
I would like my a phantom process started each time I run startud. 
All tips are welcome. Could cron be a way to go?
We are on ud5.2 and solaris 8.

Thanks
Bjvrn
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UniObjects for Java and Type 1 files

2004-07-22 Thread Wendy Smoak
Tsombakos, John wrote:
 However, I tried changing the sample code to read from a BP / 
 source code file and it gives an error - 
 asjava.uniobjects.UniFileException: This Record was not found.
 I even tried using (non java) Uniobjects and got the same 
 error.  Is there a problem with UniObjects reading from a non-hashed
file?

I routinely read from HOLD, which is really a directory.  You wrote
'type 1' file-- I've heard them called type 19 or dir-type files, but
I'm not sure what type 1 is.

This works:

  UniFile uFile = uSession.openFile( HOLD );
  uString = uFile.read( key );

Can you post some of the code you're using, and what the VOC pointer to
the file looks like?

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 
(at 9:41 AM...)
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Graphics On an Apollo Thermal Printer.

2004-07-22 Thread Chuck Mongiovi
Bill,
How do you do your graphics - using ZPL (Zebra), etc .. Are you talking
about printing images on printers? .. I've done images in ZPL and EPL using
line draw commands before ..

-Chuck

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bill Robinson
Sent: Wednesday, July 21, 2004 3:37 PM
To: [EMAIL PROTECTED]
Subject: [U2] Graphics On an Apollo Thermal Printer.


We are using Universe on a RS6000 with Unix.  We currently print labels with
graphics to Diagraph, Intermec and Zebra Printers.  Every time we get a new
printer I have to reinvent the wheel.  Well I was  wondering if anyone out
there has already invented this wheel, and would they share a little code.

Thank you,
Bill Robinson
[EMAIL PROTECTED]
EHV Weidmann Industries, Inc.
One Gordon Mills Way~PO Box 903
St. Johnsbury, VT 05819-0903
Phone (802) 751-3468
Fax   (802) 751-3431
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Report Writer to Create MVquery Statements

2004-07-22 Thread Dave S
SB+ has a report writer and an ad-hoq query builder.

Mark Johnson [EMAIL PROTECTED] wrote:One of my new clients (new to MV as well) would 
like a program to help them
create their own ad-hoc mvquery reports. Presently, I'm creating a simple
2-section program where the first section indicates the verb, filename,
heading/footing and some of the popular modifiers. The second section is
free-form text for the actual 'work' of the statement.

Due to the complexity of these reports, I cannot imagine an easier approach
within MV. I've used MS Access on Access and Crystal Reports against a SQL
database and wonder if there's something already written for MV.

I want to stay within MV. I don't want to venture into CR or any other ODBC
item. Does anyone have any ideas on a simple MV report writer. Please don't
deviate from staying within MV.

Thanks in advance
Mark Johnson
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/



-
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Importing data from OS file

2004-07-22 Thread Tom Firl
Below is Lee's suggestion (post)...  

In short, Lee is describes how to setup a Universe tape device that uses a file 
instead of a block device for reading and writing the i/o stream.  Note, I do not 
believe this will work on Windows (or so I've been told by Universe tech support, and 
a few others).

The DEVICE file can be edited from the UV account.  I think there is a definition of 
the attributes on the Universe Admin manual...  I can dig it up if you need it and 
can't find it.  Basically, you are working on the same file when you create or change 
a tape devices in Uniadmin or from the UV account menus.

There is nothing special about the path listed in attributes 2 and 7 -- they simply 
point to a file to which the tape i/o stream should be written.  If the file does not 
exist, you will want to do touch /binarystar/MV.LASER/MvLaser.vtf from the OS shell 
to create the file.  Rather than use the tape command in attributes 10 and 11, I use 
echo  $tape.

I think attribute 3 is the default block size and attribute 16 is the maximum block 
size for the device.

There is one big limitation and that is you can only write one contiguous segment to 
the file.  Once you write an end-of-file the reference pointer goes back to the 
beginning of the file.  Any subsequent writes will destroy the existing data in the 
file.

Hopefully, this helps...

Tom Firl

post
Tom,
An easy way (if you are on a Linux/Unix box), would be to create a
pseudo-floppy drive
on your system in the DEVICE file
It should like like this:

 PF1
0001 Test1 Pseudo Floppy
0002 /binarystar/MV.LASER/MvLaser.vtf
0003 500
0004 F
0005
0006
0007 /binarystar/MV.LASER/MvLaser.vtf
0008
0009
0010
0011 tape rewind $tape
0012 tape rewind $tape
0013
0014
0015
0016 500
0017
0018
0019

Then you can
ASSIGN PF1 TO MTU 0
T-REW
T-LOAD FileName

If anyone has information on how to do this on a Windows platform, it would
be appreciated.

Thanks
Lee Bacall
http://www.binarystar.com
Phone: +1 (954) 791-8575
Cell:  +1 (954) 655-6581
/post


 -Original Message-
 From: Buffington, Wyatt [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 22, 2004 9:03 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [U2] Importing data from OS file
 
 
 So what is the suggestion?
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Tom Firl
 Sent: Tuesday, July 20, 2004 12:59 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [U2] Importing data from OS file
 
 
  An easy way (if you are on a Linux/Unix box), would be to create a 
  pseudo-floppy drive on your system in the DEVICE file
 
 Lee,
 
 Thanks for the suggestion.  I was aware of this capability on UNIX
 platforms, but I require a solution that works on UNIX and Windows, as
 well as jBASE and Universe.  In the absence of standard bulk file
 loading utility for MV, I started working on my own.
 
 Tom Firl
 ---
 u2-users mailing list
 [EMAIL PROTECTED]
 To unsubscribe please visit http://listserver.u2ug.org/
 ---
 u2-users mailing list
 [EMAIL PROTECTED]
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Report Writer to Create MVquery Statements

2004-07-22 Thread Dave S
Shouldn't the subject line have an AD in there ?

Lee Bacall [EMAIL PROTECTED] wrote:Subject: [U2] Report Writer to Create MVquery 
Statements
Mark,

There is a utility we call BUILD that is a part of the Nucleus Programmer's
Workshop.
It was designed for non-programmers to create ad hoc queries, and works in
Dumb terminal or GUI modes.
Nucleus also includes a utility EXPORT2EXCEL, to export stuff to excel.

You can download a free 3 user evaluation from
http://www.binarystar.com/contact.html
I would be happy to demonstrate the operation over the web if you like -
just email me directly, thanks


Lee Bacall
[EMAIL PROTECTED]
http://www.binarystar.com
Phone: +1 (954) 791-8575
Cell: +1 (954) 655-6581

- Original Message - 
From: Mark Johnson 
To: 
Sent: Thursday, July 22, 2004 9:52 AM
Subject: [U2] Report Writer to Create MVquery Statements


 One of my new clients (new to MV as well) would like a program to help
them
 create their own ad-hoc mvquery reports. Presently, I'm creating a simple
 2-section program where the first section indicates the verb, filename,
 heading/footing and some of the popular modifiers. The second section is
 free-form text for the actual 'work' of the statement.

 Due to the complexity of these reports, I cannot imagine an easier
approach
 within MV. I've used MS Access on Access and Crystal Reports against a SQL
 database and wonder if there's something already written for MV.

 I want to stay within MV. I don't want to venture into CR or any other
ODBC
 item. Does anyone have any ideas on a simple MV report writer. Please
don't
 deviate from staying within MV.

 Thanks in advance
 Mark Johnson
 ---
 u2-users mailing list
 [EMAIL PROTECTED]
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/



-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UniObjects for Java and Type 1 files

2004-07-22 Thread Tsombakos, John
Well, I played around some more, and checks the docs again. The file is a
type 19 file, and using that exact code (chaning the file name of course).
Since type 19 and type 1 are directory files, I changed to use sequential
files:

UniSequentialFile uBP = uSession(TBP, key, false);
UniString uvstr = uBP.readLine();
int uvstat = uBP.status();

while (uvstat == 0) {
  System.out.println(uvstr);
  uvstr = uBP.readLine();
  uvstat = uBP.status();
}

This worked.

TBP VOC:
1: F
2: /u1/ACCT/TBP
3: /u1/ACCT/D_BP

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 22, 2004 12:42 PM
 To: [EMAIL PROTECTED]; Tsombakos, John
 Subject: RE: [U2] UniObjects for Java and Type 1 files
 
 
 Tsombakos, John wrote:
  However, I tried changing the sample code to read from a BP / 
  source code file and it gives an error - 
  asjava.uniobjects.UniFileException: This Record was not found.
  I even tried using (non java) Uniobjects and got the same 
  error.  Is there a problem with UniObjects reading from a non-hashed
 file?
 
 I routinely read from HOLD, which is really a directory.  You wrote
 'type 1' file-- I've heard them called type 19 or dir-type 
 files, but
 I'm not sure what type 1 is.
 
 This works:
 
   UniFile uFile = uSession.openFile( HOLD );
   uString = uFile.read( key );
 
 Can you post some of the code you're using, and what the VOC 
 pointer to
 the file looks like?
 
 -- 
 Wendy Smoak
 Application Systems Analyst, Sr.
 ASU IA Information Resources Management 
 (at 9:41 AM...)
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UniObjects for Java and Type 1 files

2004-07-22 Thread Wendy Smoak
 From: Tsombakos, John [mailto:[EMAIL PROTECTED] 
 Well, I played around some more, and checks the docs again. 
 The file is a
 type 19 file, and using that exact code (chaning the file 
 name of course).
 Since type 19 and type 1 are directory files, I changed to 
 use sequential files:
 UniSequentialFile uBP = uSession(TBP, key, false);

H... now I wonder if I ought to be using UniSequentialFile, too!
I'm not reading line by line, I'm reading the entire record, @AM's and
all.  (It's a text file, a report that was printed to HOLD.)

Please consider making a new Wiki page (or adding to an existing one)
with what you learned. :)

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Report Writer to Create MVquery Statements (AD)

2004-07-22 Thread Dave Taylor
Mark,

Our FabGen 4GL includes a report generator that creates reports both in
ASCII code, for character-based terminals and terminal emulators, and in
html for browsers.

Please contact me off-line if you'd like a demo.

Thanks,

Dave

Dave Taylor
President
Sysmark Information Systems, Inc.
49 Aspen Way
Rolling Hills Estates, CA 90274
800-SYSMARK (800-797-6275)
(O) 310-544-1974
(P) 800-339-1497
(F) 310-377-3550
www.sysmarkinfo.com

- Original Message - 
From: Mark Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 6:52 AM
Subject: [U2] Report Writer to Create MVquery Statements


 One of my new clients (new to MV as well) would like a program to help
them
 create their own ad-hoc mvquery reports. Presently, I'm creating a simple
 2-section program where the first section indicates the verb, filename,
 heading/footing and some of the popular modifiers. The second section is
 free-form text for the actual 'work' of the statement.

 Due to the complexity of these reports, I cannot imagine an easier
approach
 within MV. I've used MS Access on Access and Crystal Reports against a SQL
 database and wonder if there's something already written for MV.

 I want to stay within MV. I don't want to venture into CR or any other
ODBC
 item. Does anyone have any ideas on a simple MV report writer. Please
don't
 deviate from staying within MV.

 Thanks in advance
 Mark Johnson
 ---
 u2-users mailing list
 [EMAIL PROTECTED]
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] PDF docs

2004-07-22 Thread Doug Miller
At 09:21 AM 7/22/2004, you wrote:
It used to be that the pdfs were available for download.
It appears now that all pdfs are for ONLINE only reading.  Have I just
not found the 'download' section?
You can download from here.
http://www-306.ibm.com/software/data/u2/pubs/library/
At one point they had some type of bizarre linking going on that a rt click 
save would save the link and not the pdf.  I promptly complained as one 
cannot even order documentation on CD.

A quick test now allows me to download the individual manuals using rt 
click method.  I hear IBM is working on a proper document cd that will have 
indexing and the like.


Doug Miller
Strategy 7Dallas TX 
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV on Win2003, refusing new logins, UniAdmin issues RPC errmsg

2004-07-22 Thread David Jordan
Have you checked the user license count using the Uv license tool.  Users
may not be exiting gracefully and are leaving the license locked on the
server.  To clean this use UvLicTool with the clean option to release these
licenses.  You will find it in the /uv/uv/bin directory.  It has options to
report licenses or fix license count.

This can occur if a program has a fatal that logsout the system.  

Other issues can be where users exit the Dynamic Connect client without
first logging out. 

Regards

David Jordan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joe Walter
Sent: Friday, 23 July 2004 3:04 AM
To: [EMAIL PROTECTED]
Subject: [U2] UV on Win2003, refusing new logins, UniAdmin issues RPC errmsg


This is about UV 10.1.x on Win2003 server.

I'm completely baffled by this recurring situation.

It goes like this - universe is up and running, lots of users connected,
life is wonderful.

Sporadically - about two or three times in each
 24 hour period - the system gets into a state where it will not accept any
 new Universe logins. Users already logged are often unaffected, but any   
 attempt to start a new session with Dynamic Connect gets the message  
 [Connection Aborted] right away - before telnet prompts for   
 username/password are presented.  

When the system is in this state, any attempt to use UniAdmin results in an
error message something like 'RPC error 1' - I'm not sure if that is the
exact error message, but that's the gist of it.

Tried stop/start all universe services and every time the Universe Resource
and Universe Telnet services FAIL to restart, but the RPC service restarts
correctly.

Only way out is to reboot the server - which is a big hassle of course and
make for very unhappy users and sysadmins ;-(

Any ideas comments on this will be highly appreciated.

Thanks much,
joe
  
People  Technology delivering results  http://www.ClientsFirst-US.com
 
Joe Walter  Phone-Direct   : 330.867.3851
Senior Product Engineer - Central RegionPhone-Direct   : 330.990.9081
Phone-Main : 866.732.9191
26380 Curtiss Wright Parkway, Suite 108 Fax/Voice Mail : 435.514.5132
Cleveland, OH 44143 mailto:[EMAIL PROTECTED]
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Universe Phantom Problem

2004-07-22 Thread djordan
I would say that the file B is still being read by the C program or has not
been released.  Check if the file is locked before you try to write using a
READL or READU.  If you don't use the locked clause it will wait until the C
program releases File B.

Also consider looking at new features of UniVerse such as Sockets or MQ
(Message Que) to do the same process.  These have a lot of sophisticated
features to handle this environment.

Regards
David Jordan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of prem jaisinghani
Sent: Friday, 23 July 2004 5:51 AM
To: [EMAIL PROTECTED]
Subject: [U2] Universe Phantom Problem


Hi,

I am facing following problem regarding Phantoms in universe:

We have a phantom which keeps on polling a type 19 file, say File1 for
data and transfers it to another type 19 file, say

File B. File B in turn is being read by a 'c' program. 

The first phantom gets killed sometimes and pretty randomly. The error code
thrown is 40019, but I could not get any the information about this error.

Please find below a sample error message: 

FATAL - Unable to write 7545698440*13346*25966.940943 on FileB

If someone has experienced such problem and/or has a workaround, please let
me know.

Thanks and Regards,

Prem
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Importing data from OS file

2004-07-22 Thread Ross Ferris
If the number of records is a concern, why not ZIP/GZIP them -- 1 file can then be 
unzipped for your 100K+ records . viola!

Ross Ferris
Stamina Software
Visage  an Evolution in Software Development


-Original Message-
From: [EMAIL PROTECTED] [mailto:owner-u2-
[EMAIL PROTECTED] On Behalf Of Tom Firl
Sent: Saturday, 17 July 2004 2:31 AM
To: [EMAIL PROTECTED]
Subject: RE: [U2] Importing data from OS file

 Off the top of my head:

 /DATA directory on CDROM holding each record in a single file
 (delimit
 record elements with CR or LF as appropriate for your O/S)

 ED VOC IMPFILE
 F Data Import
 /dev/cdrom/DATA


Thanks, Craig and those of you who responded off-list.

I'm not very conversant in CD-ROM standards, but I know I am limited to
creating ISO-9660 level-1 disks that will be distributed to a wide variety
of operating systems.  I think the limit on the maximum number of files for
this format is somewhere around 65536 -- not enough to contain all the
records in a type-1/19 file.

More or less I'm fishing for a simple, free bulk-loader utility for MV
systems.  Rolling my own solution is easy enough... just thought I'd see if
there is a standard solution floating around in MV-land.

Tom Firl
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Importing data from OS file

2004-07-22 Thread Ross Ferris
Why char(253)  raise ? I thought the CR was automatically converted to @fm on read ( 
reverse on write ?)

Ross Ferris
Stamina Software
Visage  an Evolution in Software Development


-Original Message-
From: [EMAIL PROTECTED] [mailto:owner-u2-
[EMAIL PROTECTED] On Behalf Of Stuart Boydell
Sent: Friday, 16 July 2004 10:07 AM
To: [EMAIL PROTECTED]
Subject: RE: [U2] Importing data from OS file

 I have the flexibility
 of choosing the format the files contained on the CD-ROM.

 Any suggestions?

UniVerse or Jbase format.

Seriously, instead of say, comma/cr delimited files get them to save with
char(253)/cr instead. A simple readseq  raise() gets you your data. (Of
course if they'll do that then it's just one more step to just write the
records as type 19 formatted items in a directory for you.)



**
This email message and any files transmitted with it are confidential
and intended solely for the use of addressed recipient(s). If you have
received this email in error please notify the Spotless IS Support Centre
(61 3 9269 7555) immediately who will advise further action.

This footnote also confirms that this email message has been scanned
for the presence of computer viruses.
**
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Importing data from OS file

2004-07-22 Thread Stuart Boydell
Because if the file is originally a multi-line flat file then when you read
the item, as you say CRs will get converted to @AM.
This gives you a multi-attribute record in memory. Each line of which I am
assuming needs to be parsed and turned into a record.
If the delimiter is an @VM then each attribute (line) can be extracted,
raised and converted into a record.
Possibly no more or less effective than any other method - he just said he
could choose the format. Ideally that could also mean a U2 file but alas
that would probably be taking it too literally.
Stuart


 -Original Message-
 [mailto:[EMAIL PROTECTED] Behalf Of Ross Ferris


 Why char(253)  raise ? I thought the CR was automatically
 converted to @fm on read ( reverse on write ?)

 Ross Ferris
 Stamina Software
 Visage  an Evolution in Software Development



**
This email message and any files transmitted with it are confidential
and intended solely for the use of addressed recipient(s). If you have 
received this email in error please notify the Spotless IS Support Centre (61 3 9269 
7555) immediately who will advise further action.

This footnote also confirms that this email message has been scanned
for the presence of computer viruses.
**
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UD] Returning data to ksh

2004-07-22 Thread Ken Wallis
Doyen Klein wrote:

 You could at the start of the shell write an 'in-process flag' (simply
 create file with a specific name).

 As the final step in the process, when completed
 successfully, delete that file.
 Then .

 If [exists(file)] - you know the process failed.

You could also look at it the other way round - rm -f a status file before
you kick off the udt process, then afterwards, if the file exists and
contains a good status code then all is well, otherwise it isn't.  Something
a bit like this:

#!/usr/bin/ksh
# could try something clever to give you a unique temp file name here if you
like
export STATFILE=/x/y/z
rm -f $STATFILE
udt !eof
YOURCOMMANDSHERE
WRITESTATUS
quit
!eof
if [ -f $STATFILE ]
then
head -n 1 $STATFILE | read STAT ERRMSG
else
STAT=99
ERRMSG=cannot find status file $STATFILE
fi
if [ $STAT = 0 ]
then
# cool
else
# not cool
echo $ERRMSG 2
exit $STAT
fi

And WRITESTATUS would be a cataloged program that might look like this:

PROGRAM WRITESTATUS
* maybe use the @USER... variables or your own specific named common to keep
track of things
COMMON /STATCOM/ ERRSTAT, ERRMSG
OSWRITE ERRSTAT: :ERRMSG TO GETENV(STATFILE) ON ERROR ABORT
STOP
END

HTH,

Ken

 Ralph Melia wrote:

 I'm working on a project that involves integrating our (UD 5.2 on AIX)
 programs into a job stream via ksh scripts. And I need a way of
 communicating back to the calling shell whether the unidata process
 (program) completed successfully or not. The relevant part of
 the shell would look something like:

 $UDTBIN/udt program parameters

 if [ it failed ]; then do something


 I'm thinking that there must be a simple solution, but I'm
 drawing a blank.
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Longstanding aversion to CNAME?

2004-07-22 Thread Ken Wallis
Wendy Smoak wrote:

 It seems that CNAME is not a popular UniBasic command.
[snip, rearrange]
   X.CMD = CNAME filename :X.ID:',':X.NEW.ID
   EXECUTE X.CMD

Its an ECL verb isn't it Wendy?

Is there some history here I'm not aware of, maybe it was unreliable?

I don't think so.  I think it is just a Prime thing that non-primates tend
to distrust.  The PICK TCL syntax for the same action requires a DATA
statement if you want to execute it from BASIC so you wouldn't normally do
it:

DATA X.NEW.ID
EXECUTE COPY filename :X.ID

What happens if you get filename wrong? or something else happens, the new
key you've just put on the DATA stack might be taken to mean something else.
It simply isn't a good programatic solution.

Cheers,

Ken
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] startud

2004-07-22 Thread Ken Wallis
Bjvrn Eklund wrote:

 I've decided to make an new start script for Unidata that
 includes startud and the start command of my program.

Bjvrn,

That would be what I'd do, sort of.

Usually I set up a script in /etc/init.d to start and stop unidata cleanly,
and then I link to it from the appropriate /etc/rc?.d directories, and for
good measure put a script in /usr/local/bin which I whack higher in the PATH
than $UDTBIN which intercepts any startud or stopud commands and pushes them
through my /etc/init.d/unidata script.

By doing this, I make a decent fist of driving any normal mechanism for
starting or stopping unidata through a single spot so I can do other useful
stuff at the same time - like write a message to syslog, or more
importantly, make sure that the current RFS archive log file has been copied
to the DR server.

If someone knows what they are doing they can always get direct access to
stopud or startud via $UDTBIN/st...ud, but it isn't often that you'd want to
do that.

The decision then is whether to put the startup for you phantoms into the
same script as the one that starts unidata, or whether to put it in a
separate /etc/init.d script and maybe link to it from a higher run level
/etc/rc?.d.

UniData commands not providing any reliable exit status is very annoying,
but it has always been that way I'm afraid.  What I usually do is add an
extra capability to my /etc/init.d/unidata so that it understand not just
the start and stop commands, but also a 'status' command which will use
showud and look for a complete daemon set running to determine if it really
believes that UniData is running.  I then make it exit with a known status
so in other scripts I can do:

if /etc/init.d/unidata status
then
# stuff that relies on UniData being up
else
echo better start UniData first!
exit 2
fi

I'd wrap something this around your phantom initiation commands, and think
hard about whether you need some way to shut your phantoms down neatly or is
it OK simply to have stopud -f kill them?

Cheers,

Ken

 -Ursprungligt meddelande-
 Fren: Bjvrn Eklund [mailto:[EMAIL PROTECTED]

 anyone who start unibasic programs automatically when you
 start unidata?
 I would like my a phantom process started each time I run startud.
 All tips are welcome. Could cron be a way to go?
 We are on ud5.2 and solaris 8.
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Longstanding aversion to CNAME?

2004-07-22 Thread Roger Glenfield
hashing location of the new id is probably not the same as the old id, so
the record will still have to be removed/deleted from the original group
before writing it to new group.

Roger
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Wendy Smoak
 Sent: Thursday, July 22, 2004 8:27 PM
 To: [EMAIL PROTECTED]
 Subject: [U2] Longstanding aversion to CNAME?


 It seems that CNAME is not a popular UniBasic command.  Is there some
 history here I'm not aware of, maybe it was unreliable?

 From a UniBasic program, why would you open a file, read a record, write
 it back to the same file under a different key, then delete the original
 record, when you could just:

   X.CMD = CNAME filename :X.ID:',':X.NEW.ID
   EXECUTE X.CMD

 No changes to the data are required.  For example, if a bunch of records
 get written with the wrong date embedded in the key.

 This situation came up on info-datatel.  Here, it happens so rarely that
 it's barely worth worrying about-- I'm just curious.
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/