Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Search Member Name in Library (DSORG=DA).

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
jackare

New User


Joined: 27 Aug 2008
Posts: 32
Location: Brazil

PostPosted: Thu Jun 25, 2015 8:15 pm    Post subject: Search Member Name in Library (DSORG=DA).
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: 1788
Location: UK

PostPosted: Thu Jun 25, 2015 8:45 pm    Post subject:
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: 516
Location: The Universe

PostPosted: Thu Jun 25, 2015 9:11 pm    Post subject:
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: 32
Location: Brazil

PostPosted: Thu Jun 25, 2015 10:19 pm    Post subject:
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: 516
Location: The Universe

PostPosted: Thu Jun 25, 2015 10:24 pm    Post subject:
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Thu Jun 25, 2015 10:43 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Jun 25, 2015 10:45 pm    Post subject: Reply to: Search Member Name in Library (DSORG=DA).
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: 32
Location: Brazil

PostPosted: Thu Jun 25, 2015 11:12 pm    Post subject:
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: 32
Location: Brazil

PostPosted: Thu Jun 25, 2015 11:15 pm    Post subject:
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jun 26, 2015 3:34 am    Post subject: Reply to: Search Member Name in Library (DSORG=DA).
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us