|
... I like overlay ... =)
*duck*
Mihael
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of dieter.bender@xxxxxxxxxxxx
Sent: Tuesday, September 28, 2010 9:54 AM
To: RPG programming on the IBM i / System i
Subject: Re: Convert from free to fixed
... just to fool the russians!
D*B
BTW: why should anybody use overlay, OVRDBF, *PSSR...
--------------------------------------------------
From: "David FOXWELL" <David.FOXWELL@xxxxxxxxx>
Sent: Tuesday, September 28, 2010 9:08 AM
To: "RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
Subject: RE: Convert from free to fixed
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.
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.
--
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 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.