× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Dual Format
  • From: Chris Bipes <rpg@xxxxxxxxxxxxxxx>
  • Date: Wed, 5 Jan 2000 15:32:51 -0800

We have done this for our bank and ACH transactions.  Sorry, the S36 flat
file is the easiest way.  We actually open a tape file and write the header
record, sub header, detail, sub totals, sub header, sub totals, file totals.
Ugly but that is what they are processing..so one must fit the data to the
application.  We also write a native data base using multiple physicals for
our own keyed use.  We used external described file to build data structures
for writing to the flat sequential file.


Have fun,

Christopher K. Bipes     mailto:ChrisB@Cross-Check.com
Sr. Programmer/Analyst   mailto:Chris_Bipes@Yahoo.com
CrossCheck, Inc.         http://www.cross-check.com
6119 State Farm Drive    Phone: 707 586-0551 x 1102
Rohnert Park CA  94928 Fax: 707 586-1884

*Note to Recruiters
Neither I, nor anyone that I know of, is interested in any new and/or
exciting positions. Please do not contact me.


-----Original Message-----
From: Jim Langston [mailto:jlangston@conexfreight.com]
Sent: Wednesday, January 05, 2000 3:06 PM
To: RPG400-L@midrange.com
Subject: Dual Format


Our bank wants us to send them a file with all our check
information.  Their file layout is a dual file layout, with a
control record and a detail record (their program that
reads this is obviously a COBOL program since they
describe the length and such as PICTURE like 9(08)V99).

I am trying to decide the best way to do this.  I was hoping
to be able to get away with creating two files, one for the
header and one for the detail, then just copy them to one
file before I transmitted it, but now I see I am going to have
to create many header records.

I don't like the thought of back stepping and doing it S36 style
with file described files either.  I was thinking about a multi-format
logical, but there are not unique fields in the files to be able to
key them on.

I think I am going to have to open up the 2 files I created with DDS
just for the record layouts, then do some type of overlay to get the
record layout into the fixed length field of the un-DDSed file (the one
I will be writing too).

Can anyone think of a better way?  If not, could someone give me
an example of how to do what I am trying to do?  That is, over lay the
40 bytes of my DDS to another field.  The DDS is externally described,
so is not in my program itself.  I am dealing with a small number of
fields,
7 in each of the header and details.

Regards,

Jim Langston
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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.