View previous topic :: View next topic
|
Author |
Message |
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
thanks for the info,
I' ll try to post a sample in the afternoon |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
You cannot use cobol terms to explain something to people that do not understand cobol. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
don' t worry Pedro...
I am not that dumb |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
I am not that dumb |
Apparently, I am. |
|
Back to top |
|
|
|