[U2] Inter-Process Control...

2009-02-27 Thread George Hammerle
Does Universe support the WAKE / PAUSE commands? We are a Unidata shop and use these commands to do something very similar to the problem you are trying tackle. Syntax WAKE pid Description The UniBasic WAKE command activates a UniData process (pid) that has been paused with

RE: [U2] AUTOLOGOUT and ON.ABORT

2009-02-27 Thread Perry Taylor
Just a side note on the errlog file... You can increase the number of messages by increasing the MAXERRLOGENT parameter in uvconfig. Perry -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Jacques G. Sent: Thursday,

[U2] Upgrades

2009-02-27 Thread Israel, John R.
We are looking to do a big upgrade on our hardware and software, and I was hoping to get any positive or negative feedback folks might have had. CURRENT HP Ux 11i v1 UniData 6.0.4 SB 5.2 RedBack 4.2.6 DataStage 7.5 PROPOSED HP Ux 11i v3 UniData 7.1.17 SB 5.2.4 U2 WEB DE 4.4

Re: [U2] Upgrades

2009-02-27 Thread Jeff Butera
quote who='Israel, John R.' date='Friday 27 February 2009' We are looking to do a big upgrade on our hardware and software, and I was hoping to get any positive or negative feedback folks might have had. Based on new features, I'd try to shoot for Unidata 7.2.x CURRENT HP Ux 11i v1 UniData

RE: [U2] Inter-Process Control...

2009-02-27 Thread George Gallen
hmmm. Are you running on a unix system? Maybe you could do this with a named pipe. have the waiting program open a named pipe for reading and wait and have the sending program open the named pipe for writing and send the message. George -Original Message- From:

[U2] Strange happening...

2009-02-27 Thread George Gallen
ok...I found this code snipit (REALITY FLAVOR) SELECT FILENAME LOOP READNEXT ID ELSE EXIT WHILE ID DO CODE CODE with GOSUB CODE CODE REPEAT What was happening was the loop was exiting early, but it was exiting after the CODE with GOSUB line was executed. What struck me was why

RE: [U2] Strange happening...

2009-02-27 Thread Edward Brown
If the ID equates to false it will exit - i.e. a record with ID 00 Edward -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of George Gallen Sent: 27 February 2009 14:26 To: Ardent Subject: [U2] Strange happening...

[U2] Is there an online link for Wintergate Manual?

2009-02-27 Thread George Gallen
Similar to the online docs for Universe. George --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/

RE: [U2] Wintergate Manuals

2009-02-27 Thread George Gallen
Great...this answers my Wintergate question as well. George -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2- us...@listserver.u2ug.org] On Behalf Of Dan Fitzgerald Sent: Thursday, February 26, 2009 9:10 PM To: u2-users@listserver.u2ug.org Subject: RE:

RE: [U2] Strange happening...

2009-02-27 Thread George Gallen
that wasn't the case. The id was combination of 13 letters and numbers. The strange part was where the while/do seemed to kick in. The item was read from the file without a problem 3-4 lines of code execute as expected it then executed a gosub, but when it returned, it dropped out of the

[U2] ODBC setup error

2009-02-27 Thread u2ug
We have an account setup to allow odbc access to specific files. We added access to a new file and ran HS.UPDATE.FILEINFO which processed a few files but then aborted the session with that old standard : Abnormal termination of UniVerse Fault type is 11. Layer type is Unknown. The files

RE: [U2] Is there an online link for Wintergate Manual?

2009-02-27 Thread Carl Dula
All documentation is here: http://www-01.ibm.com/software/data/u2/pubs/library/ -- Carl Dula Voice: 973-227-8440 X111 Pulsar Systems, Inc.Fax: 973-227-8440 271 Route 46 West, Suite H209

RE: [U2] Strange happening...

2009-02-27 Thread David A. Green
I would follow it line-by-line with the debugger. Thanks, David A. Green www.dagconsulting.com (480) 813-1725 -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of George Gallen Sent: Friday, February 27, 2009 8:21 AM To:

[U2] DO/WHILE vs IF THEN

2009-02-27 Thread George Gallen
OK Aside from programming styles Is there any functional difference between WHILE expression DOand IF NOT(expression) THEN EXIT and UNTIL expression DOand IF expression THEN EXIT First I thought that the DO/WHILE would activate as soon as the condition occurred and drop out of

RE: [U2] Strange happening...

2009-02-27 Thread George Gallen
What was strange, is the code worked fine during other runs (with different files being read), but it was consistant that is always stopped with that one file at the 6th record. I didn't use the debugger, but when I get a chance, I'll uncomment the line and retest it, and use the debugger to get

RE: [U2] Strange happening...

2009-02-27 Thread Edward Brown
It looks like it's already been followed within the debugger to get the information given by George below. One possibility is that the gosub'd code is doing a CLEARSELECT under some circumstances, or something else that destroys the list? Possibly also the gosub'd code has a GO that's destroying

Re: [U2] Strange happening...

