Thanks I'll check those out.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry Adams
Sent: Tuesday, April 14, 2009 10:46 AM
To: RPG programming on the IBM i / System i
Subject: RE: Data Structure Constant
Two that I know of:
Design Change Request :
https://www-912.ibm.com/r_dir/ReqDesChange.nsf/Request_for_Design_Change?OpenForm
iSociety's Requirements:
http://isociety.common.org/
Jerry C. Adams
IBM System i Programmer/Analyst
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Kurt Anderson
Sent: Tuesday, April 14, 2009 10:38 AM
To: 'RPG programming on the IBM i / System i'
Subject: RE: Data Structure Constant
Bummer.
Constants are great. But it kind of sucks that we can only have simple variables as constants. If IBM (er, Barbara) added the ability to restrict any data structure as read-only, I can say I would use this functionality far more than some other handy but more situational enhancements (such as %trim of characters - a great tool to have, but not something (I) used commonly).
Just a request from a lover of RPG.
-Kurt Anderson
Ps. Ok, so aside from dreaming on the midrange list, is there an official box to drop my suggestions in? I have a bunch for wdsc as well (one's even related to constants).
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Friday, April 10, 2009 3:17 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Data Structure Constant
On 10-Apr-09, at 2:53 PM, rpg400-l-request@xxxxxxxxxxxx wrote:
Thoughts on creating a data structure constant?
No ways that I can think of I'm afraid. The closest I have come is to
use unnamed fields in the initial DS. e.g.
D MyDS DS
D 10a Inz('ABCDEFGHIJ')
D 5i 0 Inz(25)
D etc...
At least it can only be screwed up by moving stuff to the DS name!
Jon Paris
www.Partner400.com
www.SystemiDeveloper.com
As an Amazon Associate we earn from qualifying purchases.