• Subject: Re: Can a PF have >1 record fmt
  • From: D.BALE@xxxxxxxxxxxxx
  • Date: Tue, 9 Jan 2001 17:09:00 -0500

That's what I thought.

Do the contents of the input record modify both FileNM_DS & FileCR_DS for each
record read, as I suspect?

So, if you want to hold the values of the header record while you're reading
all the detail records, you'd have to move the header data structure to
another data structure?  Or maybe I'd just drop the pointer business, and
movel ARBuffer to the appropriate DS?  (Would have to move DS data back to
ARBuffer before updating or adding records.)

If you modify a field in one of either the FileNM_DS or FileCR_DS data
structures, will the modified bytes show up in the other?

Dan Bale
IT - AS/400
Handleman Company
248-362-4400  Ext. 4952

-------------------------- Original Message --------------------------
You need to look for unique data contained in one of the record formats
that isn't contained in the other.  In my particular case, I know that
a certain field in one of my formats, the header, will contain a *Zero
otherwise it will not be a *Zero.

In another file a different company sends me, in the header record there
will be *Blanks in a certain field where in the body there will be a text
string (container number).

And, yes, you just output ARBuffer.  And read ARFile.

Regards,

Jim Langston

Date: Tue, 9 Jan 2001 14:34:00 -0500
From: D.BALE@handleman.com
Subject: Re: Can a PF have >1 record form

Thanks for the example, Jim.  Upon reading a record from the file, how do you
know which "format" it is?

When you update the record, do you just output ARBuffer?

Dan Bale
IT - AS/400
Handleman Company
248-362-4400  Ext. 4952
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.