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



Probably for the same reasons you do some of the things in your shop - it is the standard set by someone other than you, and you want to keep your job!

:-)

Vern

On 9/28/2010 2:08 AM, David FOXWELL wrote:
Would someone please say why one would want to do this?


-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Harman, Roger
Envoyé : mardi 28 septembre 2010 01:02
À : 'RPG programming on the IBM i / System i'
Objet : RE: Convert from free to fixed

It hurts just to look at it in fixed format.......


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Barbara Morris
Sent: Monday, September 27, 2010 3:51 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Convert from free to fixed

On 2010/9/27 5:26 PM, Gary Kuznitz wrote:
Ok, I know everyone is going to cringe on this one.

I'm having trouble converting from RPGLE free to fixed
format with this statement:
/free
fnd = %lookup(%subst(bighunkdata:gt:len) : xmlfield ); /end-free

I can't resist a challenge ...

Steve Needles already posted this solution that is guaranteed
to be equivalent to the original:
c eval fnd =
c %lookup(%subst(bighunkdata:gt:len):xmlfield)

In case that's still too free, here's another (untested)
version that I believe is also equivalent.
C *like define xmlfield temp
C len subst(p) bighunkdata:gttemp
C z-add 1 fnd
C temp lookup xmlfield(fnd)
10
C *in10 ifeq *off
C z-add 0 fnd
C endif
--
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.

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