RE: [U2] UV FILEINFO( Fvar, FINFO$HDRLAYOUT ) gone at 10.1, 10.2?

2006-12-16 Thread Ray Wurlod
Was FINFO$HDRLAYOUT *ever* documented in the manuals?  I only learned about it 
on this list, a post by Glenn Herbert after he'd implemented it.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV FILEINFO( Fvar, FINFO$HDRLAYOUT ) gone at 10.1, 10.2?

2006-12-01 Thread Stevenson, Charles
Thank-you all for checking this for me.
Existing 10.0 functionality is preserved at 10.1 & 10.2.
It's a "sin of omission" in the documentation.  I suspected that, since
one of the footers were wrong on those pages on the 10.2 documentation,
too.  Somebody messed up editing.  And I had not heard of any file
structure changes, so why would they stop backward compatibility?

I will use it with impunity.
Thanks again.
 __

Dear [EMAIL PROTECTED]:

I have cc'd you so that you can forward this to whoever handles the
documentation.
The original post is reproduced below (In violation of to u2-users'
posting standards. Sorry.)

Chuck Stevenson


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Stevenson, Charles
> Sent: Thursday, November 30, 2006 1:23 PM
> To: u2-users@listserver.u2ug.org
> Subject: [U2] UV FILEINFO( Fvar, FINFO$HDRLAYOUT ) gone at 10.1, 10.2?
> 
> After 10.0, does UNIVERSE.INCLUDE FILEINFO.H still have
>EQUATE FINFO$HDRLAYOUT TO 99
> followed by a section of FH$... equates?
> The documentation, by a sin of omission, suggests otherwise.
> 
> 
> Here's a little test program demoing it at 10.0.
> Does it work the same at 10.1? 10.2?   I hope so.
> 
> >CT CDS.BP FHTST
> 
>  FHTST
> 0001 $INCLUDE UNIVERSE.INCLUDE FILEINFO.H
> 0002 OPEN 'VOC' TO FVAR ELSE STOP 201
> 0003 LAYOUT = FILEINFO( FVAR, FINFO$HDRLAYOUT )
> 0004 CRT 'LAYOUT=':DQUOTE(LAYOUT)
> 0005 CRT QUOTE( LAYOUT< FH$REVISION >)
> 0006 CRT QUOTE( LAYOUT< FH$MODULUS >)
> 0007 CRT QUOTE( LAYOUT< FH$SEPARATION >)
> 0008 CRT QUOTE( LAYOUT< FH$FILETYPE >)
> >
> >RUN CDS.BP FHTST
> LAYOUT="0}4~12}4~16}4~4}4~20}4~28}4~32}56~72}4~76}4~80}4~36}4~
> 44}4~52}4~
> 68}4~84}4~60}4~92}4~100}4128}72~128}4~132}4~136}4~
> 140}4~144}
> 4~148}4~152}4~156}4~160}4~164}4~168}4~172}4~176}4~180}4~184}4~
> 188}4~192}
> 4~196}4~200}4~204}32~~276}4~280}4~284}4~288}4~292}8~30
0}4~304}32
> ~~364}4~368}4~372}4~380}4~~576}256~~516}4~520}4~83
2}64~544}4
> ~548}4~552}4~556}4~896}128"
> "0}4"
> "12}4"
> "16}4"
> "4}4"
> >
> >.L RELLEVEL
> 
>  RELLEVEL
> 001 X
> 002 10.0.16
> 003 PICK
> 004 PICK.FORMAT
> 005 10.0.16
> >
> 
> 
> That functionality has been eliminated, if the documentation 
> sets are right.  (I'm guessing not.) I only have UV10.0 
> running and I was hoping someone could check out 10.1 & 10.2 for me.
> @ 10.0  FILEINFO( filevar, 99 )  returned a dynamic array 
> representing the layout of the file's header.
> Compare:
>10.0 Basic, pg. 11-258
>10.1 Basic Commands Ref, pg 272
>10.2 Basic Commands Ref, pg 275
> 
> 
> The 10.1 "New features" lists a couple FILEINFO-related 
> items,  but it does not say the header layout functionality 
> was going to be deleted.
> 
> 
> 
> @ 10.0  UNIVERSE.INCLUDE FILEINFO.H has the following.
> @ 10.1  & 10.2 is it still there? :
>  
> 0048: EQUATE FINFO$HDRLAYOUTto 99  ;* Special key to retrieve
> hdr layout
> 0049: 
> 0050: ** These EQUATES are used with the FILEINFO function when a user
> 0051: ** requests the FINFO$HDRLAYOUT key.  The values here 
> are 1 greater
> 0052: ** then their 'C' counterpart (in filehdr.h), since 
> these are used as
> 0053: ** field indexes into a dynamic array.  Do not change 
> these without
> 0054: ** changing those in filehdr.h
> 0055: 
> 0056: EQUATE FH$REVISIONTO 1
> 0057: EQUATE FH$MODULUS TO 2
> 0058: EQUATE FH$SEPARATION  TO 3
> 0059: EQUATE FH$FILETYPETO 4
> 0060: EQUATE FH$INDEXFLAGS  TO 5
> 0061: EQUATE FH$FREECHAIN   TO 6
> 0062: EQUATE FH$T30INFOALL  TO 7
> 0063: EQUATE FH$T30TYPE TO 8
> 0064: EQUATE FH$T30SPLITTO 9
> 0065: EQUATE FH$T30MERGETO 10
> 0066: EQUATE FH$T30CURMOD   TO 11
> 0067: EQUATE FH$T30BASEMOD  TO 12
> 0068: EQUATE FH$T30LARGEREC TO 13
> 0069: EQUATE FH$T30CURRLOAD TO 14
> 0070: EQUATE FH$T30SELECTCNTTO 15
> 0071: EQUATE FH$T30NEXTSPLITTO 16
> 0072: EQUATE FH$SICADATATO 17
> 0073: EQUATE FH$PARTBLOCK   TO 18
> 0074: 
> 0075: EQUATE FH$STATALL TO 30
> 0076: EQUATE FH$STAT01  TO 31
> 0077: EQUATE FH$STAT02  TO 32
> 0078: EQUATE FH$STAT03  TO 33
> 0079: EQUATE FH$STAT04  TO 34
> 0080: EQUATE FH$STAT05  TO 35
> 0081: EQUATE FH$STAT06  TO 36
> 0082: EQUATE FH$STAT07  TO 37
> 0083: EQUATE FH$STAT08  TO 38
> 0084: EQUATE FH$STAT09  TO 39
> 0085: EQUATE FH$STAT10  TO 40
> 0086: EQUATE FH$STAT11  TO 41
> 0087: EQUATE FH$STAT12  TO 42
> 0088: EQUATE FH$STAT13  TO 43
> 0089: EQUATE FH$STAT14  TO 44
> 0090: EQUATE FH$STAT15  TO 45
> 0091: EQUATE FH$STAT16  TO 46
> 0091: EQUATE FH$STAT16  TO 46
> 0092: EQUATE FH$STAT17  TO 47
> 0093: EQUATE FH$STAT18  TO 48
> 00

RE: [U2] UV FILEINFO( Fvar, FINFO$HDRLAYOUT ) gone at 10.1, 10.2?

2006-12-01 Thread Hennessey, Mark F.


After 10.0, does UNIVERSE.INCLUDE FILEINFO.H still have
   EQUATE FINFO$HDRLAYOUT TO 99
followed by a section of FH$... equates?
The documentation, by a sin of omission, suggests otherwise.



The FILEINFO.H file in UV 10.2 appears to be the same as 10.0.8 except with the 
addition of FINFO$ENCINFO for ecryption. The FH$... stuff is all the same.

>From the 10.2 file:

0054: EQUATE FINFO$HDRLAYOUTto 99  ;* Special key to retrieve hdr layout
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV FILEINFO( Fvar, FINFO$HDRLAYOUT ) gone at 10.1, 10.2?

2006-11-30 Thread Bob Woodward
It's still in 10.1.11.  Looks like it always has...

BobW
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stevenson,
Charles
Sent: Thursday, November 30, 2006 1:23 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] UV FILEINFO( Fvar, FINFO$HDRLAYOUT ) gone at 10.1, 10.2?

