× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.