Re: [U2] SAVE-LIST [FILENAME] LISTNAME

2009-07-16 Thread George Gallen
I Just tested this.

If the file is a type 30 file, and you do an open path, it sill only
reads the items in the DATA/OVER.30 portion, and ignores any other
files that are in the directory, like ones that SAVE.LIST would put
there.



> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
> boun...@listserver.u2ug.org] On Behalf Of George Gallen
> Sent: Thursday, July 16, 2009 9:47 AM
> To: U2 Users List
> Subject: Re: [U2] SAVE-LIST [FILENAME] LISTNAME
>

> although, that could be an undocumented feature of save-list, you can
>write items to a type 30 file, that can't be read back or listed.
>so if you wanted to hide some information. I haven't checked but
>I wonder if you did an OPENPATH "filename" would it show up then?
>It would be invisible to the system because it's a type 30 and the
>system is only looking at the DATA/OVER.30 files.
>
> h
>
> George
>
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] SAVE-LIST [FILENAME] LISTNAME

2009-07-16 Thread George Gallen
that's from basic, I meant from the ">" prompt.

Save-list works, but only to type 1/19 files, not with type 30 files,
   well, it still works, but not in a usable way.

although, that could be an undocumented feature of save-list, you can
   write items to a type 30 file, that can't be read back or listed.
   so if you wanted to hide some information. I haven't checked but
   I wonder if you did an OPENPATH "filename" would it show up then?
   It would be invisible to the system because it's a type 30 and the
   system is only looking at the DATA/OVER.30 files.

h

George

> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
> boun...@listserver.u2ug.org] On Behalf Of Kebbon Irwin
> Sent: Wednesday, July 15, 2009 10:53 PM
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] SAVE-LIST [FILENAME] LISTNAME
>
>
> Oops, my bad.  I should have said use READLIST, or READSELECT (I use
> basictype P) and then write the array out.
>
> > Date: Wed, 15 Jul 2009 16:36:04 -0700
> > From: grsassocia...@gmail.com
> > To: u2-users@listserver.u2ug.org
> > Subject: Re: [U2] SAVE-LIST [FILENAME] LISTNAME
> >
> > Outside the U2 world (mvBase, Reality) you can just
> > COPY-LIST xyz
> > (fname item
> >
> > I'd be surprised if that didn't work in U2 as well.
> >
> >
> > On Wed, Jul 15, 2009 at 4:22 PM, Colin Jennings <
> > colin.jenni...@btconnect.com> wrote:
> >
> > > SoIs there a reverse of FORM.LIST? that is take a LIST and
> write it as
> > >> an item to a file?
> > >>
> > >> This is UV 10.0.3
> > >>
> > >
> > ___
> > 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] SAVE-LIST [FILENAME] LISTNAME

2009-07-15 Thread Kebbon Irwin

Oops, my bad.  I should have said use READLIST, or READSELECT (I use basictype 
P) and then write the array out.

> Date: Wed, 15 Jul 2009 16:36:04 -0700
> From: grsassocia...@gmail.com
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] SAVE-LIST [FILENAME] LISTNAME
> 
> Outside the U2 world (mvBase, Reality) you can just
> COPY-LIST xyz
> (fname item
> 
> I'd be surprised if that didn't work in U2 as well.
> 
> 
> On Wed, Jul 15, 2009 at 4:22 PM, Colin Jennings <
> colin.jenni...@btconnect.com> wrote:
> 
> > SoIs there a reverse of FORM.LIST? that is take a LIST and write it as
> >> an item to a file?
> >>
> >> This is UV 10.0.3
> >>
> >
> ___
> 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] SAVE-LIST [FILENAME] LISTNAME

2009-07-15 Thread Kebbon Irwin

Why not just do your FORM.LIST and then WRITE the resulting array to your file 
of choice?  Otherwise, I am pretty sure the COPY.LIST command works (on Unidata 
at least).
Cheers,
Kebbon

> Date: Wed, 15 Jul 2009 16:36:04 -0700
> From: grsassocia...@gmail.com
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] SAVE-LIST [FILENAME] LISTNAME
> 
> Outside the U2 world (mvBase, Reality) you can just
> COPY-LIST xyz
> (fname item
> 
> I'd be surprised if that didn't work in U2 as well.
> 
> 
> On Wed, Jul 15, 2009 at 4:22 PM, Colin Jennings <
> colin.jenni...@btconnect.com> wrote:
> 
> > SoIs there a reverse of FORM.LIST? that is take a LIST and write it as
> >> an item to a file?
> >>
> >> This is UV 10.0.3
> >>
> >
> ___
> 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] SAVE-LIST [FILENAME] LISTNAME

2009-07-15 Thread George Smith
Outside the U2 world (mvBase, Reality) you can just
COPY-LIST xyz
(fname item

I'd be surprised if that didn't work in U2 as well.


On Wed, Jul 15, 2009 at 4:22 PM, Colin Jennings <
colin.jenni...@btconnect.com> wrote:

> SoIs there a reverse of FORM.LIST? that is take a LIST and write it as
>> an item to a file?
>>
>> This is UV 10.0.3
>>
>
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] SAVE-LIST [FILENAME] LISTNAME

2009-07-15 Thread Colin Jennings
SoIs there a reverse of FORM.LIST? that is take a LIST and write it as 
an item to a file?


This is UV 10.0.3



Hi George.

If you "SAVE.LIST filename listname" then that will save the list anywhere 
you like.  The filename has to be a type 1 or type 19 file though.


Regards
Colin.


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


Re: [U2] SAVE-LIST [FILENAME] LISTNAME

2009-07-15 Thread Charles Stevenson

Cute.
Just think what would have happened, if you had named your list "DATA.30" !

I can't think of a way to SAVE.LIST to a hashed file, other than 2 step:
  SAVE.LIST XYZ
  COPYI  FROM  &SAVEDLISTS&  TO  [hashed file]  "XYZ"  OVERWRITING  
DELETING  HUSH


Going the other direction, there are 2 ways, QSELECT as well as 
FORM.LIST.  (Pick & Prime heritage.)


Btw, iirc, fwiw, I *think* maybe PIOPEN flavour does SAVE.LIST 
differently, too. 
  SAVE.LIST  ABC  XYZ

deposits XYZ in uv account ABC's &SAVEDLISTS& - maybe.

cds


George Gallen wrote:

This drove me nutsI would save it into a file, thinking it was the reverse 
of FORM.LIST,
   didn't give me any errors, but it never showed up in the file.

I didn't notice the part (in the RTFM) about it works only with type 1 or type 
19 files.

Funny, after I coverted my file over to a type 19, it worked great. Then I 
checked the old
file. It did work, it copied the items nicely to the file's directory, only 
problem was it wasn't
inside the TYPE30 DATA&OVER files, which was why it didn't show up when I 
listed the file.

so. FYI, it works great, if you have a type 1 or type 19 file.

SoIs there a reverse of FORM.LIST? that is take a LIST and write it as an 
item to a file?

This is UV 10.0.3
  


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