|
I don't code in RPG so I'm not sure if it has a built-in to convert to hex. C has some (sprintf)... Vern's suggestion of using SQL's HEX function and VALUES INTO clause seems like a winner to me. Alternatively, there is a CVTHC MI built-in I've used on some occasions: http://publib.boulder.ibm.com/iseries/v5r1/ic2924/tstudio/tech_ref/mi/CVTCH. htm Don't you just love versatility iSeries ILE offers... so many ways to do the same thing! Elvis Celebrating 10-Years of SQL Performance Excellence -----Original Message----- Subject: RE: Using a UUID to name an IFS file Good point. Do you have a simple routine to convert a field to it's hex value? Be nice if RPGLE had a MyChar=%hex(%trim(MyUuid)); Rob Berendt
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.