dbTalk Databases Forums  

Q Pointer - How to create one?!

comp.databases.pick comp.databases.pick


Discuss Q Pointer - How to create one?! in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
GEEK^&
 
Posts: n/a

Default Q Pointer - How to create one?! - 09-16-2005 , 01:16 PM






Hello,

Your help is *greatly* appreciated.

How do I create a Q pointer to a file in another account?

Thank you,

*(why is this information so hard to locate out there?)*


Reply With Quote
  #2  
Old   
Dale Benedict
 
Posts: n/a

Default Re: Q Pointer - How to create one?! - 09-16-2005 , 01:40 PM






UP MD name
001 Q
002 account.name
003 filename


If you are using D3 and have the ability to load an account, you can
download from Raining Data and account that provides most of what you need
as an on-line help catalog. Otherwise, it might be wise to order a set of
D3 reference manuals to read and look up information.

Also you can look in some recent postings here in CDP land within the last
month. Someone has reformatted the RD help database and put it on the web.
The link has been posted in a message on CDP.

Regards,

Dale

"GEEK^&" <darrellulm (AT) yahoo (DOT) com> wrote

Quote:
Hello,

Your help is *greatly* appreciated.

How do I create a Q pointer to a file in another account?

Thank you,

*(why is this information so hard to locate out there?)*




Reply With Quote
  #3  
Old   
Dave Mitchell
 
Posts: n/a

Default Re: Q Pointer - How to create one?! - 09-16-2005 , 01:41 PM



In UniVerse, you just issue the SET-FILE command from TCL. You will then be
prompted for the "Q name", which is the name you want to call your Q-Pointer
(not the actual filename), the "Account", which is the name of the account
where the actual file resides, and the "File", which is the actual filename
of the file you are pointing to.

Alternatively, if you are doing this from a program, the VOC entry would be
stored under the name that you want to call your Q Pointer, with attribute
<1> as the letter "Q", attribute <2> as the account name where the actual
file resides, and attribute <3> as the actual filename.

Once this is done (with either method), your "Q Name" will act just like a
local file; you can LIST, SORT, SELECT, etc from TCL, and you can OPEN,
READ, WRITE, etc in a Basic program.

Hope this helps

Dave

"GEEK^&" <darrellulm (AT) yahoo (DOT) com> wrote

Quote:
Hello,

Your help is *greatly* appreciated.

How do I create a Q pointer to a file in another account?

Thank you,

*(why is this information so hard to locate out there?)*




Reply With Quote
  #4  
Old   
Dave Mitchell
 
Posts: n/a

Default Re: Q Pointer - How to create one?! - 09-16-2005 , 01:44 PM



Dale - looks like we both posted a reply at exactly the same time.....
Don't know about you, but I always like to help with the easy ones.....


"Dale Benedict" <dale_knowspam_benedict (AT) flightcraft (DOT) ca> wrote

Quote:
UP MD name
001 Q
002 account.name
003 filename


If you are using D3 and have the ability to load an account, you can
download from Raining Data and account that provides most of what you need
as an on-line help catalog. Otherwise, it might be wise to order a set of
D3 reference manuals to read and look up information.

Also you can look in some recent postings here in CDP land within the last
month. Someone has reformatted the RD help database and put it on the
web.
The link has been posted in a message on CDP.

Regards,

Dale

"GEEK^&" <darrellulm (AT) yahoo (DOT) com> wrote in message
news:1126894579.099207.112810 (AT) z14g2000cwz (DOT) googlegroups.com...
Hello,

Your help is *greatly* appreciated.

How do I create a Q pointer to a file in another account?

Thank you,

*(why is this information so hard to locate out there?)*






Reply With Quote
  #5  
Old   
Jeffrey Kaufman
 
Posts: n/a

Default Re: Q Pointer - How to create one?! - 09-16-2005 , 03:02 PM



"GEEK^&" <darrellulm (AT) yahoo (DOT) com> wrote

Quote:
Hello,

Your help is *greatly* appreciated.

How do I create a Q pointer to a file in another account?

Thank you,

*(why is this information so hard to locate out there?)*

Try http://www.d3ref.com/




Reply With Quote
  #6  
Old   
Ed Sheehan
 
Posts: n/a

Default Re: Q Pointer - How to create one?! - 09-16-2005 , 05:18 PM



If you're on D3, you can path to other accounts/files "on the fly" by this
method:

:list otheracct,otherfile, blah blah blah

....same deal with open in BASIC:

open 'otheracct,otherfile,' to f.filehndl then/else...

Pay attention to the trailing comma...

Ed


"GEEK^&" <darrellulm (AT) yahoo (DOT) com> wrote

Quote:
Hello,

Your help is *greatly* appreciated.

How do I create a Q pointer to a file in another account?

Thank you,

*(why is this information so hard to locate out there?)*




Reply With Quote
  #7  
Old   
Dave Weaver
 
Posts: n/a

Default Re: Q Pointer - How to create one?! - 09-16-2005 , 05:33 PM



ADDITIONAL INFORMATION ON Q-POINTERS
==================================================
ID: If the real file is in another account, this is generally the same
ID as the real file. If the real file is in the SAME account this must
be some other (synonym) ID for the file.

Attr 001: Q
Attr 002: If the real file is in another account, this is the account
name. If the real file is in the same account, this must
be left null.
Attr 003: The name of the real file.

Optional:
Attr 009: L or R justfification. Default is L. If the keys to the
real file are numeric, this should be R to sort the items correctly.
Attr 010: Default is 10. May be coded for a different "key length"
of the keys in the real file.

Optional for D3:
Attr 015: Can contain a "macro" of field names to display if just
LIST filename <cr>. See example below.
Attr 017: Can contain a description of the q-pointer -- anything you
want to say. See MD DESCRIPTION.

Example:
Suppose the real filename is CUSTOMERS and the Q-Pointer name is CUST.
Then ....
001 Q
002 accountname or null (see above)
003 CUSTOMERS
....
009 L
010 17
....
015 ID-SUPP KEY NAME CITY STATE PHONE
....
017 This is a q-pointer to CUSTOMERS with macro in 015.

Dave Weaver, Weaver Consulting


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.