After 10.0, does UNIVERSE.INCLUDE FILEINFO.H still have
   EQUATE FINFO$HDRLAYOUT TO 99
followed by a section of FH$... equates?
The documentation, by a sin of omission, suggests otherwise.


Here's a little test program demoing it at 10.0.
Does it work the same at 10.1? 10.2?   I hope so.

>CT CDS.BP FHTST

 FHTST
0001 $INCLUDE UNIVERSE.INCLUDE FILEINFO.H
0002 OPEN 'VOC' TO FVAR ELSE STOP 201
0003 LAYOUT = FILEINFO( FVAR, FINFO$HDRLAYOUT )
0004 CRT 'LAYOUT=':DQUOTE(LAYOUT)
0005 CRT QUOTE( LAYOUT< FH$REVISION >)
0006 CRT QUOTE( LAYOUT< FH$MODULUS >)
0007 CRT QUOTE( LAYOUT< FH$SEPARATION >)
0008 CRT QUOTE( LAYOUT< FH$FILETYPE >)
>
>RUN CDS.BP FHTST
LAYOUT="0}4~12}4~16}4~4}4~20}4~28}4~32}56~72}4~76}4~80}4~36}4~44}4~52}4~
68}4~84}4~60}4~92}4~100}4128}72~128}4~132}4~136}4~140}4~144}
4~148}4~152}4~156}4~160}4~164}4~168}4~172}4~176}4~180}4~184}4~188}4~192}
4~196}4~200}4~204}32~~276}4~280}4~284}4~288}4~292}8~300}4~304}32
~~364}4~368}4~372}4~380}4~~576}256~~516}4~520}4~832}64~544}4
~548}4~552}4~556}4~896}128"
"0}4"
"12}4"
"16}4"
"4}4"
>
>.L RELLEVEL

 RELLEVEL
