fhg
Volume 9, Number 34 -- October 28, 2009

Distinguish between Record Types without Indicators

Published: October 28, 2009

Hey, Ted:

I have an RPG question. Now that indicators are verboten, how does an RPG program distinguish between record types when reading a multi-format logical file? That is, what do I use instead of record identifying indicators?

--Tricia


Define a file information data structure for the logical file. The system will place the record format name in positions 261-270. Here's some sample source code to get you started.

FSomeLF    if   e           k disk
F                                     infds(SomeInfo)

D SomeInfo        ds
D  RecordFormat                 10    overlay(SomeInfo: 261)

 /free
     if RecordFormat = 'CURRENT';
        // do one thing
     elseif RecordFormat = 'LASTYEAR';
        // do something else

--Ted




                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
VISION SOLUTIONS

Do You Know Your iSCORE™?

Quickly see the health of your System i with this FREE software!

A free, no-license, self-installing System i utility, iSCORE™
from Vision Solutions quickly produces a simple, clear report that outlines
the overall operating health of either your entire System i or a selected LPAR.

Click to download now.


Senior Technical Editor: Ted Holt
Technical Editor: Joe Hertvik
Contributing Technical Editors: Erwin Earley, Brian Kelly, Michael Sansoterra
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

Manta Technologies:  Your complete source for IBM i training
Vision Solutions:  Free software for measuring overall i5/OS system health
East Coast Computer:  Citrix XenDesktop delivers desktops as a service to users anywhere


 

IT Jungle Store Top Book Picks

Easy Steps to Internet Programming for AS/400, iSeries, and System i: List Price, $49.95
The iSeries Express Web Implementer's Guide: List Price, $49.95
The System i RPG & RPG IV Tutorial and Lab Exercises: List Price, $59.95
The System i Pocket RPG & RPG IV Guide: List Price, $69.95
The iSeries Pocket Database Guide: List Price, $59.00
The iSeries Pocket SQL Guide: List Price, $59.00
The iSeries Pocket Query Guide: List Price, $49.00
The iSeries Pocket WebFacing Primer: List Price, $39.00
Migrating to WebSphere Express for iSeries: List Price, $49.00
Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
Getting Started with WebSphere Express for iSeries: List Price, $49.00
Can the AS/400 Survive IBM?: List Price, $49.00
Chip Wars: List Price, $29.95


 
The Four Hundred
IBM Rolls Up an i 6.1.1 Dot Release

The Curtain Rises a Bit on the Next i OS, Due in 2010

IBM Taps New Server GM in Wake of Scandal

As I See It: The Salary Reduction Plan

Various Power Systems I/O and Storage Enhancements

Four Hundred Stuff
Artech Drives Productivity with 'Evolution' Update to GeneXus IDE

Zend Server 5.0 to Run on i OS

IBM Updates Host Access Client Emulator Packages

IBM Augments PowerHA with Replication Solution

Quantum Launches Midrange Data De-Duplication Appliances

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

System i PTF Guide
October 24, 2009: Volume 11, Number 43

October 17, 2009: Volume 11, Number 42

October 10, 2009: Volume 11, Number 41

October 3, 2009: Volume 11, Number 40

September 26, 2009: Volume 11, Number 39

September 19, 2009: Volume 11, Number 38

September 12, 2009: Volume 11, Number 37

TPM at The Register
Los Alamos super reports for nuke duty

Shuttleworth stretches Ubuntu from netbooks to heavens

Tilera pushes to 100 cores with mesh processor

VMware boasts a half mil vSphere downloads

Citrix backtracks on XenDesktop 4 pricing

IBM beefs blade server networks

Mellanox grows on fast network uptake

Big Blue kills off CSM clustering

Citrix ekes out revenue, profit growth

IBM revs server control freak tool

Sun slashes (another) 3,000 jobs

Fedora 12 beta code is go

THIS ISSUE SPONSORED BY:

Help/Systems
Vision Solutions
WorksRight Software


Printer Friendly Version


TABLE OF CONTENTS
Getting Started with RDi's Application Diagram, Part 2: Program Structure Diagram

Distinguish between Record Types without Indicators

How Much Temporary Storage Am I Using?

Four Hundred Guru

BACK ISSUES




 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2009 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement