IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Search Member Name in Library (DSORG=DA).


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jackare

New User


Joined: 27 Aug 2008
Posts: 35
Location: Brazil

PostPosted: Thu Jun 25, 2015 8:15 pm
Reply with quote

Hello!
I have a COBOL LIBRARY FONT in DATASET with "DSORG=DA". So I am trying to do the following:


1) Search members name with some string, ex.: "AAA*";
2) Generate a sequential DATASET with this member list result (names matched).

I want to do this using a JCL or any other mainframe tool or utility.

Any help is appreciated.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Jun 25, 2015 8:45 pm
Reply with quote

JCL will not do it as it is neither a tool nor a utility. However, you will need JCL if the tool or utility that you find is to be run in batch.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Thu Jun 25, 2015 9:11 pm
Reply with quote

Another issue is DSORG=DA does not specify a partitioned data set. Library managers like Panvalet and Librarian use DSORG=DA, but you use tools provided by the librarian to search for members; there is no z/OS mechanism for that.
Back to top
View user's profile Send private message
jackare

New User


Joined: 27 Aug 2008
Posts: 35
Location: Brazil

PostPosted: Thu Jun 25, 2015 10:19 pm
Reply with quote

Nic Clouston wrote:
JCL will not do it as it is neither a tool nor a utility. However, you will need JCL if the tool or utility that you find is to be run in batch.


Exactly.. I have to run this in batch mode, I'll need to do a Procedure or JOB with utilities like ISRSUPC, IDCAMS, LIBPROG, LIBRPROG, IKJEFT01......
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Thu Jun 25, 2015 10:24 pm
Reply with quote

If I remember correctly, LIBPROG and LIBRPROG are Librarian.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jun 25, 2015 10:43 pm
Reply with quote

Quote:
I have a COBOL LIBRARY FONT in DATASET with "DSORG=DA".
This is rare in my experience, except for CA-LIBRARIAN master files. If you are dealing with a CA-LIBRARIAN master file, you will need to access it using the batch LIBRARIAN programs. The LIBRARIAN master file is compressed and stored in a proprietary format that is NOT amenable to access by IEBCOPY, IEBGENER, or any other utility that is not one of the CA-LIBRARIAN batch programs.

If the data set is not a CA-LIBRARIAN master file, then you won't have much choice except to write a program to access the data set and read the records. Unlike a LIBRARIAN master file, a DA data set does not typically have members -- just records.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Jun 25, 2015 10:45 pm
Reply with quote

why not speak to Your support ???
Back to top
View user's profile Send private message
jackare

New User


Joined: 27 Aug 2008
Posts: 35
Location: Brazil

PostPosted: Thu Jun 25, 2015 11:12 pm
Reply with quote

I use in another Procedure the LIBRPROG to output the source of a COBOL program in a sequential file.

Code:

//LIBRARY     EXEC  PGM=LIBRPROG,                       
//             PARM='NRJS,NJTA,OEX=LIBREXIT'           
//MASTER       DD    DSN=out.lib,DISP=SHR               
//SYSPRINT    DD DSN=my.dataset,DISP=(,CATLG)....       
//LIST         DD    SYSOUT=A                           
//OSJOB        DD    DUMMY                             
//SYSIN        DD    *                                 
 -OPT UTILITY                                           
 -PRINT MYSOURCE                                       
 END                                                   
/*                                                           
Back to top
View user's profile Send private message
jackare

New User


Joined: 27 Aug 2008
Posts: 35
Location: Brazil

PostPosted: Thu Jun 25, 2015 11:15 pm
Reply with quote

So I have to use "LIBRPROG" and I am trying to do the following:

1) Search members name with some string, ex.: "AAA*";
2) Generate a sequential DATASET with this member list result (names matched).

In batch mode!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 26, 2015 3:34 am
Reply with quote

The Librarian batch utility manual describes the GPO (Group Processing Option) which is what you want. I recommend you read up on it.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Calling an Open C library function in... CICS 1
No new posts first column truncated in search result IBM Tools 13
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
Search our Forums:

Back to Top