Author Topic: Using another file's dictionary  (Read 4499 times)

DonQuixote

  • Rock Star
  • *****
  • Posts: 204
  • To Dream the Impossible Dream...
Using another file's dictionary
« on: August 05, 2014, 05:20:00 PM »
LIST filename USING altfilename attribute

In my development account the above command works properly.  I can use a dictionary item from an alternate file.  But in my live account the error is "Illegal attribute name".   But the attribute does exist.
Any ideas what's going on?

Colin Alfke

  • Professional
  • ***
  • Posts: 23
Re: Using another file's dictionary
« Reply #1 on: August 06, 2014, 09:14:10 AM »
Check if any of the attributes are in the VOC. If they are defined differently there it could cause this problem - especially if the development account has different dictionary items.

hth

DonQuixote

  • Rock Star
  • *****
  • Posts: 204
  • To Dream the Impossible Dream...
Re: Using another file's dictionary
« Reply #2 on: August 06, 2014, 10:17:47 AM »
After double checking every command, file, and attribute and giving myself a hard time for missing the obvious and at the edge of giving up all hope... I found the answer.
The proper command is
LIST filename  USING DICT altfile  altattribute

the solution created another question... why did it work in the development account.
the altfile's VOC had the dictionary listed twice.
001: F                               
002: /ud/DEV-DATA/D_HIP.DEVSHELL     
003: /ud/DEV-DATA/D_HIP.DEVSHELL

It should be
001: F                               
002: /ud/DEV-DATA/HIP.DEVSHELL     
003: /ud/DEV-DATA/D_HIP.DEVSHELL

I hope my mistake, helps someone else.
You also may be wondering why you'd use an alternate dictionary.   A good use is when you need to create a WORK file of a manageable size.  Happy Programming.