Add a Second File Description to your Application Program
The second way to minimize space-extension overhead applies to application programs that add records to an existing database file. First, add a second file description for the file to your processing program, and open that file description for output only. Then, prior to calling the program, issue an OVRDBF (Override Database) CL command specifying SEQONLY (*YES nnnn), where nnnn is the output blocking factor (i.e., 128 K divided by the record length equals nnnn). Be aggressive with the blocking factor and get it as close to 128 K as possible without exceeding it.
Tuesday, March 01, 2005
Subscribe to:
Post Comments (Atom)
Popular Posts
- List Job (QUSLJOB) API
- Using QCLRDTAQ to clear data queues in CL and RPG
- UDATE and *DATE in AS400 RPG
- AS400 Job Scheduler
- What is QZHQSSRV job?
- API Example - Deleting Old Spooled Files
- Creating an as400 Query
- AS400 APIs
- Encrypt Data on as400 (QC3ENCDT, Qc3EncryptData)
- 80 Column Punched Cards and the History of RPG on the AS400
No comments:
Post a Comment