RE: [U2] [UV] How to return 'column' from dyn array?

2004-08-18 Thread Ian McGowan
From: Barry Brevik [mailto:[EMAIL PROTECTED] Yeah. I'm working on some code I inherited. I was banging my head trying to figure out why the author setup his array 'backwards'. Maybe *I'm* backwards, and that is a legitimate technique, but my brain does not want to go there. I think

RE: [U2] [UD] Sorting

2004-08-20 Thread Ian McGowan
From: Alfke, Colin [mailto:[EMAIL PROTECTED] Please note two things: 1. The resulting list (in this case) has only unique dates - it strips the duplicates Bzzt! LOCATE(THIS.DATE,NEW.DATES,1;PTR;'AR') ELSE NULL NEW.DATES = INSERT(NEW.DATES,1,PTR,0,THIS.DATE) No matter what, THIS.DATE

RE: [U2] [UD] Sorting

2004-08-20 Thread Ian McGowan
From: Shawn Waldie [mailto:[EMAIL PROTECTED] Thank you for your thoughts, gentlemen. This is what I wrote before the suggestions reached me: WRITELIST XL.NEW.LIST ON X.SAVEDLIST EXECUTE X.SORT.SAVEDLIST GETLIST X.SAVEDLIST TO 1 THEN READLIST XL.SORTED.DATES FROM 1 ELSE

RE: [U2] Unidata - emulate enter key

2004-08-26 Thread Ian McGowan
DATA -Original Message- From: Chauhan, Savita [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 10:24 AM To: [EMAIL PROTECTED] Subject: [U2] Unidata - emulate enter key Hi, I am working on UniData and want to emulate the user pressing the 'Enter' key. I want to

RE: [U2] Unclassified:[UV] How are the TCL dot commands impleme nted?

2004-08-30 Thread Ian McGowan
Seems like every pick programmer has written their own TCL replacement :-) Mine is at: http://www.pickwiki.com/cgi-bin/wiki.pl?TclStack Though it seems like a lot of trouble if the only problem is .S leaving null items in the VOC. Wouldn't a cron job, or something in the login script that

RE: [U2] [Unix] creation date/time

2004-08-30 Thread Ian McGowan
If your system doesn't have the stat or fstat command, this small program may do: #include sys/stat.h main(int argc,char**argv) { struct stat buf; char d[256]; stat(argv[1],buf); strftime(d, sizeof(d), %D, localtime(buf.st_ctime)); printf(%s\n, d); } (error checking removed)

RE: [U2] [Unix] creation date/time

2004-08-31 Thread Ian McGowan
year. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 7:35 PM To: [EMAIL PROTECTED] Subject: RE: [U2] [Unix] creation date/time Ian McGowan wrote: If your system doesn't have the stat or fstat command, this small program

RE: [U2] [Unix] creation date/time

2004-08-31 Thread Ian McGowan
st_atime is the date/time the file was last accessed. Nobody has yet suggested using this information Karl. ls will report st_atime if you use the -u option ls -lu. Presumably u is for used since -a was already allocated a meaning. And since this is basically useless information and

RE: [U2] Unidata shared memory and catalogs

2004-09-03 Thread Ian McGowan
From: Richard Sammartino [mailto:[EMAIL PROTECTED] Tony, I have experienced the same issues and I don't think there is a solution. Our menu is a cataloged program which chains or executes other cataloged programs. I don't know about the performance impact, but a TCL stacker program has

RE: [U2] UVODBC first query

2004-09-09 Thread Ian McGowan
A common cause of long delays when first connecting is reverse dns lookups. Your PC is 192.168.1.100 and you're telneting to a server. It does a lookup of 192.168.1.100 to record the host name and it can take a while for dns to come back that it doesn't exist. The dns query is cached, so

RE: [U2] [UD] - I-Desc IF, THEN, ELSE or SUBR -IFS

2004-09-21 Thread Ian McGowan
From: Hruby, Paul [mailto:[EMAIL PROTECTED] FileOne has a Muli-value Attribute1 that contains a list of items. FILEONE ID= 12345 KEYTWO= 001^002^003 FileTwo's ID is comprised of FileOne's ID and FileOne Attribute1 (KEYTWO)example: FILETWO ID= 12345*001 ID= 12345*002

RE: [U2] [UD] - I-Desc IF, THEN, ELSE or SUBR -IFS

2004-09-21 Thread Ian McGowan
From: Glenn Herbert [mailto:[EMAIL PROTECTED] Ahhh, forgot about that one, though I think that the SUBR isn't actually necessary since the DICT compiler (cdict) recognizes SPLICEdirectly (though the SUBR version does work): SPLICE(REUSE(@ID),REUSE(*),FILETWO) SPLICE is very nifty.

RE: [U2] Editors (was: Comparison Unidata and Universe)

2004-09-23 Thread Ian McGowan
From: djordan [mailto:[EMAIL PROTECTED] I occasionaly need to edit a type 1 file of around 30-50 megabytes. The problem is most editors want to load the file into memory before working on it. Does anyone know an editor that would handle big files like this Emacs can handle 128MB files

RE: [U2] Editors [TEXTPAD]

2004-09-24 Thread Ian McGowan
From: Don Verhagen [mailto:[EMAIL PROTECTED] Speaking of Textpad. I use this. Does anyone have a syntax file for UD using Textpad? There's one for UV and Pick at http://www.textpad.com/add-ons/synu2z.html http://www.textpad.com/add-ons/synn2t.html Both are fine in the light testing I've

RE: [U2] Accessing Oracle from uniVerse-Basic

2004-10-05 Thread Ian McGowan
From: Carolina Lizama [mailto:[EMAIL PROTECTED] I need to access Oracle from UniVerse using a Basic program. I am thinking of 2 Options. 1. Through ODBC - I am not sure whether it will be possible at all. Whether the UniVerse ODBC driver comes along with the basic Universe package.

RE: [U2] Finding last day of month

2005-06-02 Thread Ian McGowan
Need to take month mod 12, when adding... D=20040203 Y=D[1,4] M=D[5,2] M+=1 IF M12 THEN M=1;Y+=1 NEXT.M=ICONV(M:/01/:Y,D4/)-1 PRINT OCONV(NEXT.M,D4Y):OCONV(NEXT.M,DM):OCONV(NEXT.M,DD) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marco Manyevere

RE: [U2] Using httpout / UV based webserver / images?

2005-06-17 Thread Ian McGowan
From [EMAIL PROTECTED] George, do you, or would you be willing to, have your code up on the pickwiki ? Not to discourage anyone from posting on pickwiki, but Glen's new site http://mvdevcentral.com/ has much better support for code submissions - the wiki format doesn't really lend itself

RE: [U2] Field Count from a Seq File

2005-06-21 Thread Ian McGowan
EXECUTE !wc -l :PATH.TO.FILE CAPTURING NUM.LINES ;* or is is PCPERFORM on uv?) You *must* loop thru the file to get the number of lines, but at least this way you are looping in a compiled rather than interpreted language... Ian -Original Message- From: [EMAIL PROTECTED]

RE: [U2] Custom Functions

2005-06-23 Thread Ian McGowan
Ouch. Granted my function opens a file and [currently, for debug] prints to the screen, but attempting to call it with SUBR from an I-Descriptor caused... '25945 Bus error' and left the session unresponsive. I don't get the example as posted - seems like F.FILE doesn't get saved anywhere

RE: [U2] Printing PDF from UniData/AIX

2005-07-01 Thread Ian McGowan
Is there a way to print PDF files from AIX using a command from UniData? If you have a postscript printer you could always use pdf2ps to convert to ps and then print that. There's probably a creative way to convert from ps to pcl if you don't have postscript printers. Probably need

RE: [U2] Printing PDF from UniData/AIX

2005-07-01 Thread Ian McGowan
The printers are connected to the network JetDirect cards, and some of them are old (e.g., HP 4+). I don't know how to use cat to send data to an IP address, or I would have tried that. OT for the original question, but netcat [1] can do this handily. #cat file | nc 192.168.1.1 9100 [1]

RE: [U2] Basic questions from a noob

2005-07-07 Thread Ian McGowan
How can I find out which version I am running? Run VERSION from TCL (aka the colon prompt, aka ECL) --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/