View previous topic :: View next topic
|
Author |
Message |
udaykiran
New User
Joined: 04 Mar 2004 Posts: 6 Location: chennai
|
|
|
|
Hi all, can anybody help in writing a job which initializes a Library?
Thanks,
Uday. |
|
Back to top |
|
|
somasundaran_k
Active User
Joined: 03 Jun 2003 Posts: 134
|
|
|
|
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 |
|
|
udaykiran
New User
Joined: 04 Mar 2004 Posts: 6 Location: chennai
|
|
|
|
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 |
|
|
rsshanmugam
New User
Joined: 08 Mar 2005 Posts: 62 Location: Basildon
|
|
|
|
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. |
|
Back to top |
|
|
somasundaran_k
Active User
Joined: 03 Jun 2003 Posts: 134
|
|
|
|
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 |
|
|
somasundaran_k
Active User
Joined: 03 Jun 2003 Posts: 134
|
|
|
|
OK..forgot to mention this..IPOUPDTE is an old utility supplied by IBM and I hope your shop has it.
-Som |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
udaykiran
New User
Joined: 04 Mar 2004 Posts: 6 Location: chennai
|
|
|
|
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 |
|
|
|