|
%char was enhanced in V4R4 to operate on numeric and UCS-2 data types in addition to graphic, date, time or timestamp data types supported in earlier releases. Mel Rothman iSeries Custom Technology Center Rochester, Minnesota "Bartell, Aaron L. (TC)" wrote: > > I have used %char to convert numerics to characters for writing to standard > output in RPG CGI pgms and it seems to work fine. I am wondering if it is > your data type of u? > > Aaron Bartell > > -----Original Message----- > From: Mackie, Roger L. (Precision Press) [mailto:RLMackie@ppress-tc.com] > Sent: Thursday, September 06, 2001 9:06 AM > To: 'rpg400-l@midrange.com' > Subject: RE: %CHAR in RPGIV on V4R2 > > You might think that %CHAR would convert the various numeric variables into > character format. I've fallen into that trap a time or two. But no numeric > variables were included on the list of valid parameters the InfoSeeker gave > you. To convert numerics to character, use the %EDITC or %EDITW functions. > > Roger Mackie > > -----Original Message----- > From: Parvez Mirza [mailto:meinhindustani@hotmail.com] > Sent: Thursday, September 06, 2001 8:59 AM > To: RPG400-L@midrange.com > Subject: %CHAR in RPGIV on V4R2 > > [ Converted text/html to text/plain ] > Hi All, > I'm trying to use Built-in function %CHAR in my RGP IV program as described > below > > D Idx s 5u 0 > D rc s 10i 0 > ........ > ......... > ....... > ......... > C Eval rc = fputs( 'Stream 1 line: ' + > C %Char(Idx) + > C LF > C : FILE_o > C ) > > But while compiling I'm getting the following error : > *RNF0386 - The parameter for %CHAR is not valid. > > InfoSeeker says that the operand can be one of Graphics, Date, Time, > Timestamp. > > Could you please suggest me on the usage of the said function. > > Thanks, > Parvez >
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.