View previous topic :: View next topic
|
Author |
Message |
murshad paramba
New User
Joined: 14 Oct 2008 Posts: 12 Location: calicut
|
|
|
|
Hi All,
I am Murshad,working as Senior software engineer in a MNC in India.
I need a help from Rexx experts.I am trying to develop a tool in Rexx.The tool is intended to scan a field/copy book in the program library.
I need two more addition features in this tool.
1.The result should not have commented codes.By this i mean,say a field ABC is in program PGM1 and PGM2.In PGM1,the statement which contains the field ABC is commented.So the result of scan should only contains PGM2.
2.I wish to include more than one library in a single scan.
If anyone knows complete code which works perfectly,please post it to me.
Thnx,
Murshad NP |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
What is the criteria for being considered as a commented line
Including multiple libraries is not a problem.
Quote: |
If anyone knows complete code which works perfectly,please post it to me. |
Why would we have a version of a complete code for your requirement ?
What have you developed yourself so far ? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
If anyone knows complete code which works perfectly,please post it to me. |
give us a good reason to do it
start by posting something and we shall be glad to help if You have problems
Your requirement is not clear at all ...
what do You want to scan for ???
if You are looking for a copy/call cross reference start reading the ispf manuals,
and You will find the solution
or if You need to search/scan for predefined string use the srchfor uility
and write a rexx postprocessor to reformat the output to Your needs
if You want to get useful help You must make people willing and eager to help You
... asking for full code solution will lower/zero out Your benevolence factor |
|
Back to top |
|
|
murshad paramba
New User
Joined: 14 Oct 2008 Posts: 12 Location: calicut
|
|
|
|
expat wrote: |
What is the criteria for being considered as a commented line
Including multiple libraries is not a problem.
Quote: |
If anyone knows complete code which works perfectly,please post it to me. |
Why would we have a version of a complete code for your requirement ?
What have you developed yourself so far ? |
Thnx for ur quick reply....
Answer to ur question "What is the criteria for being considered as a commented line
" is
I would explain it with a scenario.....
Say, we need to check in which all programs in a library uses a copy book.
For these we usually do a scan in the tool 'PDSMAN 7.60 - Ezyedit '.But in some programs the specified copybook will be commeted or it may be given as a description in the modification log.In the above scan these programs(ie programs in which copybook is commeted or given as a description in the modification) will also comes in the result list.
My intention is to avoid these programs(ie programs in which copybook is commeted or given as a description in the modification) in the result list.
I have started studying Rexx,but coulnt progress furthur bcoz nobody is here how knows Rexx to help me.I tried out a code which i got from NET ,but its not working fine
Thnx,
Murshad NP |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Quote: |
I would explain it with a scenario.....
Say, we need to check in which all programs in a library uses a copy book.
For these we usually do a scan in the tool 'PDSMAN 7.60 - Ezyedit '.But in some programs the specified copybook will be commeted or it may be given as a description in the modification log.In the above scan these programs(ie programs in which copybook is commeted or given as a description in the modification) will also comes in the result list.
My intention is to avoid these programs(ie programs in which copybook is commeted or given as a description in the modification) in the result list.
|
Which tells me absolutely nothing of any use. Excluding psyscic powers how would I determine if a line was commented of not.
Quote: |
I have started studying Rexx,but coulnt progress furthur bcoz nobody is here how knows Rexx to help me. |
Exactly the same as me ......... so I picked up the manual and tried things until they worked. But this was back in the days before the ease of posting on internet boards, so I had no other option. Give it a go, see how you get on. It works, believe me ! |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
If I understand you correctly, you can do that in SUPERC, including the option to ignore COBOL comment lines.
O. |
|
Back to top |
|
|
murshad paramba
New User
Joined: 14 Oct 2008 Posts: 12 Location: calicut
|
|
|
|
expat wrote: |
Quote: |
I would explain it with a scenario.....
Say, we need to check in which all programs in a library uses a copy book.
For these we usually do a scan in the tool 'PDSMAN 7.60 - Ezyedit '.But in some programs the specified copybook will be commeted or it may be given as a description in the modification log.In the above scan these programs(ie programs in which copybook is commeted or given as a description in the modification) will also comes in the result list.
My intention is to avoid these programs(ie programs in which copybook is commeted or given as a description in the modification) in the result list.
|
Which tells me absolutely nothing of any use. Excluding psyscic powers how would I determine if a line was commented of not.
Quote: |
I have started studying Rexx,but coulnt progress furthur bcoz
nobody is here how knows Rexx to help me. |
could you please suggest some good books in Rexx which is eazy to understand and also contains examples???
Exactly the same as me ......... so I picked up the manual and tried things until they worked. But this was back in the days before the ease of posting on internet boards, so I had no other option. Give it a go, see how you get on. It works, believe me ! |
|
|
Back to top |
|
|
murshad paramba
New User
Joined: 14 Oct 2008 Posts: 12 Location: calicut
|
|
|
|
ofer71 wrote: |
If I understand you correctly, you can do that in SUPERC, including the option to ignore COBOL comment lines.
O. |
could you please elobrate your idea... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
Back to top |
|
|
murshad paramba
New User
Joined: 14 Oct 2008 Posts: 12 Location: calicut
|
|
|
|
but we need this tool to be developed specificalli in Rexx.. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
but we need this tool to be developed specificalli in Rexx.. |
do You have a doctor prescription for that???
to implement something without having the skill to do it
or worse use somebody else' s code without understanding it
Your need is generic enough to be solved by standards tools
without the need to reinvent the wheel
from Your initial post
Quote: |
...complete code which works perfectly... |
from Your signature ...
Quote: |
I wish to improve my knowledge by interacting with members in the community |
You are not interacting .. You are asking somebody else to do Your work |
|
Back to top |
|
|
murshad paramba
New User
Joined: 14 Oct 2008 Posts: 12 Location: calicut
|
|
|
|
enrico-sorichetti wrote: |
Quote: |
but we need this tool to be developed specificalli in Rexx.. |
do You have a doctor prescription for that???
to implement something without having the skill to do it
or worse use somebody else' s code without understanding it
Your need is generic enough to be solved by standards tools
without the need to reinvent the wheel
from Your initial post
Quote: |
...complete code which works perfectly... |
from Your signature ...
Quote: |
I wish to improve my knowledge by interacting with members in the community |
You are not interacting .. You are asking somebody else to do Your work |
i think you have misunderstood me.....
actually i have read some Rexx manuls and start coding Rexx...but the code which i have done is not working fine...and i dont know a standard tool to debug Rexx code...
tats y i asked help from this forum... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
put TRACE I as the very first line after the header line, the one that contains /* REXX
and all will be revealed. However that information is readily available in the fine manual. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Again, if you want to list copybooks usage in PDS(s), SUPERC might be the almost perfect solution. You can also wrap it with REXX to filter/format the results.
O. |
|
Back to top |
|
|
murshad paramba
New User
Joined: 14 Oct 2008 Posts: 12 Location: calicut
|
|
|
|
ofer71 wrote: |
Again, if you want to list copybooks usage in PDS(s), SUPERC might be the almost perfect solution. You can also wrap it with REXX to filter/format the results.
O. |
actually my intension is to list all the programs which uses the copy book usong a Rexx tool... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Also, Ofers advice, has it been heeded. It can be invoked in REXX and the results edited in REXX.
Ofer and Enrico have both given good advice, but to me it seems that you only want to use pure REXX rather than the best available options to resolve your requirement.
Take your time and review all suggestions and your own desire to do this in pure REXX, weigh up the pros and cons of each one and decide which way to proceed and go do it.
But, these are experienced guys that you ignore at your peril. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
murshad paramba,
you may have noticed a little resistance from some responders to your methodology.
using superc in batch, not only can you have multiple 'scanned libraries', you can have multiple search keys, for example 'include ' and 'copy '.
using superc options like - id??? (can't remember the spelling) will put the member name on every 'hit' line
- cobcmt?? (another I can't remember) will not scan COMMENT lines
your rexx tool could then do some left and right shifting so that the copybook names would all be in the same column - thus sortable.
not only that, but superc will outrun your 'little tool' and you don't have to keep debugging it as well as deal with space problems. |
|
Back to top |
|
|
|