× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Phil,
What is the value of "a" at the time of failure.
Is it possible that it is larger than the size of field "alphc"?

 
Jeff Young 
Sr. Programmer Analyst
Dynax Solutions, Inc.
A wholly owned subsidiary of enherent Corp.
IBM -e(logo) server Certified Systems Exper - iSeries Technical Solutions V5R2 
IBM  Certified Specialist- e(logo) server i5Series Technical Solutions Designer 
V5R3
IBM  Certified Specialist- e(logo)server i5Series Technical Solutions 
Implementer V5R3 


  
 





----- Original Message ----
From: Phil Kestenbaum <pkestenbaum@xxxxxxxxxxx>
To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, February 21, 2007 2:27:02 PM
Subject: Scan error


HI I am looking at an old program that bombed getting this error: I am
not seeing what is wrong.



Message ID . . . . . . :   RNX0100       Severity . . . . . . . :   50


Message type . . . . . :   Diagnostic


Date sent  . . . . . . :   02/21/07      Time sent  . . . . . . :
14:17:34   




Message . . . . :   Length or start position is out of range for the
string    

  operation.


Cause . . . . . :   One of the following has occurred in RPG procedure


  XXin program LIB/XX                                          

  - A numeric length or start position is less than 1 or too large for
the     

    string operation.


  - The search-argument parameter of the %SCAN built-in function has
zero      

    length or is longer than the source-string parameter.


  - The maximum-length parameter of the %STR built-in function is not a
value  

    between 1 and the maximum size of a character field.


Recovery  . . . :   Contact the person responsible for program
maintenance to  

  determine the cause of the problem.




The actual statements:



c                   eval      a = j + 10                          

c     '0'           scan      alphc:a       fl1               2 0



I'd appreciate any thoughts on this one,


TIA, Phil


This message contains information proprietary to our company. It is intended to 
be read only by the individual or entity named above or their designee.
Any distribution of this message or the information contained herein without 
written permission from our company is strictly prohibited. If the reader of 
this message is not the intended recipient or an agent responsible for 
delivering it to the intended recipient, you are hereby notified that you have 
received this document in error and that any review, dissemination, 
distribution, or copying of this message is strictly prohibited. If you have 
received this communication in error, please notify us immediately by e-mail, 
and delete the original message.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.