MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Optimum cobol batch program for deleting records from a ksds

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sunilchik
Beginner


Joined: 08 May 2003
Posts: 11
Topics: 4

PostPosted: Sat Nov 13, 2004 3:03 pm    Post subject: Optimum cobol batch program for deleting records from a ksds Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Sun Nov 14, 2004 7:20 pm    Post subject: Reply with quote

Sunilchik,

Quote:

Is it possible to write an optimum cobol batch program for deleting records from a ksds vsam file? Environment is MVS(S390).


Yes it is a very simple task. check this link which explains in detail about Deleting records from a VSAM file

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/1.10.3.7?DT=20020923143836

Also check this link which explains in detail about Processing VSAM files

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/1.10?DT=20020923143836

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sunilchik
Beginner


Joined: 08 May 2003
Posts: 11
Topics: 4

PostPosted: Wed Nov 17, 2004 3:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group