2009-02-27 Thread Allen Egerton
George Gallen wrote: ok...I found this code snipit (REALITY FLAVOR) SELECT FILENAME LOOP READNEXT ID ELSE EXIT WHILE ID DO CODE CODE with GOSUB CODE CODE REPEAT What was happening was the loop was exiting early, but it was exiting after the CODE with GOSUB line

Re: [U2] AUTOLOGOUT and ON.ABORT

2009-02-27 Thread Mike Roosa
I was under the impression that the errlog only existed on unix systems. Maybe I'm wrong on this but I can't find it anywhere on our system. On Fri, Feb 27, 2009 at 1:17 AM, Jacques G. jacque...@yahoo.com wrote: If you turn on the errlog file in /u1/uv you may get a message in there for an

[U2] RE: DO/WHILE vs IF THEN

2009-02-27 Thread Israel, John R.
If you might also want to play with putting the WHILE... line just before the REPEAT. This would be dependent upon your actual program (might need to consider if the loop starts with a failed condition). Your mileage may vary. John Israel -Original Message- From:

Re: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Martin Phillips
Hi George, Is there any functional difference between WHILE expression DOand IF NOT(expression) THEN EXIT and UNTIL expression DOand IF expression THEN EXIT None at all. Use of WHILE/UNTIL is sometimes easier to read. Conversely, some exit conditions can only be done using

Re: [U2] AUTOLOGOUT and ON.ABORT

2009-02-27 Thread Martin Phillips
Hi Mike, I was under the impression that the errlog only existed on unix systems. Maybe I'm wrong on this but I can't find it anywhere on our system. The errlog file is on Windows too but, just as on Unix, you need to create an empty errlog file in the UV account directory to enable the

Re: [U2] ODBC setup error

2009-02-27 Thread Anthony W. Youngman
In message 47c1b98393896f41a7bfe435442394e510f...@gmsdc.gerzio.ca, u2ug simpson-u...@gerzio.ca writes We have an account setup to allow odbc access to specific files. We added access to a new file and ran HS.UPDATE.FILEINFO which processed a few files but then aborted the session with that old

[U2] RE: DO/WHILE vs IF THEN

2009-02-27 Thread George Gallen
I hadn't really played much with RAID/VLIST, so I guess this is my springboard.. VLISTING the WHILE/DO vs IF THEN yielded some interesting results WHILE/DO 3 6 : 1C2 vec_addCTR 1 = CTR 5 E : 10C nop 5 00010 : 0DC lt CTR 4 = $R0 5 00018 : 2DE testfw

Re: [U2] Strange happening...

2009-02-27 Thread Dave Taylor
George, Edward, Just a shot in the dark - prompted by Edwards comment something else that destroys the list. We found on UniData that, when a SELECT statement creates a list outside of the program issuing the SELECT, any other SELECT statement issued by the same user in the same or any

Re: [U2] Common UNIX Printing System

2009-02-27 Thread Dave Taylor
Yes, we're using CUPS on Universe on RHEL 5.x. Dave Taylor Sysmark Information Systems, Inc. Authorized IBM Business Partner 49 Aspen Way Rolling Hills Estates, CA 90274 (O) 800-SYSMARK (800-797-6275) (F) 310-377-3550 (C) 310-561-5200 www.sysmarkinfo.com - Original Message - From:

Re: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Jacques G.
CTR =0 LOOP WHILE CTR 4 CTR+=1 PRINT CTR REPEAT FOR CTR = 0 TO 4 PRINT CTR NEXT CTR CTR = 0 LOOP CTR += 1 PRINT CTR IF CTR 4 THEN EXIT REPEAT If you're going to use a counter, might as well use a for loop. Your test didn't work because you didn't test the limit after each

RE: [U2] Strange happening...

2009-02-27 Thread George Gallen
-Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2- us...@listserver.u2ug.org] On Behalf Of Allen Egerton Sent: Friday, February 27, 2009 11:37 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Strange happening... While the code itself is less than

Re: [U2] Strange happening...

2009-02-27 Thread Jacques G.
In the example of code you have, the loop will exit if your key (variable ID) is equal to an empty string or a string that can be evaluated to zero for example values like these: 0E1,0E10, 0E100 (on Universe) (empty string) Will make the loop end: SELECT FILENAME LOOP READNEXT ID

RE: [U2] ODBC setup error

2009-02-27 Thread u2ug
Thanks for the response : Versions : uv 10.2.11 on hpux B.11.31 I tried : LISTF SELECT VOC WITH TYPE = F Q SORT VOC WITH TYPE = F Q SORT VOC WITH TYPE = F Q BY F2 Even ignoring system files ( those automatically added to HS_FILE_ACCESS ) nothing matches the order

RE: [U2] ODBC setup error

