How to copy members from a libray to another one



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

How to copy members from a libray to another one

Postby gdchipi » Wed Jul 31, 2013 1:16 am

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?
gdchipi
 
Posts: 14
Joined: Sat Sep 08, 2012 12:56 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Wed Jul 31, 2013 1:53 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby gdchipi » Wed Jul 31, 2013 2:23 am

Ok. Forget for a moment OPC. Is there a way using a JCL to move members from one library to another one?
gdchipi
 
Posts: 14
Joined: Sat Sep 08, 2012 12:56 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby NicC » Wed Jul 31, 2013 2:45 am

Yes - how will depend on which program(s) you specify in the JCL.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

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

Postby dick scherrer » Wed Jul 31, 2013 2:52 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby Akatsukami » Wed Jul 31, 2013 3:00 am

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

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

Postby Blackthorn » Wed Jul 31, 2013 1:54 pm

What do you mean by "AUTO" in OPC. I do not recognise this term.
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times

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

Postby gdchipi » Mon Aug 05, 2013 10:04 pm

OPC is a schedule and AUTO means that the job is not executed.
gdchipi
 
Posts: 14
Joined: Sat Sep 08, 2012 12:56 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Mon Aug 05, 2013 10:09 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby Blackthorn » Tue Aug 06, 2013 1:15 pm

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.
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post