Home > AS/400 Tips > iSeries administrator tips > Stay current with PTFs to prevent problems
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Stay current with PTFs to prevent problems


Pascal Jacquemain
08.30.2000
Rating: -4.02- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Wednesday used to be my favorite day when I was a child. No school and a nice trip via the Buttes Chaumont gardens in Paris to my grandmother's flat to enjoy a lovely lunch. These days are long gone, and Wednesday has become a nightmare day. This is the day my company installs new software and upgrades, and things are not always as straightforward as we would like. About a month ago, I installed a new version of a program in which embedded SQL had substituted old-fashioned RPG to retrieve records. No problems doing that. It was later, when we received a visit from people at operations, that we learned interactive programs were falling over unexpectedly. Operations asked us whether we had installed anything related to these programs. We had not, but we figured out that a program was falling over with a level check error. Spooky we thought. Neither program nor display file had changed. Library lists were the same as before. So, why was this happening?

To ensure compatibility between files and programs, file record formats have an identifier. The quickest way to see them is by using the command DSPFD asking for RCDFMT information. When a module or program is compiled, a snapshot of concerned identifiers is taken and stored inside the module or program definition. You may view the snapshot by doing a DSPPGMREF. When a file is opened by a program, a check is made to ensure the current file record format identifier is the same as the snapshot contained in the program. If they disagree, an error is issued, unless the file is set or overridden to ignore such check. To override a file in such a way, you would do OVRDBF File LVLCHK(*NO).

As I said earlier, no change had occurred and yet a level check was happening. A closer look revealed something unsettling: A DSPFD on the display file showed that one of the identifiers had changed. Such identifiers are made of hexadecimal characters, and yet a had replaced one of the characters. This happened while the


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Performance
Extend storage capacity on an IBM i without negatively effecting system performance
Database drivers on the i: MySQL vs. IBM Toolbox
Performance tuning for IBM i: The basics and beyond
IBM releases new Power products for the midrange
Top System i admin tips for 2006
Catholic Charities keeps track of homeless with iSeries
i5 error messages: What you need to know
IBM races for clock speed
System shutting down after cleanup
What is the relationship between QZDAOSINIT jobs and QDBSRVnn tasks?

iSeries administrator tips
Translating Linux for IBM i admins: Using GUI to make it easy
Translating Linux for IBM i admins: Working with jobs and networking
OpenOffice: What to know before making the transition from Microsoft Office
OpenOffice: An enterprise open source solution
Database performance comparisons on IBM i
Translating Linux for IBM i admins: User profile commands
Modern System i reports using Client Access
Tips for installing Lotus Domino server on a System i partition
The iSeries Blog has a new home on IT Knowledge Exchange
Virtualization for IBM i: Backups

PTFs
How database views get deleted from AS/400 libraries
HIPER PTF installation and cover letters for SF99097
Group PTFs
Step-by-step PTF download determination
Online support for i5 (OS/400) PTF's
iSeries i5/OS: Top 10 Q&As
iSeries i5/OS: Top 10 Q&As
What PTFs do I need?
Enable your iSeries to automatically order fixes
Top 10 iSeries admin tips

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


file was held by dozens of users, and without leaving a trace in the object auditing. We could not recompile the file or move it and replace it with a "clean" version and had to get all users out of the system. We recompiled the program and saw that the snapshot for this format now incorporated a . The recompile worked and users were allowed back in. The same problem happened three more times. In one case, a Z replaced a character in an identifier, and in another one, the name of a subfile control format was corrupted. We managed to correct the problem by setting off the level checking for one display file and copying a clean version of the last file in QUSRSYS. By noon on Thursday, we were keeping our fingers crossed that this would not happen again. And we were delighted this had not happened to database files.

We made a quick call to IBM and ordered large PTFs. And surprise, surprise, they concerned SQL. This new program I'd introduced apparently managed to modify the display file sub-headers, and these PTFs would make sure that wouldn't happen again. The header of an object stores information such as the object name, its library, and who owns it. In the case of files, a sub-header is added that contains format names and their identifiers. That it was modified following a SQL problem seems extraordinary, but it is yet again an example of why one must keep up to date with PTFs.

I once heard of a bank that would not install PTFs, including HIPER PTFs, on its system until they had spent three or six months on a test machine. When you see what PTFs can correct, this is frightening. Our incident was relatively minor, but other PTFs cover more damaging problems. Without some PTFs, SQL might return wrong sets of records, RPG. Calculations might go wrong, data might be corrupted on disks, or expensive tape units might have to be replaced seven times in a month. (The latter happened to me at a previous company!)

The AS/400 is a great machine. Keep it this way. Keep it up to date.

Pascal Jacquemain is an analyst/programmer at Gulliver Travel in London. In addition, he has worked as an AS/400 instructor.


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts