Hi Alan -
On Tue, 29 Jan 2013 13:25:40 +0000, Alan Shore <ashore@xxxxxxxx>
wrote:
However, I believe I have found another way - not pretty but it seems to work
Even though my coding of
ConvSecretSharedKey = %trim(HldConvSecretSharedKey) + *allx'00';
Did not compile, I can code the following
Nullfield = *allx'00';
Where Nullfield is defined as
d Nullfield s 1000a
And now my coding is
ConvSecretSharedKey = %trim(HldConvSecretSharedKey) + Nullfield;
And
ConvdataToHash = %trim(HldConvdataToHash) + Nullfield:
IMO the compiler is unnecessarily picky about using those special
values in expressions.
The way I would code something like this is:
targetfield = *loval ;
targetfield = %trimr(sourcefield) + targetfield ;
This way the code continues to work even if the size of targetfield is
increased.
Ken
Opinions expressed are my own and do not necessarily represent the views
of my employer or anyone in their right mind.