View previous topic :: View next topic
|
Author |
Message |
jackare
New User
Joined: 27 Aug 2008 Posts: 35 Location: Brazil
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
jackare
New User
Joined: 27 Aug 2008 Posts: 35 Location: Brazil
|
|
|
|
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 |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
If I remember correctly, LIBPROG and LIBRPROG are Librarian. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
why not speak to Your support ??? |
|
Back to top |
|
|
jackare
New User
Joined: 27 Aug 2008 Posts: 35 Location: Brazil
|
|
|
|
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 |
|
|
jackare
New User
Joined: 27 Aug 2008 Posts: 35 Location: Brazil
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|