INFO-VAX Thu, 08 May 2008 Volume 2008 : Issue 256 Contents: Re: DCL anomaly with the DCL Lexical f$search Re: DCL anomaly with the DCL Lexical f$search Re: DCL anomaly with the DCL Lexical f$search Re: DCL anomaly with the DCL Lexical f$search RE: DCL anomaly with the DCL Lexical f$search Re: How to calculate number of files on a disk Re: How to calculate number of files on a disk Re: How to calculate number of files on a disk Re: How to calculate number of files on a disk Re: How to calculate number of files on a disk Re: Interesting Article on Vax Clusters Re: mail notification solution needed Re: mail notification solution needed Re: Maximum DIsk Size VMS 6.2? Re: OT Something pretty cool. OT: SGI Re: Question: debugging a program run via CLD Re: Question: debugging a program run via CLD Re: SGI/NASA ---------------------------------------------------------------------- Date: Wed, 7 May 2008 14:05:54 -0400 From: norm.raphael@metso.com Subject: Re: DCL anomaly with the DCL Lexical f$search Message-ID: This is a multipart message in MIME format. --=_alternative 00636AC885257442_= Content-Type: text/plain; charset="US-ASCII" "Farrell, Michael" wrote on 05/07/2008 01:46:44 PM: > Has anyone encountered this. > > Here's a snippet from a DCL procedure I am working on: > > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'")! f$search(INPUT_FILE) > > RCV_LOCN has a value of "S04:[AM_TESTS.MIKES]" > RCV_FILE has a value of "BSTBOTH_2008103.*" > > When this code is executed it returns to UPDATE_FILE a null string so > that UPDATE_FILE = "". > > This is wrong because the file it alludes to is there: > Directory S04:[AM_TESTS.MIKES] > > BSTBOTH_2008103.211436;25 > 6448/7232 7-MAY-2008 12:27:59.37 > . > . > . > > When I write the line without the comment, it works properly. > > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") > UPDATE_FILE = " BSTBOTH_2008103.211436;25". > > Why does the "! f$search(INPUT_FILE)" make a difference to the working > of the f$search command? > Not on my OpenVMS. Something else must be going on. > TIA > > Mike Farrell --=_alternative 00636AC885257442_= Content-Type: text/html; charset="US-ASCII"



"Farrell, Michael" <MFarrell@Voltdelta.com> wrote on 05/07/2008 01:46:44 PM:

> Has anyone encountered this.
>
> Here's a snippet from a DCL procedure I am working on:
>
> $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'")! f$search(INPUT_FILE)
>
> RCV_LOCN has a value of "S04:[AM_TESTS.MIKES]"
> RCV_FILE has a value of "BSTBOTH_2008103.*"
>
> When this code is executed it returns to UPDATE_FILE a null string so
> that UPDATE_FILE = "".
>
> This is wrong because the file it alludes to is there:
> Directory S04:[AM_TESTS.MIKES]
>  
> BSTBOTH_2008103.211436;25
>                           6448/7232        7-MAY-2008 12:27:59.37
>    .
>    .
>    .
>    
> When I write the line without the comment, it works properly.
>
> $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'")
> UPDATE_FILE   = " BSTBOTH_2008103.211436;25".
>
> Why does the "! f$search(INPUT_FILE)" make a difference to the working
> of the f$search command?
>
Not on my OpenVMS.  Something else must be going on.

