Re: [U2] Uniobjects and java

2011-03-16 Thread Doug Chanco
Thanks everyone that makes great sense

As I get into uoj and java I am
Sure I'll have more questions for all the experts on here

Once again thanks

Dougc



There are 10 kinds of people in the world, those that know binary and those 
that do not

On Mar 15, 2011, at 10:58, Kevin King  wrote:

> I agree with Brian for all of the reasons mentioned plus the performance can
> be much better on the server for processing when the server can simply do
> what it needs to do without an ongoing I/O dialogue with the client.
> 
> -Kevin
> http://www.PrecisOnline.com
> ___
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Uniobjects and java

2011-03-15 Thread Kevin King
I agree with Brian for all of the reasons mentioned plus the performance can
be much better on the server for processing when the server can simply do
what it needs to do without an ongoing I/O dialogue with the client.

-Kevin
http://www.PrecisOnline.com
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Uniobjects and java

2011-03-15 Thread Brian Leach
Doug

I would always recommend calling subroutines on the server, unless you have
a pressing need not to do so.

The biggest gain is for quality - it is much better to write and QA the back
end code first, then write the interface code. That way you can work in the
sure knowledge of the quality of the expected results, which makes debugging
much easier should something go wrong - and you can create test routines for
regression testing should things change. 

It also means any business logic does not get fragmented: good practice
always dictates that any business logic should exist only once and in one
location, so anything that could be shared between your client and any new
or existing server code should be kept neatly packaged on the server - which
is what a subroutine is for.

I've posted before about having a single, centralized dispatch routine and a
standard interface for client-facing subroutines: this adds a tiny overheads
but makes it easier to put in logging, recording and playback of the calls.

Brian 

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of doug chanco
Sent: 14 March 2011 02:14
To: U2 Users List
Subject: Re: [U2] Uniobjects and java

thanks,can you give me some of the pros/con's?  I have some ideas, (not 
passing huge amounts of data back and forth for one)  but I'd be 
interested in hearing others,  for the moment I think I will be calling 
subroutines but maybe down the road that may change (if the benefits out 
weigh a subroutine call)

Currently all I think I will be doing initially is just getting data 
from universe

dougc



On 3/11/2011 4:09 PM, Symeon Breen wrote:
> Also think about how your app works - There are two ways of using
uniobjects
> - you can just use it to call a sub and the sub does all the work and
> returns the data that you need (a quick in and out), or you can do all the
> file and record manipulation in the java layer. They both have pros and
> cons, the important concept is how long do you want to hold on to your
> connection into u2 for. Bearing in mind licencing issues, pooling etc.
>
>
>
>
>
> Rgds
>
> Symeon.
> listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Uniobjects and java

2011-03-13 Thread doug chanco
interesting blog Tony, thanks to everyone who sent me links/code to look 
at, I greatly appreciate it


For now while I am getting up to speed I am pretty sure I will be 
calling a subroutine for info from the DB but another project may call 
for a direct access to the DB


thanks again everyone

dougc
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Uniobjects and java

2011-03-13 Thread doug chanco
thanks,can you give me some of the pros/con's?  I have some ideas, (not 
passing huge amounts of data back and forth for one)  but I'd be 
interested in hearing others,  for the moment I think I will be calling 
subroutines but maybe down the road that may change (if the benefits out 
weigh a subroutine call)


Currently all I think I will be doing initially is just getting data 
from universe


dougc



On 3/11/2011 4:09 PM, Symeon Breen wrote:

Also think about how your app works - There are two ways of using uniobjects
- you can just use it to call a sub and the sub does all the work and
returns the data that you need (a quick in and out), or you can do all the
file and record manipulation in the java layer. They both have pros and
cons, the important concept is how long do you want to hold on to your
connection into u2 for. Bearing in mind licencing issues, pooling etc.





Rgds

Symeon.
listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Uniobjects and java