001 X
002 10.0.16
003 PICK
004 PICK.FORMAT
005 10.0.16
>


That functionality has been eliminated, if the documentation sets are
right.  (I'm guessing not.)
I only have UV10.0 running and I was hoping someone could check out 10.1
& 10.2 for me.
@ 10.0  FILEINFO( filevar, 99 )  returned a dynamic array representing
the layout of the file's header.
Compare:
   10.0 Basic, pg. 11-258
   10.1 Basic Commands Ref, pg 272
   10.2 Basic Commands Ref, pg 275


The 10.1 "New features" lists a couple FILEINFO-related items,  but it
does not say the header layout functionality was going to be deleted.



@ 10.0  UNIVERSE.INCLUDE FILEINFO.H has the following.
@ 10.1  & 10.2 is it still there? :
 
0048: EQUATE FINFO$HDRLAYOUTto 99  ;* Special key to retrieve
hdr layout
0049: 
0050: ** These EQUATES are used with the FILEINFO function when a user
0051: ** requests the FINFO$HDRLAYOUT key.  The values here are 1
greater
0052: ** then their 'C' counterpart (in filehdr.h), since these are used
as 
0053: ** field indexes into a dynamic array.  Do not change these
without
0054: ** changing those in filehdr.h
0055: 
0056: EQUATE FH$REVISIONTO 1
0057: EQUATE FH$MODULUS TO 2
0058: EQUATE FH$SEPARATION  TO 3
0059: EQUATE FH$FILETYPETO 4
0060: EQUATE FH$INDEXFLAGS  TO 5
0061: EQUATE FH$FREECHAIN   TO 6
0062: EQUATE FH$T30INFOALL  TO 7
0063: EQUATE FH$T30TYPE TO 8
0064: EQUATE FH$T30SPLITTO 9
0065: EQUATE FH$T30MERGETO 10
0066: EQUATE FH$T30CURMOD   TO 11
0067: EQUATE FH$T30BASEMOD  TO 12
0068: EQUATE FH$T30LARGEREC TO 13
0069: EQUATE FH$T30CURRLOAD TO 14
0070: EQUATE FH$T30SELECTCNTTO 15
0071: EQUATE FH$T30NEXTSPLITTO 16
0072: EQUATE FH$SICADATATO 17
0073: EQUATE FH$PARTBLOCK   TO 18
0074: 
0075: EQUATE FH$STATALL TO 30
0076: EQUATE FH$STAT01  TO 31
0077: EQUATE FH$STAT02  TO 32
0078: EQUATE FH$STAT03  TO 33
0079: EQUATE FH$STAT04  TO 34
0080: EQUATE FH$STAT05  TO 35
0081: EQUATE FH$STAT06  TO 36
0082: EQUATE FH$STAT07  TO 37
0083: EQUATE FH$STAT08  TO 38
0084: EQUATE FH$STAT09  TO 39
0085: EQUATE FH$STAT10  TO 40
0086: EQUATE FH$STAT11  TO 41
0087: EQUATE FH$STAT12  TO 42
0088: EQUATE FH$STAT13  TO 43
0089: EQUATE FH$STAT14  TO 44
0090: EQUATE FH$STAT15  TO 45
0091: EQUATE FH$STAT16  TO 46
0091: EQUATE FH$STAT16  TO 46
0092: EQUATE FH$STAT17  TO 47
0093: EQUATE FH$STAT18  TO 48
0094: EQUATE FH$NLSSORTCUM  TO 49
0095: EQUATE FH$NLSSORTMAP  TO 50
0096: 
0097: EQUATE FH$TLFILNUMTO 61
0098: EQUATE FH$pTLFILNUM   TO 62
0099: EQUATE FH$TLFLAGS TO 63
0100: EQUATE FH$CHKPOINTTO 64
0101: EQUATE FH$TXWARMLSN   TO 65
0102: EQUATE FH$NLSMAPCSUM  TO 66
0103: EQUATE FH$NLSMAPNAME  TO 67
0104: 
0105: EQUATE FH$CLEARTIME   TO 81
0106: EQUATE FH$BAKTIME TO 82
0107: EQUATE FH$BAKFLGS TO 83
0108: EQUATE FH$BAKCNT  TO 84
0109: EQUATE FH$INDEXPATH   TO 86
0110: EQUATE FH$MKDBSTAMP   TO 88
0111: EQUATE FH$UVREADONLY  TO 89
0112: EQUATE FH$UVSCHEMATO 90
0113: EQUATE FH$IDXCOLCNT   TO 91
0114: EQUATE FH$IDXCOLMAP   TO 92
0115: EQUATE FH$UDRFLAGSTO 93
0116

RE: [U2] UV FILEINFO( Fvar, FINFO$HDRLAYOUT ) gone at 10.1, 10.2? {Unclassified}

2006-11-30 Thread HENDERSON MIKE, MR
Charles,

I have 10.1.18 (Windows) and the UNIVERSE.INCLUDE FILEINFO.H entries 
you are worried about are still there in the source code!
:-)