> TIA
>
> Mike Farrell
--=_alternative 00636AC885257442_=-- ------------------------------ Date: Wed, 7 May 2008 14:33:31 -0400 From: "Ken Robinson" Subject: Re: DCL anomaly with the DCL Lexical f$search Message-ID: <7dd80f60805071133n3bd8b15bn23131daf4f00547e@mail.gmail.com> On Wed, May 7, 2008 at 2:05 PM, wrote: > > > > > "Farrell, Michael" wrote on 05/07/2008 01:46:44 PM: > > > > > Has anyone encountered this. > > > > Here's a snippet from a DCL procedure I am working on: > > > > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'")! f$search(INPUT_FILE) > > > > RCV_LOCN has a value of "S04:[AM_TESTS.MIKES]" > > RCV_FILE has a value of "BSTBOTH_2008103.*" > > > > When this code is executed it returns to UPDATE_FILE a null string so > > that UPDATE_FILE = "". > > > > This is wrong because the file it alludes to is there: > > Directory S04:[AM_TESTS.MIKES] > > > > BSTBOTH_2008103.211436;25 > > 6448/7232 7-MAY-2008 12:27:59.37 > > . > > . > > . > > > > When I write the line without the comment, it works properly. > > > > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") > > UPDATE_FILE = " BSTBOTH_2008103.211436;25". > > > > Why does the "! f$search(INPUT_FILE)" make a difference to the working > > of the f$search command? > > > Not on my OpenVMS. Something else must be going on. > > TIA Doing my own testing... OpenVMS V7.3-2 Procedure: $ rcv_locn = "dis:[krobins9.downloads.testing]" $ rcv_file = "test.*" $!'f$ver(1) $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") ! update_file = f$search(input_file) $ sho sym update_file $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") ! update_file = f$searh(input_file) $ sho sym update_file $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") $ sho sym update_file $!'f$ver(0) Dir output: Directory DIS:[KROBINS9.Downloads.testing] test.file;1 test_search.com;2 Total of 2 files. Command procedure output: $ @test_search $!0 $ UPDATE_FILE = f$search("dis:[krobins9.downloads.testing]test.*") ! update_file = f$search(input_file) $ sho sym update_file UPDATE_FILE = "DIS:[KROBINS9.Downloads.testing]test.file;1" $ UPDATE_FILE = f$search("dis:[krobins9.downloads.testing]test.*") ! update_file = f$searh(input_file) $ sho sym update_file UPDATE_FILE = "" $ UPDATE_FILE = f$search("dis:[krobins9.downloads.testing]test.*") $ sho sym update_file UPDATE_FILE = "DIS:[KROBINS9.Downloads.testing]test.file;1" Notice that I misspelled f$search in the second comment and that caused a similar problem. Not good. Ken ------------------------------ Date: Wed, 07 May 2008 14:35:34 -0400 From: "Richard B. Gilbert" Subject: Re: DCL anomaly with the DCL Lexical f$search Message-ID: Farrell, Michael wrote: > Has anyone encountered this. > > Here's a snippet from a DCL procedure I am working on: > > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") ! > f$search(INPUT_FILE) > > RCV_LOCN has a value of "S04:[AM_TESTS.MIKES]" > RCV_FILE has a value of "BSTBOTH_2008103.*" > > When this code is executed it returns to UPDATE_FILE a null string so > that UPDATE_FILE = "". > > This is wrong because the file it alludes to is there: > Directory S04:[AM_TESTS.MIKES] > > BSTBOTH_2008103.211436;25 > 6448/7232 7-MAY-2008 12:27:59.37 > . > . > . > > When I write the line without the comment, it works properly. > > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") > UPDATE_FILE = " BSTBOTH_2008103.211436;25". > > Why does the "! f$search(INPUT_FILE)" make a difference to the working > of the f$search command? > > TIA > > Mike Farrell $ WRITE SYS$OUTPUT "Return Status=''$STATUS'" ------------------------------ Date: Wed, 7 May 2008 15:01:03 -0400 From: norm.raphael@metso.com Subject: Re: DCL anomaly with the DCL Lexical f$search Message-ID: This is a multipart message in MIME format. --=_alternative 0068776785257442_= Content-Type: text/plain; charset="US-ASCII" Pls see below. "Ken Robinson" wrote on 05/07/2008 02:33:31 PM: > On Wed, May 7, 2008 at 2:05 PM, wrote: > > > > > > > > > > "Farrell, Michael" wrote on 05/07/2008 01:46:44 PM: > > > > > > > > > Has anyone encountered this. > > > > > > Here's a snippet from a DCL procedure I am working on: > > > > > > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'")! f$search(INPUT_FILE) > > > > > > RCV_LOCN has a value of "S04:[AM_TESTS.MIKES]" > > > RCV_FILE has a value of "BSTBOTH_2008103.*" > > > > > > When this code is executed it returns to UPDATE_FILE a null string so > > > that UPDATE_FILE = "". > > > > > > This is wrong because the file it alludes to is there: > > > Directory S04:[AM_TESTS.MIKES] > > > > > > BSTBOTH_2008103.211436;25 > > > 6448/7232 7-MAY-2008 12:27:59.37 > > > . > > > . > > > . > > > > > > When I write the line without the comment, it works properly. > > > > > > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") > > > UPDATE_FILE = " BSTBOTH_2008103.211436;25". > > > > > > Why does the "! f$search(INPUT_FILE)" make a difference to the working > > > of the f$search command? > > > > > Not on my OpenVMS. Something else must be going on. > > > TIA > > Doing my own testing... > > OpenVMS V7.3-2 > > Procedure: > $ rcv_locn = "dis:[krobins9.downloads.testing]" > $ rcv_file = "test.*" > $!'f$ver(1) > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") ! update_file = > f$search(input_file) > $ sho sym update_file > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") ! update_file = > f$searh(input_file) > $ sho sym update_file > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'") > $ sho sym update_file > $!'f$ver(0) > > Dir output: > Directory DIS:[KROBINS9.Downloads.testing] > > test.file;1 test_search.com;2 > > Total of 2 files. > > Command procedure output: > $ @test_search > $!0 > $ UPDATE_FILE = f$search("dis:[krobins9.downloads.testing]test.*") ! > update_file = f$search(input_file) > $ sho sym update_file > UPDATE_FILE = "DIS:[KROBINS9.Downloads.testing]test.file;1" > $ UPDATE_FILE = f$search("dis:[krobins9.downloads.testing]test.*") ! > update_file = f$searh(input_file) > $ sho sym update_file > UPDATE_FILE = "" > $ UPDATE_FILE = f$search("dis:[krobins9.downloads.testing]test.*") > $ sho sym update_file > UPDATE_FILE = "DIS:[KROBINS9.Downloads.testing]test.file;1" > > Notice that I misspelled f$search in the second comment and that > caused a similar problem. Not good. > This is behaving as documented. The first call of f$search finds the one instance of the wildcarded filename. The second call of f$search does not find another instance in the context and so it returns the null string. The third call of f$search starts over. The comment has nothing to do with anything, but remember that f$nnnn is enough for DCL to act on (or f$s, where s is a unique lexical name starting string) Try creating six or seven versions of test.file and see what happens. > Ken --=_alternative 0068776785257442_= Content-Type: text/html; charset="US-ASCII"

