VARLEN should be picked up by reference.
"The field attributes referred to are the length, data type, and decimal positions of the field, as well as the ALIAS, COLHDG, DATFMT, DATSEP, FLTPCN, REFSHIFT, TEXT, TIMFMT, TIMSEP, VARLEN, editing, and validity checking keywords."
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frzakb%2Fpfrefer.htm
In my test I compared Format Level IDs between CHAR(50) and VARCHAR(50) while omitting ALLOCATE(25). Without ALLOCATE, the IDs were still different.
I did add VARLEN(25) to the reference field in the DDS, but still get the same Format ID.
I did open up a PMR about this. I appreciate everyone's feedback on this.
-Kurt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Wednesday, February 01, 2012 2:26 PM
To: RPG programming on the IBM i / System i
Subject: Re: Format Level ID
I don't believe VARLEN is picked up by reference...
You might try specifying it explicit in the DDS along with the allocated length..
VARLEN(25)
Charles
On Wed, Feb 1, 2012 at 3:03 PM, Kurt Anderson <kurt.anderson@xxxxxxxxxxxxxx> wrote:
You're right, Chuck.
I changed the varchar to char for a test, and the format level IDs came out the same.
-Kurt
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.