RE: [U2] [UV] Create hashed file in subdirectory?

2006-01-06 Thread Jacques G.
I've used Multi-files like this on Unidata, I tried
the following in Universe 10.1.8:

Notice that in the second part that I add, I specify
18 503 and 1 as parameters. For some reason,
CREATE-FILE uses the 18 as both the file type and
modulo.  The LISTFILES command confirms that the
second part was created with a modulo of 18.
 
CREATE.FILE TEMP.JAG,WORK.JJ 16 17 1 18 101 1
Creating a multilevel data file.  
 
Creating file TEMP.JAG/WORK.JJ as Type 18, Modulo
17, Separation 1.
Creating file D_TEMP.JAG as Type 18, Modulo 16,
Separation 1. 


CREATE.FILE DATA TEMP.JAG,WORK.KK 18 503 1   
   
Creating file TEMP.JAG/WORK.KK as Type 18, Modulo
18, Separation 1. 
FILES in your vocabulary 
08:45:12pm  06 Jan 2006 Page  1  
  

Filename...
Pathname.. Type Modulo 
  

 F 503 1  

DICT TEMP.JAG   D_TEMP.JAG
  18 16 
DATA TEMP.JAG,WORK.JJTEMP.JAG/WORK.JJ 
18 17 
DATA TEMP.JAG,WORK.KKTEMP.JAG/WORK.KK 
18 18 

ED MD RELLEVEL   
5 lines long. 
  
: P   
0001: X   
0002: 10.1.8  
0003: PICK
0004: PICK.FORMAT 
0005: 10.1.8  



__ 
Yahoo! DSL  Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] Create hashed file in subdirectory?

2006-01-06 Thread Brian Leach
Jacques,

Does it work correctly if you specify commas between e.g.

CREATE.FILE TEMP.JAG,WORK.JJ 16,17,1 18,101,1 ?

It could be flavor dependent.

Brian 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Jacques G.
 Sent: 06 January 2006 19:53
 To: u2-users@listserver.u2ug.org
 Subject: RE: [U2] [UV] Create hashed file in subdirectory?
 
 I've used Multi-files like this on Unidata, I tried the 
 following in Universe 10.1.8:
 
 Notice that in the second part that I add, I specify
 18 503 and 1 as parameters. For some reason, CREATE-FILE uses 
 the 18 as both the file type and modulo.  The LISTFILES 
 command confirms that the second part was created with a modulo of 18.
  
 CREATE.FILE TEMP.JAG,WORK.JJ 16 17 1 18 101 1
 Creating a multilevel data file.  
  
 Creating file TEMP.JAG/WORK.JJ as Type 18, Modulo 17, Separation 1.
 Creating file D_TEMP.JAG as Type 18, Modulo 16,
 Separation 1. 
 
 
 CREATE.FILE DATA TEMP.JAG,WORK.KK 18 503 1   

 Creating file TEMP.JAG/WORK.KK as Type 18, Modulo 18, Separation 1. 
 FILES in your vocabulary 
 08:45:12pm  06 Jan 2006 Page  1  
   
 
 Filename...
 Pathname.. Type Modulo 
   
 
  F 503 1  
 
 DICT TEMP.JAG   D_TEMP.JAG
   18 16 
 DATA TEMP.JAG,WORK.JJTEMP.JAG/WORK.JJ 
 18 17 
 DATA TEMP.JAG,WORK.KKTEMP.JAG/WORK.KK 
 18 18 
 
 ED MD RELLEVEL   
 5 lines long. 
   
 : P   
 0001: X   
 0002: 10.1.8  
 0003: PICK
 0004: PICK.FORMAT 
 0005: 10.1.8  
 
 
   
 __
 Yahoo! DSL  Something to write home about. 
 Just $16.99/mo. or less. 
 dsl.yahoo.com
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] Create hashed file in subdirectory?

2006-01-06 Thread Jacques G.
I tried a few things to arrive at this syntax for Pick
flavor:

CREATE.FILE DATA TEMP.JAG,TRAVAIL.KK 503,1,16

(Modulo,Separation,Type)

The problem I had was when I do: HELP CREATE.FILE at
the TCL level I only get examples for a different
flavor.  Those examples had spaces instead of commas.
I have the PDF files, but tend to use the HELP command
instead. 

Still, it shouldn't have created files with a modulo
of 18.  

--- Brian Leach [EMAIL PROTECTED] wrote:

 Jacques,
 
 Does it work correctly if you specify commas between
 e.g.
 
 CREATE.FILE TEMP.JAG,WORK.JJ 16,17,1 18,101,1 ?
 
 It could be flavor dependent.
 
 Brian 




__ 
Yahoo! DSL  Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] Create hashed file in subdirectory?

2006-01-05 Thread Rod Hills
You can create part files like this-
CREATE.FILE DATA SCRATCH,MYHASHFILE 18,1,1

This will create MYHASHFILE under SCRATCH. Then any reference to the
file will be SCRATCH,MYHASHFILE, for instance-
FILE.STAT SCRATCH,MYHASHFILE

HTH

Rod Hills

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Barry Brevik
Sent: Thursday, January 05, 2006 12:49 PM
To: U2-users (E-mail)
Subject: [U2] [UV] Create hashed file in subdirectory?

This is Universe 9.6.1.3 on Windows 2000.

I have a type 19 file (in other words, a subdirectory) that looks like
this in the VOC:
 
 001.. F
 002.. SCRATCH
 003.. D_SCRATCH
 