Pls see below.


"Ken Robinson" <kenrbnsn@gmail.com> wrote on 05/07/2008 02:33:31 PM:

> On Wed, May 7, 2008 at 2:05 PM,  <norm.raphael@metso.com> wrote:
> >
> >
> >
> >
> > "Farrell, Michael" <MFarrell@Voltdelta.com> wrote on 05/07/2008 01:46:44 PM:
> >
> >
> >
> >  > Has anyone encountered this.
> >  >
> >  > Here's a snippet from a DCL procedure I am working on:
> >  >
> >  > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'")! f$search(INPUT_FILE)
> >  >
> >  > RCV_LOCN has a value of "S04:[AM_TESTS.MIKES]"
> >  > RCV_FILE has a value of "BSTBOTH_2008103.*"
> >  >
> >  > When this code is executed it returns to UPDATE_FILE a null string so
> >  > that UPDATE_FILE = "".
> >  >
> >  > This is wrong because the file it alludes to is there:
> >  > Directory S04:[AM_TESTS.MIKES]
> >  >
> >  > BSTBOTH_2008103.211436;25
> >  >                           6448/7232        7-MAY-2008 12:27:59.37
> >  >    .
> >  >    .
> >  >    .
> >  >
> >  > When I write the line without the comment, it works properly.
> >  >
> >  > $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'")
> >  > UPDATE_FILE   = " BSTBOTH_2008103.211436;25".
> >  >
> >  > Why does the "! f$search(INPUT_FILE)" make a difference to the working
> >  > of the f$search command?
> >  >
> >  Not on my OpenVMS.  Something else must be going on.
> > > TIA
>
> Doing my own testing...
>
> OpenVMS V7.3-2
>
> Procedure:
> $ rcv_locn = "dis:[krobins9.downloads.testing]"
> $ rcv_file = "test.*"
> $!'f$ver(1)
> $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'")  ! update_file =
> f$search(input_file)
> $ sho sym update_file
> $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'")  ! update_file =
> f$searh(input_file)
> $ sho sym update_file
> $ UPDATE_FILE = f$search("''RCV_LOCN'''RCV_FILE'")
> $ sho sym update_file
> $!'f$ver(0)
>
> Dir output:
> Directory DIS:[KROBINS9.Downloads.testing]
>
> test.file;1         test_search.com;2
>
> Total of 2 files.
>
> Command procedure output:
> $ @test_search
> $!0
> $ UPDATE_FILE = f$search("dis:[krobins9.downloads.testing]test.*")  !
> update_file = f$search(input_file)
> $ sho sym update_file
>   UPDATE_FILE = "DIS:[KROBINS9.Downloads.testing]test.file;1"
> $ UPDATE_FILE = f$search("dis:[krobins9.downloads.testing]test.*")  !
> update_file = f$searh(input_file)
> $ sho sym update_file
>   UPDATE_FILE = ""
> $ UPDATE_FILE = f$search("dis:[krobins9.downloads.testing]test.*")
> $ sho sym update_file
>   UPDATE_FILE = "DIS:[KROBINS9.Downloads.testing]test.file;1"
>
> Notice that I misspelled f$search in the second comment and that
> caused a similar problem. Not good.
>


This is behaving as documented.
The first call of f$search finds the one instance of the wildcarded filename.
The second call of f$search does not find another instance in the context
and so it returns the null string.
The third call of f$search starts over.
The comment has nothing to do with anything, but remember that f$nnnn is
enough for DCL to act on (or f$s, where s is a unique lexical name starting string)

Try creating six or seven versions of test.file and see what happens.

