|
Hello, Timothy:record
Since it is a program-described file anyway, why not define the file
record layout as a series of packed fields, e.g.:
FLD1
FLD2
etc.
and define a data structure that allows you to overlay-define this
with the array? That way, you should be able to get the benefits ofthe
RPG field validation on input, and still use the data as an array inthe
rest of the program.in
Does that make sense?
All the best,
Mark S. Waterbury
Timothy Adair wrote:
I have an RPG IV pgm (not ILE) that is reading in an old QS36F
program-described file. This file has a "field" that is actually a
30-element packed numeric array (7,0). For records with valid data
(hexthis array, everything is fine; but I have some records with spaces
work'4040404') in this array, and when it hits one of these, the program
gives a decimal-data error (understandably so).
I have specified the compile option of FIXNBR(*INPUTPACKED) but the
program is not fixing the data at input-time. Does *INPUTPACKED not
doesn'tfor input arrays? It seems to work for single fields.
And yes, I know, I need to fix the data. I intend to but that
files).guarantee I won't encounter more of these in this file (or other
toI'd like to nail down a viable solution now. We will be converting
situation Iexternally-described files eventually but for now this is the
arrayshave to deal with.
And yes, I have tried every conceivable combination of overlays &
compile, orto program around the problem. Every attempt either wouldn't
gave the DD error when run.
Me duele la cabeza!
Ayuda?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.