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: 1715
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 User


Joined: 30 Nov 2013
Posts: 462
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 User


Joined: 30 Nov 2013
Posts: 462
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: 7913
Location: Bellevue, IA

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: 10203
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: 7913
Location: Bellevue, IA

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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts how to find clist's or view library Andrew Hsia CLIST & REXX 4 Tue Jun 28, 2016 6:07 pm
No new posts File Stauts 92 with member of PDS sandip_mainframe COBOL Programming 4 Fri Jun 10, 2016 12:06 pm
No new posts Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm
No new posts how to extract the member name ? jackzhang75 CLIST & REXX 1 Wed Feb 17, 2016 9:21 pm


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