|
> BTW, here's what we expect to provide in the next > release of ILE RPG (not V4R3, but some release after that): > > - new datatypes: > -- 1 byte integer and unsigned > -- 8 byte integer and unsigned > -- UCS2 > - EVALR - right adjusted string assignment > - FOR - free format do loop > - LEAVESR - leave subroutine > - some enhancements to data structures > -- OVERLAY(FLD:*NEXT) - no explicit offset needed > -- implicit definition of subfields that have > an overlaying subfield > -- INZ(*EXTDFT) - initialize subfields of externally > described data structures to DDS DFT value > - new built-in functions: > -- %DIV - integer division > -- %GRAPH - convert string to graphic type > -- %REM - integer remainder > -- %XFOOT - sum of array elements > -- %UCS2 - convert string to UCS2 type > - some support for threads > - character variables can be up to 65535 chars long What is a UCS2 data type? Looking back at a handout from the Spring COMMON, I noticed that the %CHECK, %CHECKR, %XLATE and %SCANR BIF's are not on this list? Were they dropped or delayed? I frequently need to concatenate numeric fields onto text. %CHAR only works with graphics and date/time data types. I've started to use the %EDITW BIF to do this. For example, ITEMNO is a 7-digit field: C Eval WarningMsg = 'Item ' + C %EDITW(ITEMNO:'0 ') + C ' is being obsoleted' Is this a good way to do it or is it better to move ITEMNO to a charater field before doing the concatenation? Or is there a better way to do it in a single statement. BTW, I'm on V4R2. Joe Teff Information Technology Consultant IBM Certified Specialist - AS/400 RPG Programmer Quality Data Systems Minneapolis, MN +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-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.