Re: Finding a string literal in a *PGM object
- From: Elliot <eselick@xxxxxxxxx>
- Date: 30 May 2007 11:25:41 -0700
Tom,
As I said in my first post, I am looking for a specific string that is
coded as follows in all of our COBOL programs:
77 WHAT-VER-ID PIC X(25) VALUE
"@(#) VERSION 5.00".
It might be interesting going forward to store this information in the
"program header" for easier retrieval, although I've been told that
using API's effectively on the AS400 is not for the faint of heart. Be
that as it may, the utility I need to create must be able to look at
existing program at our clients.
In fact I've already been able to find another solution that temporary
adds the version number to the end of the 8 character source member
name before compilation. The 2 digit version number is then
retrievable with DSPOBJD via the ODSRCM field in the QLIDOBJD format.
But as I say this doesn't help with existing programs.
The good news is that DMPOBJ creates a spoolfile which does contain
the "@(#)" string. My next problem is how to parse it reasonably
quickly. I use CPYSPLF to to copy the dump to a database file that I
can look at in REXX. These files are quite big depending on the size
of the original *PGM object. I just wonder how long it's going to take
to parse one in REXX.
If anyone has any ideas to speed this up they would be most welcome.
Thanks
Elliot
.
- Follow-Ups:
- Re: Finding a string literal in a *PGM object
- From: Madcap
- Re: Finding a string literal in a *PGM object
- From: Barbara Morris
- Re: Finding a string literal in a *PGM object
- References:
- Finding a string literal in a *PGM object
- From: Elliot
- Re: Finding a string literal in a *PGM object
- From: Thomas
- Finding a string literal in a *PGM object
- Prev by Date: Re: SMTP authorization
- Next by Date: Re: IFS files in a particular ASP
- Previous by thread: Re: Finding a string literal in a *PGM object
- Next by thread: Re: Finding a string literal in a *PGM object
- Index(es):
Relevant Pages
|