> Ken
--=_alternative 0068776785257442_=-- ------------------------------ Date: Wed, 7 May 2008 15:10:39 -0400 From: "Farrell, Michael" Subject: RE: DCL anomaly with the DCL Lexical f$search Message-ID: <8330CD39B64C934DBE63CB6D4CEE37D0319FF5@NJ103EX2.EAST.VIS.COM> This is a multi-part message in MIME format. ------_=_NextPart_001_01C8B076.09E10630 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable As Gilda Radner, playing Emily Latella said "Never mind!" =20 The way I was testing led me to an erroneous conclusion. =20 Norm's remarks below are correct. =20 I had actually searched for this exact string earlier in the execution of the procedure this call is in,=20 so it was correct that it returned a zero length string to me. =20 I have fixed it. =20 Thanks for the replies. =20 Mike Farrell =20 ________________________________ From: norm.raphael@metso.com [mailto:norm.raphael@metso.com]=20 Sent: Wednesday, May 07, 2008 3:01 PM To: Info-VAX@Mvb.Saic.Com Subject: Re: DCL anomaly with the DCL Lexical f$search =20 Pls see below.=20 "Ken Robinson" wrote on 05/07/2008 02:33:31 PM: > On Wed, May 7, 2008 at 2:05 PM, wrote: > > > > > > > > > > "Farrell, Michael" wrote on 05/07/2008 01:46:44 PM: > > > > > > > > > Has anyone encountered this. > > > > > > Here's a snippet from a DCL procedure I am working on: > > > > > > $ UPDATE_FILE =3D f$search("''RCV_LOCN'''RCV_FILE'")! f$search(INPUT_FILE) > > > > > > RCV_LOCN has a value of "S04:[AM_TESTS.MIKES]" > > > RCV_FILE has a value of "BSTBOTH_2008103.*" > > > > > > When this code is executed it returns to UPDATE_FILE a null string so > > > that UPDATE_FILE =3D "". > > > > > > This is wrong because the file it alludes to is there: > > > Directory S04:[AM_TESTS.MIKES] > > > > > > BSTBOTH_2008103.211436;25 > > > 6448/7232 7-MAY-2008 12:27:59.37 > > > . > > > . > > > . > > > > > > When I write the line without the comment, it works properly. > > > > > > $ UPDATE_FILE =3D f$search("''RCV_LOCN'''RCV_FILE'") > > > UPDATE_FILE =3D " BSTBOTH_2008103.211436;25". > > > > > > Why does the "! f$search(INPUT_FILE)" make a difference to the working > > > of the f$search command? > > > > > Not on my OpenVMS. Something else must be going on. > > > TIA >=20 > Doing my own testing... >=20 > OpenVMS V7.3-2 >=20 > Procedure: > $ rcv_locn =3D "dis:[krobins9.downloads.testing]" > $ rcv_file =3D "test.*" > $!'f$ver(1) > $ UPDATE_FILE =3D f$search("''RCV_LOCN'''RCV_FILE'") ! update_file = =3D > f$search(input_file) > $ sho sym update_file > $ UPDATE_FILE =3D f$search("''RCV_LOCN'''RCV_FILE'") ! update_file = =3D > f$searh(input_file) > $ sho sym update_file > $ UPDATE_FILE =3D f$search("''RCV_LOCN'''RCV_FILE'") > $ sho sym update_file > $!'f$ver(0) >=20 > Dir output: > Directory DIS:[KROBINS9.Downloads.testing] >=20 > test.file;1 test_search.com;2 >=20 > Total of 2 files. >=20 > Command procedure output: > $ @test_search > $!0 > $ UPDATE_FILE =3D f$search("dis:[krobins9.downloads.testing]test.*") = ! > update_file =3D f$search(input_file) > $ sho sym update_file > UPDATE_FILE =3D "DIS:[KROBINS9.Downloads.testing]test.file;1" > $ UPDATE_FILE =3D f$search("dis:[krobins9.downloads.testing]test.*") = ! > update_file =3D f$searh(input_file) > $ sho sym update_file > UPDATE_FILE =3D "" > $ UPDATE_FILE =3D f$search("dis:[krobins9.downloads.testing]test.*") > $ sho sym update_file > UPDATE_FILE =3D "DIS:[KROBINS9.Downloads.testing]test.file;1" >=20 > Notice that I misspelled f$search in the second comment and that > caused a similar problem. Not good. >=20 This is behaving as documented.=20 The first call of f$search finds the one instance of the wildcarded filename.=20 The second call of f$search does not find another instance in the context=20 and so it returns the null string.=20 The third call of f$search starts over.=20 The comment has nothing to do with anything, but remember that f$nnnn is enough for DCL to act on (or f$s, where s is a unique lexical name starting string) Try creating six or seven versions of test.file and see what happens.=20 > Ken ------_=_NextPart_001_01C8B076.09E10630 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

As Gilda Radner, playing Emily = Latella said “Never mind!”

 

