Page 1 of 1

How to copy members from a libray to another one

PostPosted: Wed Jul 31, 2013 1:16 am
by gdchipi
Hi,

I need to move members from a partiotioned library to another one. The jobs I need to move are the ones that are in AUTO in OPC and could be hundreds. So what I need is a way to read jobs in OPC which are in AUTO, take them from the library they are and move them to another one. Is there a way to do this in one JCL?

Re: How to copy members from a libray to another one

PostPosted: Wed Jul 31, 2013 1:53 am
by dick scherrer
Hello,

No. JCL will let you execute things and this can do what you want. There may be different ways to do what you want, but i am not familiar with OPC. There may be an OPC utility or a REXX exec already on your system.

Ask the OPC support people if they have a batch job that will do this or something similar.

Re: How to copy members from a libray to another one

PostPosted: Wed Jul 31, 2013 2:23 am
by gdchipi
Ok. Forget for a moment OPC. Is there a way using a JCL to move members from one library to another one?

Re: How to copy members from a libray to another one

PostPosted: Wed Jul 31, 2013 2:45 am
by NicC
Yes - how will depend on which program(s) you specify in the JCL.

Re: How to copy members from a libray to another one

PostPosted: Wed Jul 31, 2013 2:52 am
by dick scherrer
Hello,

If all that is needed is to copy members wholesale from one pds to another, suggest you look at 3.3 move/copy. You can copy then entire dataset or selected members.

Re: How to copy members from a libray to another one

PostPosted: Wed Jul 31, 2013 3:00 am
by Akatsukami
gdchipi wrote:Ok. Forget for a moment OPC. Is there a way using a JCL to move members from one library to another one?

If it must be done in batch, then I recommend that you look at IEBCOPY.

Re: How to copy members from a libray to another one

PostPosted: Wed Jul 31, 2013 1:54 pm
by Blackthorn
What do you mean by "AUTO" in OPC. I do not recognise this term.

Re: How to copy members from a libray to another one

PostPosted: Mon Aug 05, 2013 10:04 pm
by gdchipi
OPC is a schedule and AUTO means that the job is not executed.

Re: How to copy members from a libray to another one

PostPosted: Mon Aug 05, 2013 10:09 pm
by dick scherrer
Hello,

Most everyone is aware that OPC is a scheduler. Not everyone is familiar with "AUTO".

Is AUTO a local (for your site) term rather than an OPC stadard?

However, if you just want to copy some members, you have been given multiple ways to do this.

Re: How to copy members from a libray to another one

PostPosted: Tue Aug 06, 2013 1:15 pm
by Blackthorn
gdchipi wrote:OPC is a schedule and AUTO means that the job is not executed.


I presume from your rather vague reply that "AUTO" is the name of a work-station that you have defined at your site which is a General type and has the Non Reporting attribute. If that's the case. there may not even be corresponding members in the PDS for you to move.

If there are, perhaps becuase the job used to execute, then I would use EQQYCAIN to unload the required applications to a flat file, and then use a Rexx or other language of your chocie to read through this file, extract the job names for the operations that run on the AUTO work-station and then build the appropriatre IEBCOPY commands to move them.