Two Queries are Better Than One
To improve performance of a query (Query/400, SQL/400, Open Query File, and so on) where large files (more than 100,000 records) are joined, use paired queries. The first query selects records and uses a database file for output. The second query uses the file created by the first query and sorts it, using any of the output options. Our query performance improved three to one using this method.
Faster Processing by Sequential Read
When processing a file in an RPG program, it is more efficient to process it sequentially than by key. So if you don't need the records in any particular order-for example, when all you want to do is update every record in a file- leave the 'K' out of column 31 in the F-specs. The first time I tried this, I saved 20 minutes on a two-hour batch job.
Faster CPYF File Copies
When you are copying one indexed file to another file and the physical record sequence of the resulting file does not matter, key a '1' in the FROMRCD parameter of the CPYF command. This will cause the copy to read the from file in arrival sequence, which is much faster than reading the file in keyed sequence. Here is an example of the command:
CPYF FROMFILE(LIB1/AAA) TOFILE(LIB2/BBB) MBROPT(*REPLACE) + CRTFILE(*YES) FROMRCD(1)
Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.
IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn:
LATEST COMMENTS
MC Press Online