View previous topic :: View next topic |
Author |
Message |
sunilchik Beginner
Joined: 08 May 2003 Posts: 11 Topics: 4
|
Posted: Sat Nov 13, 2004 3:03 pm Post subject: Optimum cobol batch program for deleting records from a ksds |
|
|
Is it possible to write an optimum cobol batch program for deleting records from a ksds vsam file? Environment is MVS(S390).
I have
1)a huge ksds indexed master file(Around 4000000 records).key is the first 4 characters.
eg:-
A001 Martin adress1-----
A002 Joe adress1-----
A007 Jeff adress1-----
A008 Jones adress1-----
A016 Linda adress1-----
2)a sequential file with records(keys) to be deteted from the master file(Around 4000 records)
A002
A008
Output desired is
A001 Martin adress1-----
A007 Jeff adress1-----
A016 Linda adress1-----
back into the same ksds file and I cannot use a JCl for this.
Please let me know the syntax of vsam statements for this in a cobol batch program, if at all this is possible.
Thanks in advance, |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
sunilchik Beginner
Joined: 08 May 2003 Posts: 11 Topics: 4
|
Posted: Wed Nov 17, 2004 3:42 am Post subject: |
|
|
Thanks Kolusu.
Sorry for bothering you for this simple one. I bought a book on vsam by Jay Ranade and it was over in half an hour. |
|
Back to top |
|
|
|
|