|
For the archives, to further enlighten: when moving alpha to a numeric field, using the example first given in this thread, i.e. strip a numeric off the beginning of an alpha field.... given that alpha4 = '342P', instead of this: moveL alpha4 num1s0 10 Rather, you should do this: moveL alpha4 alpha1 1 move alpha1 num1s0 10 this should always give you a positive number, as long as the 1st char of alpha4 is a valid number. ------original message--------- >This is news to me, by the way. I've never run into this >before, and I'm not sure I like it! I'm a bit surprised you haven't seen it Joe. I ran into it many moons ago when doing conversions. It's one of the subtle things that trips people up when dealing with the MOVEx opcodes. And that's all I'm going to say on that. For the enlightenment of the archives, lurkers and those without access to the web, Infocenter CD or printed manuals, here then is the V5R1 ILE RPG Reference, page 398:
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.