|
A PF can have only one record format, but an LF can have multiple recordit
formats.
Because it's been ages since I last used them, I can only point you to
IBM's DDS for Physical and Logical files Reference. Search for
"multiple-format logical files in DDS" to find a code sample.
I'm not sure whether SQL can process a multiple format LF. Hopefully,
others can assist.
- Dan
On Tue, Dec 29, 2020 at 6:37 PM <smith5646midrange@xxxxxxxxx> wrote:
I'm starting to think that I am searching for something that doesn't
exist.
I thought there was a way of having a single "flat file" and breaking
beinto multiple record formats in the DDS so the individual records could
wereaccessed via SQL
For example: a flat file that would contain sales data
HdrFmt
RcdType
SaleNumber
SaleDate
DtlFmt
RcdType
SaleNumber
Item
Quantity
Price
PayFmt
RcdType
SaleNumber
PaymentType
Amount
If I wanted to query all of the detail records to find out what items
wheresold, I could do something like select item, count(*) from flatfile
inrcdtype = 'DTL' group by item
Am I just thoroughly confused thinking I have seen something like this
isthe past? If not, can someone please provide the DDS to show me how it
separatedone? Nothing that I have tried has worked. I know I can create
selectingPFs and copy the appropriate data to each file via a CPYF *NOCHK
tryingthe appropriate rcdtype but that defeats the purpose of what I am
to
do.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.