View this email as a Web page Please add System iNetwork Programming Tips to your Safe Sender list.

System iNetwork
Network Home Forums Archive Join the Network Contact Us
System iNetwork Programming Tips
Issue 337
January 28, 2010
From the Editor

Folks, there's a lot happening in the IBM i world these days, and I'm very excited about it. Here are some upcoming events I want to tell you about:

On February 11, I'll be driving down to St. Louis to speak for the Gateway400 user's group. That's going to be a blast! I made it down there about two years ago and really enjoyed it. If you're located in the greater St. Louis area, check it out--you won't be sorry!

On March 16, I'll be joining an Expert Panel at the WMCPA Spring Conference here in Wisconsin. I recently spoke at a WMCPA meeting and made a video. The video talks about the people at WMCPA (which is the local user group where I live) as well as their fantastic spring conference.
Click here for my video!
Click here for the WMCPA website, with full details about the conference.

On March 23-25, the awesome RPG & DB2 Summit conference will be held in Fort Worth, TX. The Summit will feature lots of material on RPG, SQL, PHP, and other technologies important to IBM i programmers. This is such a great event, with the best speakers in the world, it's hard for me to even put it into words! The staff of RPG & DB2 Summit has graciously agreed to work with me on more podcasts for this newsletter. Check out the podcast article, below!

I'll try to keep a list of all of my upcoming events on my website, in case I don't have a chance to post them here. If you see me at any of these events, please say hi.


LANSA
LANSA Let your applications live long and prosper. Transport your apps to a new dimension with RAMP — the ONLY modernization solution with a prototyping and design framework that blends the best aspects of refacing, reengineering and rebuilding into a single solution with improved navigation and search capabilities. Learn more at a FREE Webinar!

APIs by Example: Work with LAN Printers Command
By Carsten Flensburg

In the October 22, 2009, APIs by Example column, I present a homegrown version of the Additional Message Information panel. This panel lets you display and optionally reply to a message residing in a message queue, based on the qualified name of the message queue and the message key identifying the specific message to display. The usefulness of such a facility is prompted by the ability of some jobs and print APIs that return the name of the message queue assigned to a job or printer as well as the message key when the job or printer is currently waiting for a reply to a message.

Today, I present an example of how to use one of the aforementioned APIs in collaboration with my Additional Message Information panel, thereby providing a functionality similar to the one offered by many native IBM Job and Writer CL commands' list panels, including an option 7=Display message. Because I currently have no access to a system at release 6.1, which is required to take advantage of the Message wait message key information added to some of the Job APIs at that release, I decided to create a utility based on one of the Writer APIs, which for some time now has included this information. Say hello to the Work with LAN Writer (WRKLANWTR) command.

*Read More...
Why Not Video Documentation?
By Scott Klement

Programmers are notorious for their dislike of documenting code. (I'm no exception! Comments in code aren't too bad, but writing documentation for users?!) Nonetheless, we all have to do it, right? I know that in our shop, we need to create "run books" that explain step-by-step how a user is to perform a particular task, such as entering an order or adding a customer.

Written documentation works OK for plain-text screens. But it never works as well as demonstrating the process for the user, where he can see the screens as I'm typing the commands. With GUI software, being able to see the actual screens is even more important. For example, written software that has instructions like "click the doo-hickey that looks like a curly arrow" can be hard to follow.

Therefore, I'm proclaiming that the age of video documentation has officially begun! With video documentation, you can easily create a step-by-step tutorial for your users and show them exactly what the screens look like, and they can watch it anytime. Best of all, it's free!

*Read More...

System i Developer
System i
Developer Join the leading RPG & DB2 minds at the RPG & DB2 Summit this March for three days of intense education and personalized advice on RPG IV, SQL, DB2, RSE, PHP, RPG & the Web and more. Check out this partial list of sessions from top gurus Susan Gantner, Jon Paris, Skip Marchesani, Paul Tuohy, Scott Klement and others, delivered in a highly interactive, fun environment. Register by Feb 12 for just $995 - save $300!
SystemiNetwork
House
Ad

Evaluate your System i security!
Provide us with some quick information and you'll earn a chance at winning an Apple iPod Touch 8GB, 3rd Gen. Start here!


Locking Cells in HSSF
By Scott Klement

Q: We've been using your "Excel from RPG" stuff, and love it. But I've been unable to figure out a way to lock cells in a spreadsheet with POI! We're generating a form in which users can fill in some fields, but we don't want them to change others. How can we lock the cells against changes?

A: Locking cells in HSSF is easier than you might think. You first have to protect the sheet by calling the protectSheet() method of the HSSFSheet class and assigning a password that will be needed to unlock the sheet from within Excel. Once you've done that, call the setLocked() method for each cell style used in the sheet. For the cells you want to be locked, you have to create separate cell styles from the ones for the cells you want unlocked.

*Read More...

Podcast: MySQL: Blessing or Heresy?
By Scott Klement, Susan Gantner, and Paul Tuohy

Last year, I published several special RPG & DB2 Summit podcasts in which experts from the RPG & DB2 Summit conference discussed some of the hot issues that today's IBM i programmers face. Because these podcasts were very popular, we've decided to do it again!

This podcast features Paul Tuohy interviewing Susan Gantner about using MySQL on i. Since we have our familiar integrated DB2 database, why would we ever want to use MySQL on i? To the IBM i faithful, is MySQL a blessing, or is it heresy?

*Listen to the podcast...


On the Web

IT Pro, Train Thyself
In a tough job market, you need every advantage you can get, but you don’t have extra money for training. The free and low-cost self-training options described in this roundup of self-training tools will help you get ahead without spending too much.


Sign Up for Other System iNetwork Newsletters!
Enter Your E-mail Address:

System iNetwork Systems Management Technical tips, insight, and utilities for configuration, performance, security, and other operational topics, which is sent on alternating Wednesdays.

NEWS Daily System i-related news and announcements Monday-Thursday.

My i & .NET Monthly e-mail newsletter presenting technical articles, how-to guides, tips, and case studies on the integration of .NET applications.

RPG Coder Technical tips and techniques for RPG programmers and developers, which is sent on the 1st and 3rd Thursday of each month.

Sign-up form doesn't work? Subscribe at System iNetwork.com

Thank you to our sponsors:
LANSA
System i Developer

sponsorArray[1].sponsorName

sponsorArray[2].sponsorName

sponsorArray[3].sponsorName

From System iNetwork
e-Learning

Feb 24 -- Introduction to Microsoft .NET Programming for System i Applications
Learn about the Microsoft development environment with practical examples of how to use Microsoft .NET technologies to develop iSeries/System i applications.



Contact Unsubscribe Advertise Submit Press Release

You are subscribed as: #email# (not #email# ? Subscribe Now.)

To unsubscribe from this e–mail please click here.

For questions, comments, and reader feedback about an item covered in System iNetwork Programming Tips contact Scott Klement .

Copyright 2010 | System iNetwork | Penton Media | 221 E 29th St. | Loveland, CO 80538 | Privacy Policy

"System i" is a trademark of International Business Machines (IBM) Corporation and is used by Penton Media, Inc., under license. System iNEWS, SystemiNetwork.com, and the SystemiNetwork.com newsletters are published independently of IBM, which is not responsible in any way for the content. Penton Media, Inc., is solely responsible for the editorial content and control of System iNEWS, SystemiNetwork.com, and the SystemiNetwork.com newsletters.

GIN-