|
Peter,
Last Thursday when I first coded the teststuff logic, I was getting a hard halt at the DSPLY statement. Thought it was being picky about more than 52 characters (perhaps not recognizing the varying length?), and found that substringing it to 52 seemed to get me past that.
I just stripped out that extra code, and I'm not getting a halt now, so maybe I was making up stuff last week.
Thanks.
-- Michael
~~~~~~~~~~~~~~~~~
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Peter Dow
Sent: Monday, September 24, 2012 11:34 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: OVRDBF WAITRCD(*IMMED) challenges in ILE
Hi Michael,
Luis is right, you need to do the override before you open the file.
Only the open looks at the override statement.
I'm also curious about this code:
0056.00 if %len(SOlocks_ds.MessageText) > 52;
0057.00 DisplayThis = %subst(SOlocks_ds.MessageText : 1 : 52);
0058.00 else;
0059.00 DisplayThis = SOlocks_ds.MessageText;
0060.00 endif;
Because DisplayThis is defined as 52a, all you really need is this:
0059.00 DisplayThis = SOlocks_ds.MessageText;
--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx <mailto:petercdow@xxxxxxxxx> /
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.