Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL to initialize Library

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL to initialize Library
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    Post subject:
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    Post subject: Re: JCL to initialize Library
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: 54
Location: Chennai

PostPosted: Sun Mar 27, 2005 6:09 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Re: JCL to initialize Library
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts how to find clist's or view library Andrew Hsia CLIST & REXX 4 Tue Jun 28, 2016 6:07 pm
No new posts Syntax to create new tableBASE library Sumeendar IBM Tools 1 Tue Sep 15, 2015 6:25 pm
No new posts Search Member Name in Library (DSORG=... jackare JCL & VSAM 9 Thu Jun 25, 2015 8:15 pm
No new posts how to exec rexx for all member libra... italo_pm CLIST & REXX 6 Sat Apr 25, 2015 1:20 am
No new posts SYSIN PDS Library Concatenation Brad McCoy JCL & VSAM 6 Mon Jul 07, 2014 11:49 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us