Hexadecimal variable field in RPGLE
"Janith Wanigasekara" <[email protected]> Tue, 23 Nov 2010 16:38:58 +1300
| Newsgroups | gmane.comp.systems.as400.jbausers |
|---|---|
| Message-ID | <[email protected]> |
Hi All, I have a variable in a RPGLE that Im initializing with a hexadecimal value (Numeric 11). D output s 10a Inz(x'000B') When I specify a static hexa value (Like above) it works perfectly but what I want is to move variable numeric values in hexadecimal form to this variable. Below procedure gives me the hexa value but in a character format which is not what I want. cvtToHex(Output: Size: %size(Output)); Does anyone know how to move a numeric in hexa form to a variable ? Thanks for your time Regards Janith <p style="font-size:10px;"> We are committed to protecting the privacy of the personal information you may provide to us by ensuring your e-mail address and any other personal information about you will only be disclosed to relevant staff and contractors and used for the purpose of responding to a request or to carry out instructions. We will not sell or give your e-mail address to anyone else. Please be aware that e-mail is not necessarily secure against interception so you should only send information necessary for us to provide you with the assistance you require. This transmission or any part of it is intended solely for the named addressee. It is confidential and may contain legally privileged information. The copying or distribution by any person other than the named addressee is prohibited. If you have received this transmission in error, please reply by e-mail to the sender. This email message has been swept for the presence of computer viruses. </p> _______________________________________________ This is the System 21 Users (SYSTEM21) mailing list To post a message email: SYSTEM21-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/system21 or email: SYSTEM21-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/system21.