[Info-vax] Help with DECBasic: reading a record in an INDEX SEQ file using a compound key

seasoned_geek roland at logikalsolutions.com
Fri Jan 8 16:29:38 EST 2010


It sounds like you need to surf over to the Island Computers web site
and order a copy of "The Minimum You Need to Know to Be an OpenVMS
Application Developer".  BASIC is covered quite thoroughly there.

On Jan 6, 7:01 am, thick_guy_9 <jose.santos.mouri... at gmail.com> wrote:
> All
> I need some help with DECBasic. All the examples in the BASIC USER
> GUIDE use a simple key.
>
> This is how I open the file:
>
> OPEN sFILENAME  AS FILE #1  &
> ,access         modify      &
> ,allow          modify      &
> ,map            REC_MAP         &
> ,organization   indexed     &
> ,primary        (PAN, DOB)  ! <======= NOTE &
> ,alternate      LAST  duplicates changes &
> ,alternate      FIRST duplicates changes
>
> FIND #1, KEY #0 EQ "sMyPAN,sDOB", REGARDLESS
> GET #1
> The above Get command gives me a "RECORD NOT FOUND" error.
>
> Did I get the syntax correctly?
>
> Thanks!




More information about the Info-vax mailing list