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
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm


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