[Download-List] Using Downlaod to download all fields in a file.

David L. Rotman rotmand at cedarville.edu
Mon Jun 27 14:01:16 EDT 2005


The dictionary entry looks fairly routine, so it may be time to
check for something less obvious.

Do you have an entry called TYPE in DICT.DICT?  I'm not
sure if that entry is a standard part of the Unidata/Universe
distribution or not.  Ours is defined as:
FIELD(FIELD(@RECORD, at FM1,1),' ',1,1)

The reason we don't use the standard TYP is that dictionary
entries often have comments added to field 1.  That provides
good documentation, but makes the standard dictionary
sort a little strange.

At any rate, DOWNLOAD is constructing a sentence like
   SELECT DICT filename BY TYPE
which will fail if TYPE doesn't exist in DICT.DICT.  (Sounds
like I have an ease-of-use change to make in the next
version of DOWNLOAD.)




>>> "Michael H. Martel" <martelm at quark.vsc.edu> 6/27/2005 1:36:29 PM >>>
--On June 27, 2005 12:06:31 PM -0400 "David L. Rotman" 
<rotmand at cedarville.edu> wrote:

> Does your file 'www.STATE' have any dictionary entries?
> DOWNLOAD reads the dictionary looking for data fields
> in order to know what output to produce.

When I do a LIST DICT on it I see ...

LIST DICT www.STATE BY TYP BY @ID TYP LOC CONV NAME FORMAT SM ASSOC
13:30:56 Jun
 27 2005 1

@ID............ TYP LOC.......... CONV NAME........... FORMAT SM
ASSOC.....


@ID             D               0      www.STATE       10L    S
www.ADDRESS     D               1                      50L    S
www.PORT        D               2                      4L     S
www.REQUEST     D               3                      99L    M
www.STATE.ID    I   FIELD(@ID,"*"      www.STATE ID    18R    S
                    ,1)

5 records listed



> Adding HEADING FIELD.NAMES to your DOWNLOAD
> statement might help verify where the problem is occurring.

I get ...


DOWNLOAD www.STATE @RECORD HEADING FIELD.NAMES FILE _HOLD_ MY.TEST2
DOWNLOAD version 7.12

Creating temporary list DLMHM0609048595
632 key(s) saved to 1 record(s).
632 records retrieved to list 1.

Using input file www.STATE 
Output to file _HOLD_ MY.TEST2


**************************************************     500
*************

632 records processed.

Deleting temporary list DLMHM0609048595
'DLMHM0609048595' deleted.

:!more _HOLD_/MY.TEST2

"@ID"
"044593060572882*07"
"888040626857169*07"
"762854409275085*07"
"838035695764305*03"
"220906110955584*07"
"500267033911585*03"
"036895053078200*03"



Michael

--

  --------------------------------o---------------------------------
   Michael H. Martel              | Systems Administrator
   michael.martel at vsc.edu         | Vermont State Colleges
   http://www.vsc.edu/~michael    | PH:802-241-2544 FX:802-241-3363



Dave Rotman
Director of Computer Services
Cedarville University
251 N. Main Street
Cedarville, OH 45314
rotmand at cedarville.edu
voice 937-766-7905
fax 937-766-8819





More information about the download-list mailing list