I use this to create temp files and other administrative type files
which
usually get deleted later.

So... this sounds stupid even to me, but how can I create a static
hashed
file in this subdirectory?? CREATE.FILE does not seem to allow this.

Barry Brevik
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] Create hashed file in subdirectory?

2006-01-05 Thread John Hester

Barry Brevik wrote:

This is Universe 9.6.1.3 on Windows 2000.

I have a type 19 file (in other words, a subdirectory) that looks like
this in the VOC:
 
 001.. F

 002.. SCRATCH
 003.. D_SCRATCH
 
I use this to create temp files and other administrative type files which

usually get deleted later.

So... this sounds stupid even to me, but how can I create a static hashed
file in this subdirectory?? CREATE.FILE does not seem to allow this.


I think you have a couple of options here:

1) Create the file in the parent account and move it into your type 19 
file / subdirectory at the OS level.


or

2) Make the subdirectory a UV account with its own VOC file, logto it, 
then create a hashed file


-John
--
John Hester
System  Network Administrator
Momentum Group Inc.
(949) 833-8886 x623
http://memosamples.com
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] Create hashed file in subdirectory?

2006-01-05 Thread karlp
quote who=Barry Brevik
 This is Universe 9.6.1.3 on Windows 2000.

 I have a type 19 file (in other words, a subdirectory) that looks like
 this in the VOC:

  001.. F
  002.. SCRATCH
  003.. D_SCRATCH

 I use this to create temp files and other administrative type files which
 usually get deleted later.

 So... this sounds stupid even to me, but how can I create a static hashed
 file in this subdirectory?? CREATE.FILE does not seem to allow this.

Actually, you can do it. It's a multi-level file you need. The VOC would
then look like:

001 F
002 SCRATCH
003 D_SCRATCH
004 M
005
006
007 SUBFILE
008 SUBFILE

You create a subfile in the directory using this command:

CREATE.FILE SCRATCH,SUBFILE

Now then, this works when the directory SCRATCH doesn't already exist, so
I'm not sure how this will work on an existing file. Oh, one major caveat.
Once you create the file, doing

ED SCRATCH DATAITEM

returns the message:

Unable to open SCRATCH, non-existent file.

So, there's a trade-off. I hope someone else on the list knows a way
around this. One thing you could do is

mkdir SCRATCH from within SCRATCH, then the command would be:

ED SCRATCH,SCRATCH DATAITEM

which might solve the problem for you. I think there can't be anything in
the SCRATCH file other than other files. You don't need to do the OS part
if you don't want. You can just do

CREATE.FILE DATA SCRATCH,SCRATCH

NOTE: When using multi-level files you always have to use the DATA keyword.

I hope this helps.



 Barry Brevik
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/



-- 
karl

 _/  _/  _/  _/_/_/      __o
_/ _/   _/  _/_/   _-\._
   _/_/_/  _/_/_/ (_)/ (_)
  _/ _/   _/  _/   ..
 _/   _/ arl _/_/_/  _/ earson[EMAIL PROTECTED]

--
IT Director, ATS Industrial Supply, Inc.
http://www.atsindustrial.com
Toll-free: 800-789-9300 x29
Direct2Desk: 801-978-4429
Facsimile: 801-972-3888
--
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] Create hashed file in subdirectory?

2006-01-05 Thread Glenn Herbert
You would use CREATE.FILE DATA SCRATCH,your hashedfile name  rest of 
create.file options

Per the CREATE.FILE documentation, there can be no space between the 
filename and the datafile name, only a comma.  Note that your VOC file 
entry for SCRATCH is now modified to indicate it is a multi-level data 
file (if that is the correct terminology anymore).  You can now reference 
the hashed file like any other file, but using the SCRATCH,your 
hashedfile name identifier, ie.

LIST SCRATCH,your hashedfile name F1 F2 F3...
_
I reject your reality and substitute my own - Adam Savage

Glenn M. Herbert - Connectivity Development  Engineer
Information Integration Solutions, IBM Software Group
50 Washington Street Westboro, MA 01581
 508-599-7281 direct 



Barry Brevik [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
01/05/2006 03:49 PM
Please respond to
u2-users


To
U2-users (E-mail) u2-users@listserver.u2ug.org
cc

Subject
[U2] [UV] Create hashed file in subdirectory?






This is Universe 9.6.1.3 on Windows 2000.

I have a type 19 file (in other words, a subdirectory) that looks like
this in the VOC:
 
 001.. F
 002.. SCRATCH
 003.. D_SCRATCH
 
I use this to create temp files and other administrative type files which
usually get deleted later.

So... this sounds stupid even to me, but how can I create a static hashed
file in this subdirectory?? CREATE.FILE does not seem to allow this.

Barry Brevik
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] Create hashed file in subdirectory?

2006-01-05 Thread Barry Brevik
You can create part files like this-
CREATE.FILE DATA SCRATCH,MYHASHFILE 18,1,1

OK, this does not do exactly what I had in mind, but it DOES work and is
totally interesting.

When I executed that command, behind the scenes it made a subdirectory under
SCRATCH named SCRATCH, and moved all of the existing files into the new
subdirectory, so I had .\SCRATCH\SCRATCH, and then it put MYHASHFILE under
SCRATCH.

This was all transparent to universe, but the DOS app that also accesses
that directory suddenly thought that all of it's files were gone!

Barry Brevik
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/