|
After initialization you have: WRKALFA30 = '000000000000000000000000000000' len=30 WRKNUM30_9 = 000000000000000000000.000000000 After MOVEL '1' WrkAlfa30 you have: WRKALFA30 = '100000000000000000000000000000' len=30 WRKNUM30_9 = 000000000000000000000.000000000 After EVAL %len(WrkAlfa30) = 10 (to use your example) you have: WRKALFA30 = '1000000000 ' len=10 WRKNUM30_9 = 000000000000000000000.000000000 After MOVE WrkAlfa30 WrkNum30_9 you have: WRKALFA30 = '1000000000 ' len=10 WRKNUM30_9 = 000000000000000000001.000000000 If I change your example to use x=7 instead of x=10, then I get what you cite as your result: WRKALFA30 = '1000000 ' len=7 WRKNUM30_9 = 000000000000000000000.001000000 This is on V4R4. Peter Dow Dow Software Services, Inc. 909 425-0194 voice 909 425-0196 fax ----- Original Message ----- From: Fabrizio Gurrieri <fabrizio.gurrieri@bartolini.it> To: <RPG400-L@midrange.com> Sent: Monday, May 29, 2000 5:56 AM Subject: A question about *VARYING string. > I've ascertained that: > > D WrkAlfa30 s 30 *VARYING *INZ(*all'0') > D WrkNum30_9 s 30 9 *INZ(*zeros) > > C MOVEL '1' > WrkAlfa30 > C EVAL %len(WrkAlfa30) = x > (where x = for example 10) > > > C MOVE WrkAlfa30 WrkNum30_9 > > > > * WrkNum30_9 = 000000000000000000000.001000000 > > > > Any explanation??????? > > +--- > | This is the RPG/400 Mailing List! > | To submit a new message, send your mail to RPG400-L@midrange.com. > | To subscribe to this list send email to RPG400-L-SUB@midrange.com. > | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-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.