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

Find corresponding Scope Terminator


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
TS70363

New User


Joined: 07 Apr 2010
Posts: 94
Location: Bangalore, India

PostPosted: Fri Jun 11, 2010 4:16 pm
Reply with quote

Do we any command or utility or function to find out the corresponding scope terminator in cobol?
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Jun 11, 2010 4:21 pm
Reply with quote

The 'IF/THEN/ELSE' terminators are provided in the compile listing, directly to the left of the code.

Unless you have a 3rd-Party debugger, which may give you these terminators, it's a manual process.

Bill
Back to top
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Fri Jun 11, 2010 4:21 pm
Reply with quote

You'll need a Cobol parser for this and I don't know of any free ones available. There are a few for pay if you search. I have a partial implemention, but I've not worked on it in quiet some time. Scope termination is one thing that makes Cobol tough to parse due PERIOD (.) closing all previous scopes.
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 To find whether record count are true... DFSORT/ICETOOL 6
No new posts SCOPE PENDING option -check data DB2 2
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
Search our Forums:

Back to Top