|
An example: X Pic 99. INSPECT string TALLYING X CHARACTERS BEFORE INITIAL "seachstring". Mvh. Geir Mob.: 9010 1316 -----Original Message----- From: cobol400-l-bounces@xxxxxxxxxxxx [mailto:cobol400-l-bounces@xxxxxxxxxxxx] On Behalf Of M.Kamaleshwar Sent: 8. november 2005 14:10 To: cobol400-l@xxxxxxxxxxxx Subject: [COBOL400-L] Equivalent of SCAN (as in RPG) in COBOL/400 HI , Can anybody help me out with this - my reqmt. is to search for the occurence of a string (more than 1 character) in a variable and if the string occurs then get the position of occurence in the variable In RPG one can use SCAN to know whether the string is found in the variable as well as get starting position of the occurence. What is the equivalent keyword in COBOL/400 . I believe INSPECT only says whether the string occurs or not - it doesn't give the starting position of occurence of the string. Please suggest. Thanks --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. -- This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing list To post a message email: COBOL400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/cobol400-l or email: COBOL400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/cobol400-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.