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

Find paragraph names in a cobol program via rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anirudh1985
Currently Banned

New User


Joined: 22 Aug 2007
Posts: 66
Location: bangalore

PostPosted: Tue Jun 24, 2008 12:23 pm
Reply with quote

how do you find paragraph names in a cobol program via rexx.My requirement is the rexx program should list all the paragraph names present in the cobol program
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 24, 2008 12:30 pm
Reply with quote

Hello,

Read the program skipping everything until PROCEDURE DIVISION is reached.

Continue reading, skipping all comments.

If there is code in the A-margin, it is a line you want (this will be paragraphs and sections).

There may be more considerations, but that should get you started.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 24, 2008 12:31 pm
Reply with quote

I do not speak cobolese...

how do You identify a paragraph in a cobol program ??
... if You can express it in words then it can be coded in rexx
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jun 24, 2008 12:32 pm
Reply with quote

not a comment
starts in area A
ends in period. depends if you are using atiqated paragraphing or sectioning.

or

use the map/xref in the compiler listing.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 24, 2008 12:37 pm
Reply with quote

thanks for the info,
I' ll try to post a sample in the afternoon
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Jun 24, 2008 9:22 pm
Reply with quote

Quote:

starts in area A

You cannot use cobol terms to explain something to people that do not understand cobol.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 24, 2008 10:02 pm
Reply with quote

don' t worry Pedro...
I am not that dumb icon_biggrin.gif
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Jun 25, 2008 1:33 am
Reply with quote

Quote:
I am not that dumb

Apparently, I am.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top