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

What is INSTRING in COBOL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivakumarsalem
Warnings : 1

New User


Joined: 21 Dec 2005
Posts: 3

PostPosted: Wed Dec 28, 2005 5:16 pm
Reply with quote

One of my interveiwer ask what is instring in cobol? could you please explain in detailed manner with example
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed Dec 28, 2005 10:30 pm
Reply with quote

Hi sivakumarsalem,

Could you have misunderstood the question? I have never heard of 'instring' used when talking about COBOL. I have used ?instream? when talking about the PERFORM verb however.

An instream PERFORM could look like:

Code:

    PERFORM
      VARYING SUB FROM 1 BY 1
      UNTIL TABLE-VAR(SUB) = WS-VALUE
    END-PERFORM.

Instead of

   PERFORM FIND-IN-TABLE THRU FIND-IN-TABLE-EXIT
     VARYING SUB FROM 1 BY 1
       UNTIL TABLE-ENTRY-FOUND.

The First example would be an instream PERFORM



If this is not the case, please come back.
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Thu Dec 29, 2005 8:02 am
Reply with quote

Hi,

To your query, one answer is that "instring" come into picture when we talk about Object-Oriented COBOL programming.


For more information search "GOOGLE".


Hope this helps.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Thu Dec 29, 2005 8:57 am
Reply with quote

iknow,

Thanks for the insight. I have not been involved with OOC.
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Thu Dec 29, 2005 9:18 am
Reply with quote

Hi Davidatk,

I am not sure how Object Oriented COBOL is being used in Mainframes.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top