The way I was testing led me to an erroneous conclusion.

 

Norm’s remarks below are = correct.

 

I had actually searched for this = exact string earlier in the execution of the procedure this call is in, =

so it was correct that it returned = a zero length string to me.

 

I have fixed = it.

 

Thanks for the = replies.

 

Mike = Farrell

 


From: norm.raphael@metso.com [mailto:norm.raphael@metso.com]
Sent: Wednesday, May 07, = 2008 3:01 PM
To: = Info-VAX@Mvb.Saic.Com
Subject: Re: DCL anomaly = with the DCL Lexical f$search

 



Pls see below.


"Ken Robinson" <kenrbnsn@gmail.com> wrote on 05/07/2008 02:33:31 = PM:

> On Wed, May 7, 2008 at 2:05 PM,  <norm.raphael@metso.com> wrote:
> >
> >
> >
> >
> > "Farrell, Michael" <MFarrell@Voltdelta.com> wrote on 05/07/2008 01:46:44 = PM:
> >
> >
> >
> >  > Has anyone = encountered this.
> >  >
> >  > Here's a snippet = from a DCL procedure I am working on:
> >  >
> >  > $ UPDATE_FILE =3D f$search("''RCV_LOCN'''RCV_FILE'")! = f$search(INPUT_FILE)
> >  >
> >  > RCV_LOCN has a value = of "S04:[AM_TESTS.MIKES]"
> >  > RCV_FILE has a value = of "BSTBOTH_2008103.*"
> >  >
> >  > When this code is = executed it returns to UPDATE_FILE a null string so
> >  > that UPDATE_FILE =3D "".
> >  >
> >  > This is wrong = because the file it alludes to is there:
> >  > Directory S04:[AM_TESTS.MIKES]
> >  >
> >  > = BSTBOTH_2008103.211436;25
> >  >       =                     6448/7232 =        7-MAY-2008 12:27:59.37
> >  >   =  .
> >  >   =  .
> >  >   =  .
> >  >
> >  > When I write the = line without the comment, it works properly.
> >  >
> >  > $ UPDATE_FILE =3D f$search("''RCV_LOCN'''RCV_FILE'")
> >  > UPDATE_FILE   = =3D " BSTBOTH_2008103.211436;25".
> >  >
> >  > Why does the "! f$search(INPUT_FILE)" make a difference to the = working
> >  > of the f$search = command?
> >  >
> >  Not on my OpenVMS. =  Something else must be going on.
> > > TIA
>
> Doing my own = testing...
>
> OpenVMS V7.3-2
>
> Procedure:
> $ rcv_locn =3D "dis:[krobins9.downloads.testing]"
> $ rcv_file =3D = "test.*"
> $!'f$ver(1)
> $ UPDATE_FILE =3D f$search("''RCV_LOCN'''RCV_FILE'")  ! update_file = =3D
> f$search(input_file)
> $ sho sym = update_file
> $ UPDATE_FILE =3D f$search("''RCV_LOCN'''RCV_FILE'")  ! update_file = =3D
> f$searh(input_file)
> $ sho sym = update_file
> $ UPDATE_FILE =3D = f$search("''RCV_LOCN'''RCV_FILE'")
> $ sho sym = update_file
> $!'f$ver(0)
>
> Dir output:
> Directory = DIS:[KROBINS9.Downloads.testing]
>
> test.file;1       =   test_search.com;2
>
> Total of 2 files.
>
> Command procedure = output:
> $ @test_search
> $!0
> $ UPDATE_FILE =3D f$search("dis:[krobins9.downloads.testing]test.*") =  !
> update_file =3D = f$search(input_file)
> $ sho sym = update_file
>   UPDATE_FILE =3D "DIS:[KROBINS9.Downloads.testing]test.file;1"
> $ UPDATE_FILE =3D f$search("dis:[krobins9.downloads.testing]test.*") =  !
> update_file =3D = f$searh(input_file)
> $ sho sym = update_file
>   UPDATE_FILE =3D = ""
> $ UPDATE_FILE =3D f$search("dis:[krobins9.downloads.testing]test.*")<= br> > $ sho sym = update_file
>   UPDATE_FILE =3D "DIS:[KROBINS9.Downloads.testing]test.file;1"
>
> Notice that I misspelled f$search in = the second comment and that
> caused a similar problem. Not = good.
>


This is behaving as documented.
The first call of f$search finds the one instance of the wildcarded = filename.
The second call of f$search does not find another instance in the context =
and so it returns the null string.
The third call of f$search starts over.
The comment has nothing to do with anything, but remember that f$nnnn is =
enough for DCL to act on (or f$s, where s is a unique lexical name starting = string)

Try creating six or seven versions of test.file and see what = happens.

> Ken

