Title: Administrator Tip
a newsletter fromTechTarget
 May 28, 2003 >> Receive this email as text   >> About this email 
ISSUE SPONSORED BY:
>>  Rochester Initiative: 14 Free educational downloads today! RPG, and more!
>>  SoftLanding Systems, Inc.: Does your iSeries security comply with the new privacy laws?
 Today's Highlights  

>>  FEATURED TIP:  RPG data structure arrays better than multiple-occurrence data structures
>>  TECHNICAL QUESTIONS ANSWERED:  More tips, advice on data structure arrays
>>  ANNOUNCEMENTS & LINKS:  Win a $50 Amazon.com gift certificate
 Tips  

FEATURED TIP
RPG data structure arrays better than multiple-occurrence data structures
by Ron Turull

In case you haven't yet heard the news, as of V5R2 ILE RPG compiler supports data structure arrays. That means you can now specify the Dim keyword on the definition of a data structure to dimension that data structure. Just as you can dimension a stand-alone field to create an array of that type of field, you can now dimension a data structure to create an array of that kind of data structure.

Why should you care about support for data structure arrays? They're much simpler to code and much less prone to bugs than multiple-occurrence data structures.

>>View Complete Tip
SPONSORED BY: Rochester Initiative

Learn Next Generation RPG Skills!
The New RPG Skills Accelerator teaches you advanced RPG techniques. Includes 11 labs, manual and source code CD. You'll learn: Understanding ILE, The SQL Alternative, Trigger Template, E-mail from RPG Programs, Data Queues and RPG, Working with User Spaces, RPG and Sockets, Batch File Transfer with RPG, RPG Exit Program for FTP, and The IFS and RPG.

Learn more here

 Technical Questions Answered  

Don't proliferate old, bad code
In an effort to hasten the completion of projects, most programmers "steal" code from other sources within their libraries. The problem is that many times, the code originated years ago and is cumbersome, lengthy and not easy to maintain. Even most ILE code resulted from old code that was passed through a conversion utility. Using the functionality of RPGIV's Keywords and Built-In-Functions usually can make the code much smaller and manageable. Search400.com member Joe Szymanski provides a couple of examples, including one involving data structure arrays.

Referencing a subfile of an array
"JFuchs" is using a data structure as an array and want sto use one of the subfiles of the data structure in an Eval statement. The problem is he doesn't know how to reference this. Not to worry -- Nick Hobson was on hand with some advice.

"CLEAR" advantage over resetting work fields
Site expert John Kohan illustrates how to use the "CLEAR" operation code to clear the fields in a a single-occurrence data structure or multiple-occurrence data structures.

Pass larger amounts of data between programs
When using separate programs to retrieve and display data, Search400.com member Tim Cervenec says to use use arrays or multiple-occurrence data structures to pass back larger amounts of data strings.


SPONSORED BY: SoftLanding Systems, Inc.

Does your iSeries security comply with the new privacy laws? Security Breach Notification Act, Sarbanes-Oxley, Patriot Act, HIPAA...If not, your company could be liable! SoftLanding Systems gives you the security solutions and expertise to stay compliant and protect your company with iSeries exit-point control, auditing, and REAL-TIME monitoring & alerts.

Learn more here


 Announcements & Links  


TIPS EXCHANGE
Win a $50 Amazon.com gift certificate
Time's ticking away! This is the last week to submit a tip for a chance to win a $50 Amazon.com gift certificate. Submit a winning tip and treat yourself to something you really want.

NEW POLL
Vote now
Is it time for Congress to initiate an investigation into outsourcing and H1-B visas?

BOOK EXCERPT
The Modern RPG IV Language, Third Edition
Log on and download for free Chapter 3 of The Modern RPG IV Language, Third Edition, written by Bob Cozzi and published by MC Press.

This chapter focuses on support for expressions in RPG IV. Learn how you can extend normal conditional logic, keyword support and calculations through the user of natural expressions.
>>  Download the chapter
>>  Buy the book



Update your subscriptions
Select newsletters you would like to receive from the list below.
Daily News
Security Tip
Top Expert Advice
Email: 
  
Not a member? We'll activate your
membership with your subscription.


  Contact Us  

SITE EDITOR
Michelle Davidson
[EMAIL PROTECTED]
>> Send me your story ideas and best practices.


ASSISTANT EDITOR
Debra Tart
[EMAIL PROTECTED]
>> Send me your Best Web Links and glossary terms.


EXECUTIVE TECH EDITOR
David Gabel
[EMAIL PROTECTED]
>> Send me your technical tips and tip ideas.


SALES REPRESENTATIVE
Jillian Corby
[EMAIL PROTECTED]
>> Sponsor this or any other TechTarget newsletter.




A B O U T   T H I S   N E W S L E T T E R
Created by TechTarget
TechTarget - The Most Targeted IT Media
Copyright 2003, All Rights Reserved.

To unsubscribe from Administrator Tips:

>> Simply Reply to this Email with REMOVE within the Body or Subject
-OR-
>> Go to: http://search400.techtarget.com/register
   - Log in to edit your profile.
   - Click on the link to Edit email subscriptions.
   - Uncheck the box next to the newsletter you wish to unsubscribe from.
   - When finished, click "Save Changes to My Profile".

Reply via email to