How do I copy multiple members from one Master file to another Master file with all archive levels and replace what is there?

Document ID:  TEC448337
Last Modified Date:  06/09/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Librarian

Releases

  • CA Librarian:Release:4.4

Components

  • CA-Librarian Base & CCF:CM-LJ
  • CA Librarian:LIBR
Question:

Need to copy some members from one Master file to another Master file and the members already exist on the TO Master file. I also want to copy all archive levels.

Environment:
Answer:

Using the JCL below, specify the member names you need to copy in the -COPY command with the REP option:

//STEP1     EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'                    
//OSJOB     DD DSN=&&UTIL,DISP=(,PASS),UNIT=SYSDA,                
//          SPACE=(CYL,(1,1)),                                    
//          DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000)                  
//SYSPRINT  DD SYSOUT=*                                           
//LIST      DD SYSOUT=*                                           
//INDEX     DD SYSOUT=*                                           
//MASTER    DD DSN=from.master.file,DISP=SHR                     
//SYSIN     DD   *                                            
-OPT UTILITY                                                         
-COPY MBR1,REP
-COPY MBR2,REP
-COPY MBR3,REP -END //STEP2 EXEC PGM=AFOLIBR,PARM='NRJS,NJTA' //OSJOB DD DUMMY //SYSPRINT DD SYSOUT=* //LIST DD SYSOUT=* //INDEX DD SYSOUT=* //MASTER DD DSN=to.master.file,DISP=SHR //SYSIN DD DSN=&&UTI,DISP=(OLD,PASS) /*

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >

Chat with CA

Just give us some brief information and we'll connect you to the right CA ExpertCA sales representative.

Our hours of availability are 8AM - 5PM CST.

All Fields Required

connecting

We're matching your request.

Unfortunately, we can't connect you to an agent. If you are not automatically redirected please click here.

  • {{message.agentProfile.name}} will be helping you today.

    View Profile


  • Transfered to {{message.agentProfile.name}}

    {{message.agentProfile.name}} joined the conversation

    {{message.agentProfile.name}} left the conversation

  • Your chat with {{$storage.chatSession.messages[$index - 1].agentProfile.name}} has ended.
    Thank you for your interest in CA.


    Rate Your Chat Experience.

    {{chat.statusMsg}}

agent is typing