|
Chris,
You can define a constant like this:
d apos c const('''') <== (there are four apostrophe's
in there.)
or like this
d apos c const(x'7D')
or you could use x'7D' inline like this:
c eval string = 'DATFLD *EQ ' + x'7D' +
%editc(DATFLD:'X') + x'7D'
where datfld is a numeric field.
Phil
-----Original Message-----
From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On
Behalf Of Christopher A. Libby
Sent: Monday, August 13, 2001 4:39 PM
To: RPG400-L@midrange. com
Subject: Using quotes in a literal
How would one go about using quotes in an RPG literal? I'm trying to put
together a string which will be used to call an AS/400 command, however this
command has several quotes (') in it. How would I escape them?
-Chris
---------------------------------------------------------
Christopher A. Libby, Programmer/Analyst
Maine Public Service Company (www.mainepublicservice.com)
clibby@mainepublicservice.com (207) 768-5811 ext. 2210
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.