Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What is INSTRING in COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: What is INSTRING in COBOL
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    Post subject: Re: instring in COBOL
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: 413
Location: Colarado, US

PostPosted: Thu Dec 29, 2005 8:02 am    Post subject: Re: instring in COBOL
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    Post subject: Re: instring in COBOL
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: 413
Location: Colarado, US

PostPosted: Thu Dec 29, 2005 9:18 am    Post subject: Re: instring in COBOL
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us