HP3000-L Archives

March 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Russ Smith <[log in to unmask]>
Reply To:
Russ Smith <[log in to unmask]>
Date:
Thu, 23 Mar 2000 12:14:41 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (46 lines)
Tom,

    DUP and RDUP allow for duplicate values within the same key.  My problem
is that the program won't write the same value to two different keys.  Just
to be sure, though, I tried adding DUP, and then RDUP, to my build command.
The problem still exists.

    As a few side notes - When I change the program to write the data to a
flat file, it is writes the data correctly.  If I change the file to have
only one key, it acts the same as it does now.  It's as though, I can't
write the same data in the KEY and NON-KEY fields.

This is too weird.
Rs~

Russ Smith, Systems Consultant
Problem Solved, Vacaville, CA
r s m i t h @ c u - h e l p . c o m
h p 3 k - l @ e - 3 0 0 0 . n e t
----- Original Message -----
From: "Tom Brandt" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Thursday, March 23, 2000 11:50 AM
Subject: Re: [HP3000-L] Strange KSAM file behavior from a C program


> At 02:26 PM 03/23/00 -0500, Russ Smith wrote:
> >To my fellow e3k-ers,
> >
> >I am having a problem with a C program writing data to a KSAM file.  The
> >entire buffer is not being written to the file when the two keys have the
> >same value.  Some background -
> >
> >:build
>
>KSAM1;dev=disc;disc=75000;rec=-16,,f,ascii;nocctl;ksamxl;key=(B,1,8;B,9,8)
>
> I think you need to specify either ;DUP or ;RDUP on your KEY parameter to
> tell KSAM that duplicate key values are allowed.
>
>
> Tom Brandt
> Northtech Systems, Inc.
> http://www.northtech.com
>

ATOM RSS1 RSS2