View previous topic :: View next topic
|
Author |
Message |
sivakumarsalem Warnings : 1 New User
Joined: 21 Dec 2005 Posts: 3
|
|
|
|
One of my interveiwer ask what is instring in cobol? could you please explain in detailed manner with example |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
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 |
|
|
iknow
Active User
Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
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 |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
iknow,
Thanks for the insight. I have not been involved with OOC. |
|
Back to top |
|
|
iknow
Active User
Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
Hi Davidatk,
I am not sure how Object Oriented COBOL is being used in Mainframes. |
|
Back to top |
|
|
|