2009-02-27 Thread u2ug
For anyone that is interested, from the wiki The following program should be substituted for HS.UPDATE.FILEINFO 0001: CALL *HS.FILEINFO( RESULT, REFRESH, 1) 0002: PRINT RESULT 0003:END This gives you a verbose step by step of what is happening. It turns out that

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread George Gallen
actually, my test did work. I was testing to see if the loop would end when the condition was met and it wasn't being tested directly. It was only a test, and not meant to be a counter loop, just that is was in a loop, and each increment after 3 was printed to show it was still inside the loop

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread David A. Green
George, In my opinion you lose the elegance and readability of the LOOP construct when you use EXIT. Code is easier to debug and enhance when Loops and Subroutines have one entry and one exit. Thanks, David A. Green www.dagconsulting.com (480) 813-1725 -Original Message- From:

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Israel, John R.
I agree completely with David. I make it a habit to have one way in and one way out for my loops and subroutines. It makes it much easier to enhance/debug in the future (which is what most of us spend most of our time doing). I will not say I NEVER break this rule, but it is rare. John

RE: [U2] Strange happening...

2009-02-27 Thread Lettau, Jeff
Can You SELECT File TO 1 To assign the selection to a list number, as the default list number is 0 it would cut down on the chances of the list being used by something else? Just make sure at the end you PERFORM DELETE.LIST 1 so it's not hanging around. Jeffrey Lettau ERP Systems Manager

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Nick Gettino
See below. Nicholas M Gettino | Director of Development | EnRoute Emergency Systems, an Infor company | office: 813-207-6998 | fax: 678-393-5389 nick.gett...@infor.com | www.enroute911.com First time through... Example: 0001: CTR=0 0002: LOOP First pass

[U2] [UV] Deciphering Pick

2009-02-27 Thread Peter Veenhof
Hi all, Does anyone have anything like described below that will read Universe PICK code and then proceed to aid in flowchart creation whether it creates some kind of map file or a Visio even better? Thanks, Peter -Original Message- From: owner-u2-us...@listserver.u2ug.org

Re: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Dianne Ackerman
I actually think, from the distant reaches of my memory, that this might behave differently depending on the uv flavor... -Dianne Nick Gettino wrote: See below. Nicholas M Gettino | Director of Development | EnRoute Emergency Systems, an Infor company | office: 813-207-6998 | fax:

Re: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread MAJ Programming
I should offer a contrary opinion. I support many sets of differently developed code with all my clients. When properly indented, the EXIT is a logical way to conclude the visit in the loop without labeling the REPEAT or introducing other DONE 'style' variables. The code actually shrinks by a few

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread George Gallen
What my test program was to show, is that the WHILE/DO will only end the loop if the condition is not met when execution is on the WHILE/DO line (line 4). In other words, the loop will not be ended when CTR3, but rather when CTR3 AND it is being checked by the WHILE/DO Line. I was testing that

Re: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Jeff Schasny
I use exit as my single point out by not including a WHILE or UNTIL. SELECT YADAYADA LOOP READNEXT KEY ELSE EXIT Do Stuff Do Stuff REPEAT Israel, John R. wrote: I agree completely with David. I make it a habit to have one way in and one way out for my loops and subroutines. It makes

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Israel, John R.
In all your examples, you support my position. 1 way in, 1 way out. Though to your point, you have clean, concise clean code. John Israel -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of MAJ Programming Sent: Friday,

[U2] unsubscribe * {sajaw...@vercom.com}

2009-02-27 Thread Jaweed
-Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Peter Veenhof Sent: Friday, February 27, 2009 1:36 PM To: u2-users@listserver.u2ug.org Subject: [U2] [UV] Deciphering Pick Hi all, Does anyone have anything like

Re: [U2] AUTOLOGOUT and ON.ABORT

2009-02-27 Thread Mike Roosa
Ok, so I just create a type 18 file called ERRLOG in the UV account and restart universe? On Fri, Feb 27, 2009 at 11:59 AM, Martin Phillips martinphill...@ladybridge.com wrote: Hi Mike, I was under the impression that the errlog only existed on unix systems. Maybe I'm wrong on this but I

Re: [U2] Upgrades

2009-02-27 Thread Adrian Merrall
On Sat, Feb 28, 2009 at 2:13 AM, Israel, John R. johnisr...@daytonsuperior.com wrote: We are looking to do a big upgrade on our hardware and software, and I was hoping to get any positive or negative feedback folks might have had. UD 6 to UD7.1 was painless. Props to IBM, it has been a long

Re: [U2] AUTOLOGOUT and ON.ABORT

2009-02-27 Thread Perry Taylor
#touch $(cat /.uvhome)/errlog - Original Message - From: owner-u2-us...@listserver.u2ug.org owner-u2-us...@listserver.u2ug.org To: u2-users@listserver.u2ug.org u2-users@listserver.u2ug.org Sent: Fri Feb 27 15:55:22 2009 Subject: Re: [U2] AUTOLOGOUT and ON.ABORT Ok, so I just create a

Re: [U2] AUTOLOGOUT and ON.ABORT

2009-02-27 Thread Jacques G.
On unix it's an empty file (size zero) we create: EI: touch errlog On a windows the equivalent would probably be (from dos prompt when in the uv account): copy con errlog ^Z 1 file(s) copied. (After typing CTRL-Z you press[RETURN]) I haven't used the errlog in Universe for Windows though.