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

System iNetwork
System iNetwork Programming Tips
Issue 325
June 25, 2009
Symtrax
Symtrax Compleo Suite reformats spool data/outputs directly from within the ERP spool file/output device system converting them to PC Formats such as excel. Large reports can be broken into perfectly formatted smaller ones, enriched with external data and graphics and the process can be fully automated. Join us for a Live Webinar that demonstrates the power and simplicity of Compleo Suite. JOIN NOW

APIs by Example: A Validation List Entry's Life Cycle in CL Commands
By Carsten Flensburg

This week, I continue the coverage of validation lists and validation list entries, which I began in the June 11 issue of this newsletter. In that article, I discussed the basics of validation lists and the anatomy of validation list entries, and I also provided new validation list commands. I recommend reading the article, if you haven't already. A link is provided at the end of this article.

As I've demonstrated in my earlier contributions to this column, you'll often build the validation list APIs and functions directly into your applications. You can also find links to these articles at the end of this article. However, while developing and testing these applications, you'll often need to create, change, verify, and remove validation list entries to make sure that everything works the way you've designed and planned. This is where the Add Validation List Entry (ADDVLDLE), Verify Validation List Entry (VFYVLDLE), Change Validation List Entry (CHGVLDLE), and Remove Validation List Entry (RMVVLDLE) commands I present today can offer some assistance.

*Read more about validation lists and the ADDVLDLE, VFYVLDLE, CHGVLDLE, and RMVVLDLE CL commands.


FEU (File Edit Utility)
Applied


Logic If you aren't using FEU™, find out what you're missing!
System i professionals in more than 100 countries rely on FEU as the easy and secure way to work with their databases. Use FEU to find and correct bad data, perform global updates, retrieve deleted records, convert selected data to other formats, and so much more! Find out more and download the totally free 30-day trial of this must have tool…
NEWS on i
HouseAd eNL NEWS on i -- Not just any news -- Chris Maxcer breaks it down for you with easy-to-digest news, announcements, and trends. Featuring a twice monthly podcast and MAXED OUT blog excerpts and reader comments -- this is one newsletter that has it all! Click here

Sending Messages from RPG to a Syslog Server
By Scott Klement

I was sitting here struggling to find a new and exciting topic for this week's newsletter when I received an email from a colleague who wanted to write log entries from RPG to a Syslog server. He said it was hard to find information and wanted to know if I had worked with it.

As luck would have it, I have in fact worked with Syslog. I had not previously thought of using it as a way of logging messages from an RPG program, but why not?

Syslog is the logging tool originally used in Unix environments. In addition to ordinary computers, many of today's network appliances also support Syslog, and that has made Syslog ubiquitous. Better yet, Syslog can send its log entries in realtime over a network to another server. This lets you consolidate your logs because all your applications and network appliances can write their logs to a common server. Instead of having to log on and check the logs of dozens (or even hundreds) of individual machines, you can check them all together in one place.

It makes perfect sense to me that RPG business applications might want to write log entries to Syslog as well--so this article shows you how.

*Read More...

An Improved DB2 Command for QShell
By Scott Klement

I really like the db2 command available in QShell. It's a simple shell command that runs an SQL statement it receives as a parameter. It will even return result sets from SQL SELECT or CALL statements. Not only is this tool useful from QShell, but it's also useful in CL programs, because CL doesn't have its own embedded SQL like other ILE languages do.

Unfortunately, the db2 command from QShell is missing some details--small things that seriously reduce its value as a programming tool. If it fails, it doesn't report the failure via its exit status like other QShell utilities do, and that makes error handling very difficult. It also doesn't support the system naming convention that's widely used in native applications, which means you can't use the library list. It always outputs column heading information whether you want it or not. These limitations drove me crazy, so I wrote my own utility as a replacement. My utility is intended to work exactly like the QShell tool, except that it solves these problems and adds a few new features.

*Read More...


On the Web

Our new Reader to Reader feature lets you share your IBM i code, comments, discoveries, and solutions to problems. Email your contributions of 500-1400 words to editors@systeminetwork.com. Please include your full name and email address. We edit submissions for style, grammar, and length. Submissions could appear on our website or in our print magazine. If we use your submission in the print magazine, you'll get $50.


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:
Symtrax
Applied Logic

sponsorArray[1].sponsorName

sponsorArray[2].sponsorName

sponsorArray[3].sponsorName

From System iNetwork
Webcasts

July 29 -- Coaxing Your Journal To Give Up Its Secrets
Larry Youngren and Dave Owen help you identify the steps you too can take to get the biggest bang for the buck when tuning your journal in an HA environment.

e- Learning
June 30 -- Embedded SQL
Covering embedded SQL coding techniques and topics such as communication between SQL and RPG, processing result sets, and more. Class is filling up--register now!


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 2009 | 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.