PH and text files
Robert Edis
robeconsult@sbcglobal.net
Wed, 13 Apr 2005 10:46:02 -0700 (PDT)
The issue (at least on OpenVMS) is not whether the
file is fixed or variable length but the fact that
unless the record fields are defined in a PH
Dictionary Quiz won't know how to parse the record
into its components. The developer would have to
write complex and redundent code in Quiz to parse out
the separate fields unless the metadata is defined in
a dictionary.
Blue
--- Guy Werry <guy.werry@hbms.ca> wrote:
> Is this one of those things where it would be easier
> to re-format the data
> using a utility program and THEN feeding the Quiz?
>
> For instance, on Unix the utility program "awk" is
> ideally suited to reading
> a variable-length comma delimited file and it could
> write out a fixed length
> output file. This would probably be much simpler
> than goofing around with
> Quiz in order to read the variable length file.
>
> Unfortunately, I don't know anything about OpenVMS,
> so this sort of utility
> may not exist.
>
> Good Luck,
> Guy L. Werry
> Senior Systems Analyst
> Hudson Bay Mining & Smelting Co., Limited.
>
> -----Original Message-----
> From: Robert Edis [mailto:robeconsult@sbcglobal.net]
> Sent: Wednesday, April 13, 2005 11:49 AM
> To: PowerHouse List
> Subject: Re: PH and text files
>
>
> G'day Aci
>
> Reading a variable length file with Quiz is not
> normally any problam at all on OpenVMS. However
> Quiz
> does not know how to parse the fields using
> delimiters
> unless you define the record in a dictionary.
>
> If you don't want to modify your existing PHD or
> create a new, perhaps temporary one, by creating a
> specific file/record entry with field details you
> can
> create/use a simple file/record entry in the PHD
> that
> shows the records as having only one field. You
> then
> need to write field parsing logic in the Quiz code
> itself.
>
> Blue
>
>
> --- Aci Polajnar <Aci.Polajnar@rcc-irc.si> wrote:
> > Hi there
> >
> > Anybody, is there a way to read variable length
> text
> > file, comma delimited usinq QUIZ. My platform is
> > ALPHA/VMS and PH-710G
> >
> > Thanks and best regards!
> > --
> >
>
________________________________________________________________
> >
> > Aci Polajnar Tel : +386(0)3
> > 4274174
> > IS Consultant Fax : +386(0)3
> > 4274198
> > Razvojni Center Celje e-mail:
> > acip@rcc-irc.si
> > 3000 Celje, Slovenia URL :
> > http://www.rcc-irc.si
> >
>
________________________________________________________________
> >
> >
> --
> = = = = = = = = = = = = = = = = = = = = = = = = = =
> = =
> Mailing list: powerh-l@lists.sowder.com
> Subscribe: "subscribe" in message body to
> powerh-l-request@lists.sowder.com
> Unsubscribe: "unsubscribe <password>" in
> message body to
> powerh-l-request@lists.sowder.com
> http://lists.sowder.com/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you
> must be a subscriber.
> --
> = = = = = = = = = = = = = = = = = = = = = = = = = =
> = =
> Mailing list: powerh-l@lists.sowder.com
> Subscribe: "subscribe" in message body to
> powerh-l-request@lists.sowder.com
> Unsubscribe: "unsubscribe <password>" in
> message body to powerh-l-request@lists.sowder.com
> http://lists.sowder.com/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you
> must be a subscriber.
>