I ran your sample code and got what appears to be exactly the same
outputs.


Mike


> -Original Message-
> From: [EMAIL PROTECTED] On Behalf Of Stevenson,
Charles
> Sent: Friday, 1 December 2006 10:23
> To: u2-users@listserver.u2ug.org
> Subject: [U2] UV FILEINFO( Fvar, FINFO$HDRLAYOUT ) gone at 10.1, 10.2?
> 
> After 10.0, does UNIVERSE.INCLUDE FILEINFO.H still have
>EQUATE FINFO$HDRLAYOUT TO 99
> followed by a section of FH$... equates?
> The documentation, by a sin of omission, suggests otherwise.
> 
The information contained in this Internet Email message is intended
for the addressee only and may contain privileged information, but not
necessarily the official views or opinions of the New Zealand Defence Force.
If you are not the intended recipient you must not use, disclose, copy or 
distribute this message or the information in it.

If you have received this message in error, please Email or telephone
the sender immediately.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2][UV]FILEINFO

2004-11-23 Thread Stu Glancy
I searched many places trying to find documentation on FILEINFO but not 
HELP BASIC FILEINFO.  I feel like an idiot.  Thanks Ray and Tom.

Ray Wurlod wrote:
FILEINFO() is a function that returns various items of information from an open 
file.
Read all about it in the BASIC manual or HELP BASIC FILEINFO.
---
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][UV]FILEINFO

2004-11-22 Thread Ray Wurlod
FILEINFO() is a function that returns various items of information from an open 
file.
Read all about it in the BASIC manual or HELP BASIC FILEINFO.
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2][UV]FILEINFO

2004-11-22 Thread Tom Dodds
Stu, if you are talking UniVerse anyway, it is actually a part of basic, I
don't know about UniData.  

Do a HELP BASIC FILEINFO() and it will lead you through it's uses.

Tom Dodds
[EMAIL PROTECTED]
630-235-2975 Cell
708-482-4510 Office
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stu Glancy
Sent: Monday, November 22, 2004 3:36 PM
To: [EMAIL PROTECTED]
Subject: RE:[U2][UV]FILEINFO


Just curious.  Does anyone know about the "FILEINFO" program?  When is 
it run?  What does it do?  I found a reference to this in the fixes for 
UV-10.1.4.
---
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][UV]FILEINFO

2004-11-22 Thread Marilyn Hilb
In Unidata we used it to check if a file was already opened to save on opening 
it up again. 

Thanks,

Marilyn A. Hilb 
Value Part, Inc
Direct: 847-918-6099
Fax: 847-367-1892
[EMAIL PROTECTED]
www.valuepart.com

 -Original Message-
From:   Stu Glancy [mailto:[EMAIL PROTECTED] 
Sent:   Monday, November 22, 2004 3:36 PM
To: [EMAIL PROTECTED]
Subject:RE:[U2][UV]FILEINFO

Just curious.  Does anyone know about the "FILEINFO" program?  When is 
it run?  What does it do?  I found a reference to this in the fixes for 
UV-10.1.4.
---
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][UV]FILEINFO

2004-11-22 Thread Stu Glancy
Just curious.  Does anyone know about the "FILEINFO" program?  When is 
it run?  What does it do?  I found a reference to this in the fixes for 
UV-10.1.4.
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/