|
At 14:46 10.08.00 -0400, you wrote: >I have to put a ' in a command called by an RPG program. The only way I can >think to do it is to make a constant and use the hex value for the '. Does >anyone have a list of hex values for the AS/400, or have another idea? I >have tried using ", but that does not work..... But it does. EVAL TEXT = 'ABC' leads to ABC in TEXT, as we know. EVAL TEXT = '''ABC''' leads to 'ABC' in TEXT (there are three ' at the beginning and the end. Two make up one in the final string. The leading one for enclosing trings has to stay.) EVAL TEXT = 'A''BC' leads to A'BC in TEXT. Same rule as above, two make up one. Try it this way again, it works, we use it every day. For Hex values, you simply enter the characters in a source member and DSPPFM it. (Not STRSEU's option 5!) Then you press F10 and F11 and see the hex representation underneath every character. 0.02 Euro Anton Gombkötö +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.