Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Find paragraph names in a cobol program via rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Find paragraph names in a cobol program via rexx
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

Site Director


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

PostPosted: Tue Jun 24, 2008 12:30 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10388
Location: italy

PostPosted: Tue Jun 24, 2008 12:31 pm    Post subject: Reply to: finding pragraph names
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: 6970
Location: porcelain throne

PostPosted: Tue Jun 24, 2008 12:32 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10388
Location: italy

PostPosted: Tue Jun 24, 2008 12:37 pm    Post subject: Reply to: finding pragraph names
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

Senior Member


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

PostPosted: Tue Jun 24, 2008 9:22 pm    Post subject: Reply to: finding pragraph names
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10388
Location: italy

PostPosted: Tue Jun 24, 2008 10:02 pm    Post subject: Reply to: finding pragraph names
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

Senior Member


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

PostPosted: Wed Jun 25, 2008 1:33 am    Post subject: Reply to: finding pragraph names
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need to obtain VTOC information via R... djeffbland CLIST & REXX 10 Thu Jan 11, 2018 4:13 am
No new posts REXX contest sergeyken CLIST & REXX 2 Tue Jan 09, 2018 1:55 am
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us