IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can we use INSPECT to check for 2 strings?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
V K R A S Srinivas

New User


Joined: 02 Jan 2007
Posts: 9
Location: Hyderabad

PostPosted: Wed Sep 16, 2009 12:50 pm
Reply with quote

Hi !

I have a requirement as below:

W-STRING X(750)

If this W-STRING contains the either the word 'ABC' or 'DEF', then we have to move the text till the first occurane of these words.

So, in INSPECT, can we check for the two strings 'ABC' & 'DEF' in a single statement.

Also the INSPECT gives only the no.of occurances of the string. Is there a way to find the the position of the 'ABC' / 'DEF' using INSPECT.

Please help me on this.

Thank you
Srinivas Vaddadi
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 16, 2009 1:05 pm
Reply with quote

what does the manual say on the subject ??

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/IGY3SH33
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts How to check whether who renamed the ... JCL & VSAM 3
No new posts No ++JCLIN, APPLY CHECK job JCL & VSAM 1
No new posts EMPTY file check scenario JCL & VSAM 6
Search our Forums:

Back to Top