[mod.computers.vax] VMS CLI routine problems

02335@UWAV4.BITNET (05/21/86)

Subj:  VMS CLI routine problems

I am unable to give a default list to a qualifier in a CLD.  This is
what I am doing.

      Qualifier DEPARTMENTS
                value(list,default=("ENGR","CIVE","OTHER"))

Now when I SET COMMAND to this it works fine.  VERB, however, shows
it like this:

      qualifier departments
                value(list,default="ENGR,CIVE,OTHER")

Which is not correct, but may be a bug in VERB.  Now I run the image
and do this:

      10 istat = CLI$Get_Value("DEPARTMENTS",dept)
         if (.not.istat)  call exit(istat)
         print*, dept
         goto 10

What I get is:

      ENGR
      %DCL-W....  entity missing

What I should get is:

      ENGR
      CIVE
      OTHER
      %DCL-W...  entity missing

If I do this:

      $ command/department=("ENGR","CIVE","OTHER")

I do indeed get the desired output.  So it looks like the SET COMMAND
is screwing up my default list.

However if I do this:

      $ command/depart="ENGR,CIVE,OTHER"        ! like VERB shows it

I get what you would expect:

      ENGR,CIVE,OTHER
      %DCL-W...   entity missing

Is this a known bug or should I forward it to DEC.  Does anyone have
a work around other than hardcodeing the default list in the program?

Thanks,

Tony Andrea
Engineering Computer Services
University of Washington

BITNET:      02335 at UWAV4
ARPA/CSNET:  02335%uwav4.bitnet@wiscvm.arpa

Wahl.ES@XEROX.COM (05/22/86)

Your problem may be that you're not listing DEPARTMENTS as a default
qualifier, only their default values.  It should be:

      Qualifier DEPARTMENTS, DEFAULT,
                value(list,default=("ENGR","CIVE","OTHER"))

--Lisa