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

JCL to initialize Library


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
udaykiran

New User


Joined: 04 Mar 2004
Posts: 6
Location: chennai

PostPosted: Sat Mar 26, 2005 1:29 pm
Reply with quote

Hi all, can anybody help in writing a job which initializes a Library?

Thanks,
Uday.
Back to top
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Sat Mar 26, 2005 9:55 pm
Reply with quote

Uday
Can you please tell us what do you mean by initializes a Library?
Do you want to delete all the members in a PDS thru a Job or something like that.?

hth
-Som
Back to top
View user's profile Send private message
udaykiran

New User


Joined: 04 Mar 2004
Posts: 6
Location: chennai

PostPosted: Sun Mar 27, 2005 4:29 pm
Reply with quote

Hi Som,
I dont want to delete the members, I just wanted to delete the data present in the library.Some thing like deleting the current value present in a variable and assign a new value to it.

Thanks,
Uday.
Back to top
View user's profile Send private message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Sun Mar 27, 2005 6:09 pm
Reply with quote

create a dummy data set and have empty records and repro that with the dataset u want to initialize that will do it for you. icon_biggrin.gif
Back to top
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Sun Mar 27, 2005 9:58 pm
Reply with quote

Uday
I'm not yet clear what you are looking for. Assuming you have a PDS with some members and you want to replace a particulat data(string) in all the members with another.
For example you have 'UDAY1' present in all the members and you want replace it with 'UDAY2'.
If this is what you are looking for ,you can use the following Job.
Remember that you have to create a member named $$$COIBM
in the particular PDS.Just create a dummy member and name it as $$$COIBM

Code:

//*****************************************************************   
//* NEED TO CREATE A MEMBER NAMED '$$$COIBM' IN THE RESPECTIVE PDS     
//* BEFORE RUNNING THIS JOB.                                       
//*****************************************************************   
//STEP     EXEC PGM=IPOUPDTE,PARM=UPDATE                               
//SYSPRINT DD   SYSOUT=*                                               
//@TEST    DD   DSN=YOUR.PDS.WITH.MEMBR,DISP=SHR                       
//SYSIN    DD   *                                                     
UDAY1<UDAY2<                                                       
/*                                                                     

If this is not your requirement then please explain clearly with examples so that we don't have to assume anything.

hth
-Som
Back to top
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Sun Mar 27, 2005 10:07 pm
Reply with quote

OK..forgot to mention this..IPOUPDTE is an old utility supplied by IBM and I hope your shop has it.

-Som
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Mar 28, 2005 1:06 am
Reply with quote

Hi Uday,

You say you want to "initialize" a library. That is usually not done, so it seems that we may be misunderstanding what you're trying to do.

Why don't you explain the "business" problem you're trying to solve. It may clear up the misunderstanding.
Back to top
View user's profile Send private message
udaykiran

New User


Joined: 04 Mar 2004
Posts: 6
Location: chennai

PostPosted: Mon Mar 28, 2005 5:33 pm
Reply with quote

Hi all,
Thanks for your support, my business user has just said "Initializing this library means that anything linked in development will pick up production code instead of anything leftover ". Even Iam not clear as to what it actually means.Anyway let me check out once again and get back.

Regards,
Uday.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Calling an Open C library function in... CICS 1
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Access library name in REXX CLIST & REXX 6
Search our Forums:

Back to Top