2011-03-11 Thread Tony Gravagno
> From: Symeon Breen
>...you can just use it to call a sub and the sub does 
>all the work and returns the data that you need (a 
>quick in and out), or you can do all the file and 
>record manipulation in the java layer


One of my recent blogs focused on that concept:
remove.thisNebula-RnD.com/blog/tech/mv/2011/02/mv-patterns1.html

Snips from that blog:
"The question is, do you go all the way to the DBMS...? ...My
answer is to give my clients greater ability to maintain their
own code. So I am tending toward ... (giving BASIC in the DBMS
more responsibilities), which results in a run-time performance
hit, but puts all control into a familiar and easy to change
location for my clients."

The blog uses .NET as the example, but coding in any OOP language
is exactly the same in terms of patterns, and Java/C# syntax is
almost exactly the same.

HTH

Latest blog titled "Not going to Spectrum because. ?"
Comments welcome.

Tony Gravagno
Nebula Research and Development
TG@ remove.pleaseNebula-RnD.com
remove.pleaseNebula-RnD.com/blog
Visit PickWiki.com! Contribute!
http://Twitter.com/TonyGravagno

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Uniobjects and java

2011-03-11 Thread Stephen Jackson
 public static void main(String[] argss) {

  try {
   UniJava uJava = new UniJava();

   System.err.println("Version Number :" + uJava.getVersionNumber());
   UniSession session = uJava.openSession();
   session.connect("server name",
 "id",
 "password",
 "/file/");
   session.setDataSourceType("UNIDATA");

   System.err.println("Max Open Files :" + session.getMaxOpenFiles());
   System.err.println("Account Path :" + session.getAccountPath());
   System.err.println("Locking Strategy :"
 + session.getDefaultLockStrategy());
   System.err.println("Release Strategy :"
 + session.getDefaultReleaseStrategy());
   System.err.println("Calling S.XTMS.TEST.LOOKUP...");
   String error = "";


   ArrayList inputArgs = new ArrayList();
   ArrayList outputArgs = new ArrayList();
   
   inputArgs.add("0491865");
   
   
   UniSubroutine sub = session.subroutine("S.TEST", inputArgs.size() +1);
   
   int iArgs = 0;
   sub.setArg(iArgs++, "");
   
   Iterator iter = inputArgs.iterator();
   
   while(iter.hasNext()) {
sub.setArg(iArgs++, iter.next());
   }
   
   sub.call();

iArgs = sub.getNumArgs();
 for (int i = 0; i<  iArgs; i++){
 String arg=sub.getArg(i);
//  System.out.println("OutputArg["+i+"]="+arg);
 outputArgs.add(arg);
 }
 
 
 System.err.println(outputArgs);
  } catch (UniSubroutineException e) {
   System.err.println(e.getExtendedMessage());
   e.printStackTrace();
  } catch (Exception ex) {
   ex.printStackTrace();
  }
 }



On FridayM/11/11 3:04 PM, "Doug Chanco"  wrote:

>Hey all,
> I am beginning to use uniobjects and java anyone know/have any good
>examples of both accessing the data directly and calling subroutines that
>return data
>
>I have the uniobjects for java manual and I will begin looking at that
>this week-end but any additional code samples would be greatly
>appreciated 
>
>Thanks
>
>Dougc
>
>
>
>There are 10 kinds of people in the world, those that know binary and
>those that do not
>
>On Mar 10, 2011, at 19:54, "Hona, David"  wrote:
>
>> It is my view that you should never manipulate any UniVerse file (even
>>directories) from outside UniVerse (especially when it is up)...without
>>due care or being aware of the negative impact, etc.
>> 
>> If you must clear &SAVEDLISTS&, use the vendor supplied CLEAR.FILE
>>command. 
>> 
>> If you execute say "CREATE.FILE MYUNIXDIR 19", it will create ".Type19"
>>within the UNIX directory created - common sense says you should do so
>>too. :-)
>> 
>> UniVerse will always use the correct UMASK you define (which should be
>>set in your LOGIN or UV.LOGIN so it is consistently applied for every UV
>>process) when you use CREATE.FILE.
>> 
>> Good practise dictates you should use the tools and processes provided
>>by the vendor unless there is a very good reason(s) why you should not.
>>Of course, experienced and brave souls...can do as they deem fit.
>> 
>> I guess as with all advice on here - use it at your own risk - "caveat
>>emptor" applies :-)
>> 
>> Regards
>> David
>> 
>> -Original Message-
>> From: u2-users-boun...@listserver.u2ug.org
>>[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tom Whitmore
>> Sent: Thursday, 10 March 2011 1:17 AM
>> To: U2 Users List
>> Subject: Re: [U2] User LogOut Cabbage
>> 
>> HI,
>> You don't need the ".Type19" file.  You can do
>>  rm -R \&SAVEDLISTS\&
>>  mkdir \&SAVEDLISTS\&
>> You do need to make sure the permissions are correct on the directory,
>>we have found people not having the correct UMASK so people have trouble
>>writing to the directory.
>> Tom
>> RATEX Business Solutions
>> 
>> -Original Message-
>> From: u2-users-boun...@listserver.u2ug.org
>>[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Hona, David
>> Sent: Tuesday, March 08, 2011 8:22 PM
>> To: 'U2 Users List'
>> Subject: Re: [U2] User LogOut Cabbage
>> 
>> Are you clearing your &SAVEDLISTS& directory from UNIX (scheduled or
>>manually) and then this error appears?
>> 
>> If so, it is probably deleting the required .Type19 entry (within the
>>&SAVEDLISTS& directory.
>> 
>> Possible solution: purge away, but re-create the .Type19 file using
>>'touch .Type19' or the like in your UNIX script. )...refrain from doing
>>when you have users logged in too. Perhaps use CLEAR.FILE instead from
>>within UV instead?
>> 
>> Regards,
>> David
>> 
>> 
>> -Original Message-
>> From: u2-users-boun...@listserver.u2ug.org
>>[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
>> Sent: Wednesday, 9 March 2011 9:35 AM
>> To: U2 Users List
>> Subject: [U2] User LogOut Cabbage
>> 
>> When a user here logs out of UniVerse on HP-Ux, it comes back with
>>repeating...
>> 
>>Mkpath: @SAVEDLISTS&/&&S.maryann.14 is not a directory
>> 
>> Suggestions would be appreciated.
>> 
>> --Bill
>> 
>> ** IMPORTANT MESSAGE *

Re: [U2] Uniobjects and java

2011-03-11 Thread Symeon Breen
Also think about how your app works - There are two ways of using uniobjects
- you can just use it to call a sub and the sub does all the work and
returns the data that you need (a quick in and out), or you can do all the
file and record manipulation in the java layer. They both have pros and
cons, the important concept is how long do you want to hold on to your
connection into u2 for. Bearing in mind licencing issues, pooling etc.

 

 

Rgds

Symeon.

 

From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Doug Chanco
Sent: 11 March 2011 20:05
To: U2 Users List
Subject: [U2] Uniobjects and java

 

Hey all,
 I am beginning to use uniobjects and java anyone know/have any good
examples of both accessing the data directly and calling subroutines that
return data

I have the uniobjects for java manual and I will begin looking at that this
week-end but any additional code samples would be greatly appreciated

Thanks

Dougc



There are 10 kinds of people in the world, those that know binary and those
that do not

On Mar 10, 2011, at 19:54, "Hona, David"  wrote:

> It is my view that you should never manipulate any UniVerse file (even
directories) from outside UniVerse (especially when it is up)...without due
care or being aware of the negative impact, etc.
>
> If you must clear &SAVEDLISTS&, use the vendor supplied CLEAR.FILE
command.
>
> If you execute say "CREATE.FILE MYUNIXDIR 19", it will create ".Type19"
within the UNIX directory created - common sense says you should do so too.
:-)
>
> UniVerse will always use the correct UMASK you define (which should be set
in your LOGIN or UV.LOGIN so it is consistently applied for every UV
process) when you use CREATE.FILE.
>
> Good practise dictates you should use the tools and processes provided by
the vendor unless there is a very good reason(s) why you should not. Of
course, experienced and brave souls...can do as they deem fit.
>
> I guess as with all advice on here - use it at your own risk - "caveat
emptor" applies :-)
>
> Regards
> David
>
> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tom Whitmore
> Sent: Thursday, 10 March 2011 1:17 AM
> To: U2 Users List
> Subject: Re: [U2] User LogOut Cabbage
>
> HI,
> You don't need the ".Type19" file.  You can do
>  rm -R \&SAVEDLISTS\&
>  mkdir \&SAVEDLISTS\&
> You do need to make sure the permissions are correct on the directory, we
have found people not having the correct UMASK so people have trouble
writing to the directory.
> Tom
> RATEX Business Solutions
>
> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Hona, David
> Sent: Tuesday, March 08, 2011 8:22 PM
> To: 'U2 Users List'
> Subject: Re: [U2] User LogOut Cabbage
>
> Are you clearing your &SAVEDLISTS& directory from UNIX (scheduled or
manually) and then this error appears?
>
> If so, it is probably deleting the required .Type19 entry (within the
&SAVEDLISTS& directory.
>
> Possible solution: purge away, but re-create the .Type19 file using 'touch
.Type19' or the like in your UNIX script. )...refrain from doing when you
have users logged in too. Perhaps use CLEAR.FILE instead from within UV
instead?
>
> Regards,
> David
>
>
> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
> Sent: Wednesday, 9 March 2011 9:35 AM
> To: U2 Users List
> Subject: [U2] User LogOut Cabbage
>
> When a user here logs out of UniVerse on HP-Ux, it comes back with
repeating...
>
>Mkpath: @SAVEDLISTS&/&&S.maryann.14 is not a directory
>
> Suggestions would be appreciated.
>
> --Bill
>
> ** IMPORTANT MESSAGE *  
> This e-mail message is intended only for the addressee(s) and contains
information which may be
> confidential.
> If you are not the intended recipient please advise the sender by return
email, do not use or
> disclose the contents, and delete the message and any attachments from
your system. Unless
> specifically indicated, this email does not constitute formal advice or
commitment by the sender
> or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its
subsidiaries.
> We can be contacted through our web site: commbank.com.au.
> If you no longer wish to receive commercial electronic messages from us,
please reply to this
> e-mail by typing Unsubscribe in the subject line.
> **
>
>
>
&

Re: [U2] Uniobjects and java

2011-03-11 Thread Bill Brutzman
While the Rocket manual is very good, I had a problem with some of the code 
until one of our U2UG colleagues suggested using the Java commands "try" and 
"catch" in one spot.

--Bill
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Uniobjects and java

2011-03-11 Thread Charles_Shaffer
>>Hey all,
>> I am beginning to use uniobjects and java anyone know/have any good 
examples of both accessing the data directly and calling subroutines that 
>>return data

>>I have the uniobjects for java manual and I will begin looking at that 
this week-end but any additional code samples would be greatly appreciated 


>>Thanks

>>Dougc

I have some examples of using Uniobjects for Java as a connector between 
PHP and Unidata.  If that sounds useful for you, contact me offline and 
I'll send you some examples.

Charles Shaffer
Senior Analyst
NTN-Bower Corporation




Doug Chanco 
Sent by: u2-users-boun...@listserver.u2ug.org
03/11/2011 02:04 PM
Please respond to U2 Users List
 
To: U2 Users List 
    cc: 
    Subject:[U2] Uniobjects and java





There are 10 kinds of people in the world, those that know binary and 
those that do not

On Mar 10, 2011, at 19:54, "Hona, David"  wrote:

> It is my view that you should never manipulate any UniVerse file (even 
directories) from outside UniVerse (especially when it is up)...without 
due care or being aware of the negative impact, etc.
> 
> If you must clear &SAVEDLISTS&, use the vendor supplied CLEAR.FILE 
command. 
> 
> If you execute say "CREATE.FILE MYUNIXDIR 19", it will create ".Type19" 
within the UNIX directory created - common sense says you should do so 
too. :-)
> 
> UniVerse will always use the correct UMASK you define (which should be 
set in your LOGIN or UV.LOGIN so it is consistently applied for every UV 
process) when you use CREATE.FILE.
> 
> Good practise dictates you should use the tools and processes provided 
by the vendor unless there is a very good reason(s) why you should not. Of 
course, experienced and brave souls...can do as they deem fit.
> 
> I guess as with all advice on here - use it at your own risk - "caveat 
emptor" applies :-)
> 
> Regards
> David
> 
> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tom Whitmore
> Sent: Thursday, 10 March 2011 1:17 AM
> To: U2 Users List
> Subject: Re: [U2] User LogOut Cabbage
> 
> HI,
> You don't need the ".Type19" file.  You can do
>  rm -R \&SAVEDLISTS\&
>  mkdir \&SAVEDLISTS\&
> You do need to make sure the permissions are correct on the directory, 
we have found people not having the correct UMASK so people have trouble 
writing to the directory.
> Tom
> RATEX Business Solutions
> 
> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Hona, David
> Sent: Tuesday, March 08, 2011 8:22 PM
> To: 'U2 Users List'
> Subject: Re: [U2] User LogOut Cabbage
> 
> Are you clearing your &SAVEDLISTS& directory from UNIX (scheduled or 
manually) and then this error appears?
> 
> If so, it is probably deleting the required .Type19 entry (within the 
&SAVEDLISTS& directory.
> 
> Possible solution: purge away, but re-create the .Type19 file using 
'touch .Type19' or the like in your UNIX script. )...refrain from doing 
when you have users logged in too. Perhaps use CLEAR.FILE instead from 
within UV instead?
> 
> Regards,
> David
> 
> 
> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
> Sent: Wednesday, 9 March 2011 9:35 AM
> To: U2 Users List
> Subject: [U2] User LogOut Cabbage
> 
> When a user here logs out of UniVerse on HP-Ux, it comes back with 
repeating...
> 
>Mkpath: @SAVEDLISTS&/&&S.maryann.14 is not a directory
> 
> Suggestions would be appreciated.
> 
> --Bill
> 
> ** IMPORTANT MESSAGE * 
> This e-mail message is intended only for the addressee(s) and contains 
information which may be
> confidential. 
> If you are not the intended recipient please advise the sender by return 
email, do not use or
> disclose the contents, and delete the message and any attachments from 
your system. Unless
> specifically indicated, this email does not constitute formal advice or 
commitment by the sender
> or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its 
subsidiaries. 
> We can be contacted through our web site: commbank.com.au. 
> If you no longer wish to receive commercial electronic messages from us, 
please reply to this
> e-mail by typing Unsubscribe in the subject line. 
> **
> 
> 
> 
> ___
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Uniobjects and java

2011-03-11 Thread Steve Romanow
Check out judaw on github.  He has some wrapper classes with examples.

On Fri, Mar 11, 2011 at 3:04 PM, Doug Chanco  wrote:
> Hey all,
>     I am beginning to use uniobjects and java anyone know/have any good 
> examples of both accessing the data directly and calling subroutines that 
> return data
>
> I have the uniobjects for java manual and I will begin looking at that this 
> week-end but any additional code samples would be greatly appreciated
>
> Thanks
>
> Dougc
>
> 
>
> There are 10 kinds of people in the world, those that know binary and those 
> that do not
>
> On Mar 10, 2011, at 19:54, "Hona, David"  wrote:
>
>> It is my view that you should never manipulate any UniVerse file (even 
>> directories) from outside UniVerse (especially when it is up)...without due 
>> care or being aware of the negative impact, etc.
>>
>> If you must clear &SAVEDLISTS&, use the vendor supplied CLEAR.FILE command.
>>
>> If you execute say "CREATE.FILE MYUNIXDIR 19", it will create ".Type19" 
>> within the UNIX directory created - common sense says you should do so too. 
>> :-)
>>
>> UniVerse will always use the correct UMASK you define (which should be set 
>> in your LOGIN or UV.LOGIN so it is consistently applied for every UV 
>> process) when you use CREATE.FILE.
>>
>> Good practise dictates you should use the tools and processes provided by 
>> the vendor unless there is a very good reason(s) why you should not. Of 
>> course, experienced and brave souls...can do as they deem fit.
>>
>> I guess as with all advice on here - use it at your own risk - "caveat 
>> emptor" applies :-)
>>
>> Regards
>> David
>>
>> -Original Message-
>> From: u2-users-boun...@listserver.u2ug.org 
>> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tom Whitmore
>> Sent: Thursday, 10 March 2011 1:17 AM
>> To: U2 Users List
>> Subject: Re: [U2] User LogOut Cabbage
>>
>> HI,
>> You don't need the ".Type19" file.  You can do
>>              rm -R \&SAVEDLISTS\&
>>              mkdir \&SAVEDLISTS\&
>> You do need to make sure the permissions are correct on the directory, we 
>> have found people not having the correct UMASK so people have trouble 
>> writing to the directory.
>> Tom
>> RATEX Business Solutions
>>
>> -Original Message-
>> From: u2-users-boun...@listserver.u2ug.org 
>> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Hona, David
>> Sent: Tuesday, March 08, 2011 8:22 PM
>> To: 'U2 Users List'
>> Subject: Re: [U2] User LogOut Cabbage
>>
>> Are you clearing your &SAVEDLISTS& directory from UNIX (scheduled or 
>> manually) and then this error appears?
>>
>> If so, it is probably deleting the required .Type19 entry (within the 
>> &SAVEDLISTS& directory.
>>
>> Possible solution: purge away, but re-create the .Type19 file using 'touch 
>> .Type19' or the like in your UNIX script. )...refrain from doing when you 
>> have users logged in too. Perhaps use CLEAR.FILE instead from within UV 
>> instead?
>>
>> Regards,
>> David
>>
>>
>> -Original Message-
>> From: u2-users-boun...@listserver.u2ug.org 
>> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
>> Sent: Wednesday, 9 March 2011 9:35 AM
>> To: U2 Users List
>> Subject: [U2] User LogOut Cabbage
>>
>> When a user here logs out of UniVerse on HP-Ux, it comes back with 
>> repeating...
>>
>>    Mkpath: @SAVEDLISTS&/&&S.maryann.14 is not a directory
>>
>> Suggestions would be appreciated.
>>
>> --Bill
>>
>> ** IMPORTANT MESSAGE *
>> This e-mail message is intended only for the addressee(s) and contains 
>> information which may be
>> confidential.
>> If you are not the intended recipient please advise the sender by return 
>> email, do not use or
>> disclose the contents, and delete the message and any attachments from your 
>> system. Unless
>> specifically indicated, this email does not constitute formal advice or 
>> commitment by the sender
>> or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its 
>> subsidiaries.
>> We can be contacted through our web site: commbank.com.au.
>> If you no longer wish to receive commercial electronic messages from us, 
>> please reply to this
>> e-mail by typing Unsubscribe in the subject line.
>> **
>>
>>
>>
>> ___
>> U2-Users mailing list
>> U2-Users@listserver.u2ug.org
>> http://listserver.u2ug.org/mailman/listinfo/u2-users
> ___
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
>
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] Uniobjects and java

2011-03-11 Thread Doug Chanco
Hey all,
 I am beginning to use uniobjects and java anyone know/have any good 
examples of both accessing the data directly and calling subroutines that 
return data

I have the uniobjects for java manual and I will begin looking at that this 
week-end but any additional code samples would be greatly appreciated 

Thanks

Dougc



There are 10 kinds of people in the world, those that know binary and those 
that do not

On Mar 10, 2011, at 19:54, "Hona, David"  wrote:

> It is my view that you should never manipulate any UniVerse file (even 
> directories) from outside UniVerse (especially when it is up)...without due 
> care or being aware of the negative impact, etc.
> 
> If you must clear &SAVEDLISTS&, use the vendor supplied CLEAR.FILE command. 
> 
> If you execute say "CREATE.FILE MYUNIXDIR 19", it will create ".Type19" 
> within the UNIX directory created - common sense says you should do so too. 
> :-)
> 
> UniVerse will always use the correct UMASK you define (which should be set in 
> your LOGIN or UV.LOGIN so it is consistently applied for every UV process) 
> when you use CREATE.FILE.
> 
> Good practise dictates you should use the tools and processes provided by the 
> vendor unless there is a very good reason(s) why you should not. Of course, 
> experienced and brave souls...can do as they deem fit.
> 
> I guess as with all advice on here - use it at your own risk - "caveat 
> emptor" applies :-)
> 
> Regards
> David
> 
> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org 
> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tom Whitmore
> Sent: Thursday, 10 March 2011 1:17 AM
> To: U2 Users List
> Subject: Re: [U2] User LogOut Cabbage
> 
> HI,
> You don't need the ".Type19" file.  You can do
>  rm -R \&SAVEDLISTS\&
>  mkdir \&SAVEDLISTS\&
> You do need to make sure the permissions are correct on the directory, we 
> have found people not having the correct UMASK so people have trouble writing 
> to the directory.
> Tom
> RATEX Business Solutions
> 
> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org 
> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Hona, David
> Sent: Tuesday, March 08, 2011 8:22 PM
> To: 'U2 Users List'
> Subject: Re: [U2] User LogOut Cabbage
> 
> Are you clearing your &SAVEDLISTS& directory from UNIX (scheduled or 
> manually) and then this error appears?
> 
> If so, it is probably deleting the required .Type19 entry (within the 
> &SAVEDLISTS& directory.
> 
> Possible solution: purge away, but re-create the .Type19 file using 'touch 
> .Type19' or the like in your UNIX script. )...refrain from doing when you 
> have users logged in too. Perhaps use CLEAR.FILE instead from within UV 
> instead?
> 
> Regards,
> David
> 
> 
> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org 
> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
> Sent: Wednesday, 9 March 2011 9:35 AM
> To: U2 Users List
> Subject: [U2] User LogOut Cabbage
> 
> When a user here logs out of UniVerse on HP-Ux, it comes back with 
> repeating...
> 
>Mkpath: @SAVEDLISTS&/&&S.maryann.14 is not a directory
> 
> Suggestions would be appreciated.
> 
> --Bill
> 
> ** IMPORTANT MESSAGE *   
> This e-mail message is intended only for the addressee(s) and contains 
> information which may be
> confidential. 
> If you are not the intended recipient please advise the sender by return 
> email, do not use or
> disclose the contents, and delete the message and any attachments from your 
> system. Unless
> specifically indicated, this email does not constitute formal advice or 
> commitment by the sender
> or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its 
> subsidiaries. 
> We can be contacted through our web site: commbank.com.au. 
> If you no longer wish to receive commercial electronic messages from us, 
> please reply to this
> e-mail by typing Unsubscribe in the subject line. 
> **
> 
> 
> 
> ___
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users