|
I'm not sure that a DB2 file will do what you need; how about an IFS file? You can use the C functions read() and write() to build your stream of bytes from the DB2 file. The archives at www.midrange.com will have postings on IFS files and how to use C functions from RPG IV. The same idea will work in ILE Cobol. A combination of CPYTOSTMF/CPYFRMSTMF might work, too. Copy it down as *FIXED then copy it back to a wider DB2 file... Buck Calabro Aptis; Albany, NY > -----Original Message----- > From: Vishal Gupta > Sent: Friday, November 05, 1999 5:18 AM > To: rpg400-l@midrange.com > Subject: sequential file > > Hi everybody, > > I have to make a sequential file in output from an input which has 100 or > > more records. By sequential file i mean that all the records gets appended > > one after the another and final file should have only one record with all > the records in input appended one after the another . > > Even cobol/400 or ILE cobol does not support the concept of line > sequential > and sequential where as MF cobol does support. > > Is there any way to do this on AS/400, Please suggest. > > Thanks, > Vishal. > +--- | 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 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.