------_=_NextPart_001_01C8B076.09E10630-- ------------------------------ Date: Wed, 7 May 2008 12:37:17 -0700 (PDT) From: lyndonbartels@yahoo.com Subject: Re: How to calculate number of files on a disk Message-ID: > > Oh, did I mention it has to be fast??? > > T4, by default, samples every second, nor every second. > > Isn't it every minute? > You're right.. My typo. I meant every minute. But my earlier desires for high speed and low I/O still apply. I do NOT want the process of collecting data become a performance burden. I don't want T4 collecting to become a statistic on the performance graphs. ------------------------------ Date: Thu, 08 May 2008 07:55:19 +1000 From: Jim Duff Subject: Re: How to calculate number of files on a disk Message-ID: <48222547$1@dnews.tpgi.com.au> Hein RMS van den Heuvel wrote: > On May 7, 9:38 am, lyndonbart...@yahoo.com wrote: >> On May 6, 10:29 pm, lyndonbart...@yahoo.com wrote: >> >>> Hello all, >>> I'm working on gathering disk stats. I've used sys$getdviw to gather >>> freeblocks, maxblocks, maxfiles, errorcount, mountcount... > > Along with the cluster size, that's all you need to know to read the > header-bitmap > in a single QIO, or IO_PERFORM, from INDEXF.SYS. > > Open the file by FID (1,1) or better still, keep it open. > > >> First, I thank all of you for your responses. Especially Jim Duff, I >> found your sight, and your examples have been invaluable...! > > "website" or "insight" would work. > >> Oh, did I mention it has to be fast??? >> T4, by default, samples every second, nor every second. > > Isn't it every minute? > > Anyway, either rule out any [*...] walk. > > IMHO it also rules out opening INDEXF.SYS for write, > because I would not want (risk) flush those caches every second. > > I would just open for read and accept any inaccuracies. > They can (rightfully!) be explained as 'active files'. > >> This is the last piece of the performance data I want to gather, it's >> a "It'd be nice to have." If I can't gather this data quickly and >> efficiently, I can leave it out of the final product. > > You could perhaps fake it (cache it!) somewhat. > > Get the easy (GETDVI) stuff every interval. > Read the bitmaps every 30 or 60 intervals and just repeat the same > info 29 (59) times more. > > Bob K> The bitmap will show allocated blocks that are actually > preallocated > > Bob, it seems to me you are referring to the STORAGE bitmap from > BITMAP.SYS where > every bit represents and allocation cluster. > We are talking about the header bitmap, which lives inside INDEXF.SYS > and where > each set bit represents a free block in that file and each cleared bit > represents a block > used for a header or saved in the cache. > Of course, knowing the speed requirements for this now, doing lib$find_file or alternatively, sys$search (so we can eliminate aliased files) is out of the question. However, reading the bitmap is only going to give us an approximation as well, as the bitmap does not distinguish between primary and extension headers. To get an accurate number, you would have to take out the volume serialization lock, read the bitmap, and read each in-use header to see if it's a primary header, then release the volume serialization lock. Cheers, Jim. -- www.eight-cubed.com ------------------------------ Date: Wed, 7 May 2008 17:13:43 -0700 (PDT) From: Hein RMS van den Heuvel Subject: Re: How to calculate number of files on a disk Message-ID: On May 7, 5:55=A0pm, Jim Duff wrote: : > Cheers, > Jim. > --www.eight-cubed.com- Hide quoted text - Jim, I tried to Email you but got a 'Mailbox full' message? Fix that or send me an Email from an other account to reply to? Nothing special, cheers, Hein. ------------------------------ Date: Thu, 08 May 2008 10:51:02 +1000 From: Jim Duff Subject: Re: How to calculate number of files on a disk Message-ID: <48224e77@dnews.tpgi.com.au> Hein RMS van den Heuvel wrote: > On May 7, 5:55 pm, Jim Duff wrote: > : >> Cheers, >> Jim. >> --www.eight-cubed.com- Hide quoted text - > > Jim, I tried to Email you but got a 'Mailbox full' message? > Fix that or send me an Email from an other account to reply to? > Nothing special, cheers, Hein. > Fixed. Thanks for mentioning this. I hate spam. I especially hate spam when I get 4000+ of them in less than an hour :-( Cheers, Jim. -- www.eight-cubed.com ------------------------------ Date: Wed, 7 May 2008 18:49:59 -0700 (PDT) From: AEF Subject: Re: How to calculate number of files on a disk Message-ID: <4be9cbdc-c4b1-431c-98f7-0a82275fc925@k13g2000hse.googlegroups.com> On May 7, 5:55 pm, Jim Duff wrote: > Hein RMS van den Heuvel wrote: > > > > > On May 7, 9:38 am, lyndonbart...@yahoo.com wrote: > >> On May 6, 10:29 pm, lyndonbart...@yahoo.com wrote: > > >>> Hello all, > >>> I'm working on gathering disk stats. I've used sys$getdviw to gather > >>> freeblocks, maxblocks, maxfiles, errorcount, mountcount... > > > Along with the cluster size, that's all you need to know to read the > > header-bitmap > > in a single QIO, or IO_PERFORM, from INDEXF.SYS. > > > Open the file by FID (1,1) or better still, keep it open. > > >> First, I thank all of you for your responses. Especially Jim Duff, I > >> found your sight, and your examples have been invaluable...! > > > "website" or "insight" would work. > > >> Oh, did I mention it has to be fast??? > >> T4, by default, samples every second, nor every second. > > > Isn't it every minute? > > > Anyway, either rule out any [*...] walk. > > > IMHO it also rules out opening INDEXF.SYS for write, > > because I would not want (risk) flush those caches every second. > > > I would just open for read and accept any inaccuracies. > > They can (rightfully!) be explained as 'active files'. > > >> This is the last piece of the performance data I want to gather, it's > >> a "It'd be nice to have." If I can't gather this data quickly and > >> efficiently, I can leave it out of the final product. > > > You could perhaps fake it (cache it!) somewhat. > > > Get the easy (GETDVI) stuff every interval. > > Read the bitmaps every 30 or 60 intervals and just repeat the same > > info 29 (59) times more. > > > Bob K> The bitmap will show allocated blocks that are actually > > preallocated > > > Bob, it seems to me you are referring to the STORAGE bitmap from > > BITMAP.SYS where > > every bit represents and allocation cluster. > > We are talking about the header bitmap, which lives inside INDEXF.SYS > > and where > > each set bit represents a free block in that file and each cleared bit > > represents a block > > used for a header or saved in the cache. > > Of course, knowing the speed requirements for this now, doing > lib$find_file or alternatively, sys$search (so we can eliminate aliased > files) is out of the question. > > However, reading the bitmap is only going to give us an approximation as > well, as the bitmap does not distinguish between primary and extension > headers. > > To get an accurate number, you would have to take out the volume > serialization lock, read the bitmap, and read each in-use header to see > if it's a primary header, then release the volume serialization lock. > > Cheers, > Jim. > --www.eight-cubed.com But isn't the number of headers what he really needs? Isn't that what he's worried of running out of? My question is: How does he get so many headers in the first place? AEF ------------------------------ Date: Wed, 7 May 2008 11:28:59 -0700 (PDT) From: Bob Gezelter Subject: Re: Interesting Article on Vax Clusters Message-ID: On May 7, 7:55 am, "Cross Michael C Mr CIV USAF 53 CSS/SCO" wrote: > Interesting article on Vax Clusters. > > http://lazowska.cs.washington.edu/p130-kronenberg.pdf > > Mike Cross Mike, Indeed. I (and many others) have used that citation when writing papers, articles, and book chapters which reference OpenVMS clusters. - Bob Gezelter, http://www.rlgsc.com ------------------------------ Date: 7 May 2008 13:51:35 -0500 From: koehler@eisner.nospam.encompasserve.org (Bob Koehler) Subject: Re: mail notification solution needed Message-ID: In article <4821bc85$0$6926$9b622d9e@news.freenet.de>, "Klaus-D. Bohn" writes: > > Now, i need this to use a user action. How can i solve this? Doese have > anybody an idea? Perhaps with a snipple of code? It would be much easier to inteface with the mail system using the documented mail API than it would be to capture and process the broadcast message. ------------------------------ Date: Wed, 7 May 2008 20:06:59 +0000 (UTC) From: gartmann@nonsense.immunbio.mpg.de (Christoph Gartmann) Subject: Re: mail notification solution needed Message-ID: In article , "Tom Linden" writes: >On Wed, 07 May 2008 09:56:16 -0700, Klaus-D. Bohn wrote: > >What is USV? Uninterruptible power supply => UPS Regards, Christoph Gartmann -- Max-Planck-Institut fuer Phone : +49-761-5108-464 Fax: -452 Immunbiologie Postfach 1169 Internet: gartmann@immunbio dot mpg dot de D-79011 Freiburg, Germany http://www.immunbio.mpg.de/home/menue.html ------------------------------ Date: Thu, 08 May 2008 08:03:16 +0300 From: =?ISO-8859-1?Q?Kari_Uusim=E4ki?= Subject: Re: Maximum DIsk Size VMS 6.2? Message-ID: <48228448$0$23833$9b536df3@news.fv.fi> David Turner, Island Computers wrote: > Can anyone enligthen me on this > Customer needs to aechive using simple scsi up to 2TB > He is stuck with VMS 6.2-1H3 > > > HELP ! > This is a perfect case for HSM. With it he can store the daily or weekly needed files on his current disks and let HSM move the older files to another array with enough disk space (which can consist of lots of LUNs). I recommend to read the HSM SPD. Btw. Tapes need regular (at least bi-yearly) rewinding to keep them from degenerating. DLT tapes have a shelf life of 30 years if maintained according to the manufacturers instructions. DDS tapes have a significantly shorter life. Regards, Kari ------------------------------ Date: 7 May 2008 20:32:28 GMT From: billg999@cs.uofs.edu (Bill Gunshannon) Subject: Re: OT Something pretty cool. Message-ID: <68ehusF2okekrU1@mid.individual.net> In article , "FredK" writes: > > DJ Ruby Rhod: What was that honey? It was BAD! It had no fire, no energy, no > nothing! So tomorrow from 5 to 7 will you PLEASE act like you have more than > a two word vocabulary. It must be green. > Korben Dallas: Can I talk to you for a second? > [Throws Ruby up against a wall] > Korben Dallas: I didn't come here to play Pumbaa on the radio. So tomorrow > from 5 to 7 your gonna give yourself a hand, green? > DJ Ruby Rhod: Supergreen. Wow. Apparently this script was written by the proverbial room full of monkeys with typewriters in their search for the complete works of Shakespeare. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include ------------------------------ Date: Wed, 07 May 2008 12:00:59 -0700 From: "Tom Linden" Subject: OT: SGI Message-ID: http://www.intel.com/pressroom/archive/releases/20080507corp_b.htm?iid=3D= pr1_releasepri_20080507rb Is this Itanium or Xeon? http://www.nas.nasa.gov/Resources/Systems/systems.html -- = PL/I for OpenVMS www.kednos.com ------------------------------ Date: Wed, 07 May 2008 20:10:40 GMT From: Antonio Carlini Subject: Re: Question: debugging a program run via CLD Message-ID: koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote in news:vjIuN7qa9Jlw@eisner.encompasserve.org: > In article > , > Rich Jordan writes: >> I haven't had to do this before and haven't found the magic switch >> yet. BASIC program designed to run with a CLD file defining two >> mandatory parameters, no qualifiers. Compiled and linked /debug and >> running it works as expected. But running it via the CLD (ie >> >> "$ program parameter1 parameter2" >> >> doesn't start the debugger. > > If you link the image /debug, the debugger will start. If you > don't link the image /debug, there's nothing CLD can do about it. If it's VAX you can patch the image header! I expect that something similar can be done on Alpha but I never wanted to figure out the God-mode password on any games there, so I'm not absolutely sure :-) Antonio ------------------------------ Date: Wed, 7 May 2008 14:03:38 -0700 (PDT) From: Rich Jordan Subject: Re: Question: debugging a program run via CLD Message-ID: On May 7, 3:10 pm, Antonio Carlini wrote: > koeh...@eisner.nospam.encompasserve.org (Bob Koehler) wrote innews:vjIuN7qa9Jlw@eisner.encompasserve.org: > > > In article > > , > > Rich Jordan writes: > >> I haven't had to do this before and haven't found the magic switch > >> yet. BASIC program designed to run with a CLD file defining two > >> mandatory parameters, no qualifiers. Compiled and linked /debug and > >> running it works as expected. But running it via the CLD (ie > > >> "$ program parameter1 parameter2" > > >> doesn't start the debugger. > > > If you link the image /debug, the debugger will start. If you > > don't link the image /debug, there's nothing CLD can do about it. > > If it's VAX you can patch the image header! > > I expect that something similar can be done on > Alpha but I never wanted to figure out the > God-mode password on any games there, so I'm > not absolutely sure :-) > > Antonio Antonio, no patches, no passwords, no magic secrets, just have the CLD file IMAGE parameter aimed at the image file you actually want to run, NOT the one in the production directory that hasn't been updated yet. ------------------------------ Date: Wed, 7 May 2008 20:38:15 +0100 From: "John Wallace" Subject: Re: SGI/NASA Message-ID: <1vednQ9sxcqpmL_VRVnyiAA@plusnet> Which would you buy if it was your money and HP-UX or VMS weren't mandatory? That's probably what NASA bought too, perhaps just a bit bigger. From http://www.sgi.com/company_info/newsroom/press_releases/2008/may/nasa.html we find: "a 20,480-core SGI® Altix® ICE system, " "Powered by the latest Quad-Core Intel® Xeon® processors, the new supercomputer will feature more than 20,800 Gigabytes (GB) of system memory" "The new NASA system will run Novell SUSE Linux Enterprise Server 10." Etc. Fwiw, the SUSE website has been featuring "real time Linux" for a few weeks now (e.g. http://www.novell.com/products/realtime/). I don't know how well it compares with the realtime features and functionality formerly seen in Tru64 and VMS, but it's probably got better medium term prospects. Hth, John ------------------------------ End of INFO-VAX 2008.256 ************************