× 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.




At this point all compile-time expressions are not supported (with the
exception of named constants, thanks to some earlier APARs from Kurt).

I asked Barbara and she said that %len is the better BIF to use because it
takes varying into account and maps from characters to bytes. So I think
we should prioritize supporting that BIF first.





From: Kurt Anderson <Kurt.Anderson@xxxxxxxxxxxx>
To: "Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries" <wdsci-l@xxxxxxxxxxxx>
Date: 06/23/2015 04:37 PM
Subject: Re: [WDSCI-L] RFE Vote time - compile-time expression in data
typing
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>



Same result when using %size, the outline shows Unknown(0).

I'm not sure what benefit you're shooting for by using %size.
Maybe we're viewing the statements with different context in mind. All I
want to do is create a varying variable with the same size as a non-varying
variable. %len has been working perfectly for me.

Not that you'd want to do the following, but by using %size over %len you'd
get odd sizes as a result.
dcl-s blah1 varchar( 10 );
dcl-s blah2 varChar( %size( blah1 ) );

Blah1 = 10 characters in length
Blah2 = 12 characters in length

Kurt Anderson
Sr. Programmer/Analyst - Application Development, Service Delivery Platform

-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: Tuesday, June 23, 2015 4:28 PM
To: wdsci-l@xxxxxxxxxxxx
Subject: Re: [WDSCI-L] RFE Vote time - compile-time expression in data
typing

On 23-Jun-2015 12:40 -0600, Kurt Anderson wrote:
I entered a PMR, but am told my issue is as-designed so an RFE is
needed to change how it works.

Here is the problem. In the example below, blahVarying shows up in the
outline as Unknown(0). I supplied 'blah' as its own definition, but it
could come from a file, copybook, or wherever.

dcl-s blah char( 10 );
dcl-s blahVarying varChar( %len( blah ) );

[http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=
73185]


I can not access the content at the link [despite being logged in to
ibm.com], but the %size() should be used in that context instead of the
%len().?

--
Regards, Chuck

--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list To post a message
email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-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.