D3- Make a DATA look like it belongs to other DICTs

D3- Make a DATA look like it belongs to other DICTs

Post by Tony Gravag » Tue, 24 Feb 1998 04:00:00



A customer had a request a few weeks ago that went something like the
following:  I have file DICT FILEA and it has no DATA file.  I have
DICT and DATA FILEB.  I want to make it look like the DATA file of
FILEB belongs to FILEA.  You cannot put a Q pointer in a DICT of one
file that refers to the DATA of another file.

I thought this was intriguing because I know a lot of applications
have one standard dictionary which is cloned for every new similar
data file.  Example: DICT PATIENT-MASTER*XXX gets copied to every
*001, *002, *nnn dictionary that gets created.  To use one DICT on
DATA files belonging to different DICTS, in Access (AQL), you need to
say SORT FILEB USING FILEA XX YY XX.  That can sometimes be
cumbersome.

So, I found a solution to this that is a little hokey, but hey, it
works...  Use the OSFI and Super Q-pointers:

U DICT FILEA qname
001 Q
002
003 this.hostname:this.account,FILEB,

You will now be able to say LIST FILEA and you will be looking at the
data in FILEB.  You can create more q-pointers in the DICT of FILEA so
that you can say LIST FILEA,FILEX   or    LIST FILEA,FILEY  and these
files will use the DICT of FILEA, but still look at FILEX or FILEY.

A cool extension of this is another q-pointer to the construct that
you just created.  Example:
new item MYINFO:
001 Q
002
003 FILEA,FILEX

Now LIST MYINFO shows the DATA from FILEX using the DICT of FILEA.

Don't use QS instead of Q because the QS pointers are saved in
file-saves and you don't want to save the pointed-to D-pointer plus
the QS info.  There's also a *y bit of overhead involved because
this goes through one of your OSFI server ports - no pain, no gain...

There are all sorts of applications for this - I leave it to you to
find them.  I haven't run this by anyone else yet.  I know that there
is an action item open for this concept, but we don't have anything
official on it yet.  It's not an official technique, but, like I said,
it works.

Have fun.  Please let me know if this does you any good.

Tony

Pick Systems Quality Assurance Manager
http://www.veryComputer.com/
## Insert disclaimer here about how these comments
## are mine and not my employer's.
## Oh, I did?
## Never mind.

 
 
 

D3- Make a DATA look like it belongs to other DICTs

Post by BurslemW » Tue, 24 Feb 1998 04:00:00



>Have fun.  Please let me know if this does you any good.

Thanks Tony.

I have a special folder I've created to save tips like this. Keep them coming!

Jeff Burslem

 
 
 

D3- Make a DATA look like it belongs to other DICTs

Post by Tom McTee » Tue, 24 Feb 1998 04:00:00


Tony,

Unless I'm missing something, I have been using a much simpler technique on
D3/SCO for 2 years. This also works on Native and Pro.

Specify the account name in ATT 2 and the data file in ATT 3.

u dict filea filea
001 Q
002 account.name
003 fileb

I use this alternate DICT to create SQL tables. This allows modification to
duplicate set of ATT definition items requiring different output criteria
without disturbing the original DICT.

No pain needed!

Tom
------------------------------------


>A customer had a request a few weeks ago that went something like the
>following:  I have file DICT FILEA and it has no DATA file.  I have
>DICT and DATA FILEB.  I want to make it look like the DATA file of
>FILEB belongs to FILEA.  You cannot put a Q pointer in a DICT of one
>file that refers to the DATA of another file.

>I thought this was intriguing because I know a lot of applications
>have one standard dictionary which is cloned for every new similar

<snip>
 
 
 

1. D3 linux Adapatic 7890 no likee (18 gig) on 5.2 but likes 6.0

Trying to install D3 Linux (5.2) on a machine whose hard drive uses Adaptic
7890 drivers. When doing the install of D3  Linix, The Linux propotion of D3
prompts for the Scsi driver. The Drivers supplied by D3 or Redhat 5.2 do not
like the 7890 driver. and chokes on auto probe. Tried the Module selection but
not certain what option to fill in the blank. The driver (7890) is used on the
Dell, Gateways, Compaqs. machines with larger disk drives
Any ideas how to work around ? I loaded redhat 6.0 and it likes the machine ,
when I tried loading Picks 5.2 no likee
Thanks in Advance

2. PostgreSQL JDBC - Broken pipe

3. Data Flow Tools/Data Dict.??

4. RFD: comp.soft-sys.app-builder.omnis

5. How to detect changes made by others

6. What are the different between MS Clustering and Fault-Tolerant Server like Octopus ?

7. How to detect changes made by others- (Microsoft SQL Server JDBC-Driver)

8. In dynamic Sql, , I reach the varchar limit is 8000 characters

9. Making databases R/W to my app, R/O to others

10. Problem making the ENTER keystroke unavailable and others

11. no one likes the DATA CONTROL

12. Internal Oracle Error: Looking for others

13. Getting info on constraint from data dict. tables