MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Extraction of data from 3.15 Search Listing

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
hari haran
Beginner


Joined: 22 Jun 2004
Posts: 10
Topics: 4

PostPosted: Tue Mar 22, 2005 3:26 pm    Post subject: Extraction of data from 3.15 Search Listing Reply with quote

Hi,

We have a requirement in which all the programs that are used in a Proc have to be listed out.
We can search the string 'PGM=' in 3.15 to give us all the programs used in the particular PROCLIB.

But it is in the below format :

Code:


PROC1                       --------- STRING(S) FOUND ---------

   846  //PS095    EXEC PGM=WTOMESS,
   866  //PS100   EXEC PGM=MULTIGEN
   892  //PS105    EXEC PGM=WTOMESS

PROC2                       --------- STRING(S) FOUND ---------

   187  //PS020 EXEC PGM=SORT,REGION=4096K
   354  //PS035    EXEC PGM=WTOMESS
   373  //PS040    EXEC PGM=MULTIGEN,



Can the above search o/p file be reformatted to include only the Proc Name & the programs used, like the one below :

Code:


PROC1 

WTOMESS
MULTIGEN
WTOMESS

PROC2

SORT
WTOMESS
MULTIGEN



Note :
1. String 'PGM=' does not start in fixed positions,
2. The reformatted file shold only have the program name without any additional character like comma.

The above can be done using COBOL inspect, but is there any other way to do it.

Thanks,
Hari.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Mar 22, 2005 3:44 pm    Post subject: Reply with quote

using the IDPFX option and a small edit macro on the resulting listing should do the job pretty easily.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group