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

How to copy all memebers of the ca-librarian to a regular pd


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bartoszr

New User


Joined: 03 Jul 2006
Posts: 3

PostPosted: Fri Nov 07, 2008 4:19 pm
Reply with quote

Hi, I'd like to download all the members of the ca librarian library onto a pc. I figured the easiest way to do it is to first copy all of them into a regular pds and then use ftp and mget them all. The question is - how to copy the most current version from ca-librarian into a pds? Or is there a simple way to achieve what I want?
Back to top
View user's profile Send private message
bartoszr

New User


Joined: 03 Jul 2006
Posts: 3

PostPosted: Fri Nov 07, 2008 5:49 pm
Reply with quote

OK, I have actually found the solution in one of the ibm's redbooks:
Code:

//*=====================================================================
//* UNLOAD MODULES FROM LIBRARIAN TO PARTITIONED DATA SET
//*====================================================================*
//* 1. GENERATE LIBRARIAN -SEL STATEMENTS WITH LIBRARIAN GPO *
//* INTO TEMP. DATA SET (DDNAME=OSJOB) *
//*--------------------------------------------------------------------*
//SELGPO EXEC PGM=AFLBPROG,PARM='NRJS,NJTA'
//MASTER DD DISP=SHR,DSN=LIBRA.MIGCOPY
//OSJOB DD DISP=(,PASS),DSN=&&OSJOB1,
// UNIT=SYSDA,SPACE=(TRK,(25,10),RLSE),
// DCB=(RV.PATTERN,LRECL=80,BLKSIZE=6080,RECFM=FB)
//SYSPRINT DD SYSOUT=Y,DCB=RECFM=FBA
//SYSIN DD *
-OPT GPO
-OPT TEMPS
-SEL NAME=,EXEC
-END
//*
//*--------------------------------------------------------------------*
//* 2. UNLOAD ALL MEMBERS SPECIFIED IN SYSIN FILE *
//* FROM LIBRARIAN TO PDS (DDNAME=OSJOB) *
//*--------------------------------------------------------------------*
//UNLOAD EXEC PGM=AFLBPROG,PARM='NRJS,NJTA'
//MASTER DD DISP=SHR,DSN=LIBRA.MIGCOPY
//OSJOB DD DISP=OLD,DSN=SFITZ.LIBRA.MIGCOPY
//SYSPRINT DD SYSOUT=Y,DCB=RECFM=FBA
//SYSIN DD DISP=(OLD,PASS),DSN=&&OSJOB1
//*====================================================================*


The above code is courtesy of ibm.
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 Nov 07, 2008 5:59 pm
Reply with quote

The Librarian User's Guide section 2.4.4 has the precise JCL required to dump a master file to a PDS.
Back to top
View user's profile Send private message
bartoszr

New User


Joined: 03 Jul 2006
Posts: 3

PostPosted: Fri Nov 07, 2008 6:03 pm
Reply with quote

Yeah, this is the same as I've posted. Thanks anyway!
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top