RELATIVE file organization
Peter Bateman
shediac92@hotmail.com
Fri, 09 May 2003 16:41:13 -0300
Karen:
You could reserve the first two characters as a RECORD_TYPE.
In PDL apply the select option of the ITEM statement on the RECORD_TYPE.
SELECT value
Assigns a selection value that identifies a particular record-structure in a
file that contains more
than one record-structure. You must specify a value that's consistent with
the type and size of
the element. You can declare a selection value for more than one item in a
record-structure.
Items that are defined with SELECT values serve as identifiers for coded
record-structures.
When the record-structure is accessed by PowerHouse, each record in the file
is read, but only
those records with the appropriate selection value are retrieved. Selection
values also serve as
unalterable initial values when a record is created.
Limit: Eight characters for CHARACTER items; nine digits for NUMERIC items.
ITEM RECORD_TYPE SELECT " "
When it is time to delete it you would set RECORD_TYPE to something else
you may have to create a alternate record layout without the SELECT option
to do this.
>From: "karen d'souza" <kaz_dsouza@yahoo.com>
>To: powerh-l@lists.swau.edu
>Subject: RELATIVE file organization
>Date: Fri, 9 May 2003 06:47:19 -0700 (PDT)
>
>Migration an app to UNIX from VMS ... VMS supports it whereas UNIX does'nt
>... Any ideas
>
>karen d'souza <kaz_dsouza@yahoo.com> wrote:
>Does Powerhouse support relative file organization ... Or do i need to
>change ti to sequential
>
>Regards
>
>Karen
>
>
>---------------------------------
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo.
>
>---------------------------------
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo.
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail