|
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 ---------------------------------------------------------------------------- -- Get your FREE download of MSN Explorer at http://explorer.msn.com[1] ===References:=== 1. http://go.msn.com/bql/hmtag_itl_EN.asp _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.