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
 

 

Delete a paticular record in KSDS by using JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sridevi2005

New User


Joined: 15 Sep 2005
Posts: 42

PostPosted: Thu Oct 20, 2005 10:44 am    Post subject: Delete a paticular record in KSDS by using JCL
Reply with quote

Hi,

I want to delete a paticular record in KSDS by using JCL.
Please provide the JCL code for me.

Thanks in Advance.
Sridevi
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Thu Oct 20, 2005 12:10 pm    Post subject: Re: Jcl code
Reply with quote

Hi,

Quote:
I want to delete a paticular record in KSDS by using JCL.


Is it possible to JCL?

Regards

Rupesh
Back to top
View user's profile Send private message
nikyojin

New User


Joined: 05 Oct 2005
Posts: 94

PostPosted: Thu Oct 20, 2005 12:11 pm    Post subject: Re: Jcl code
Reply with quote

Hi sridevi,
I don't think this is directly possible...but i can provide u a soln...
1) copy the vsam file to a flat file.
2) Using DFsort omit the record to be deleted in the flat file
3) copy the flat-file again to the vsam file
Back to top
View user's profile Send private message
ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Thu Oct 20, 2005 12:51 pm    Post subject: Re: Jcl code
Reply with quote

Hi nikyojin,
can't we apply the 2nd step direcly on VSAM file
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Thu Oct 20, 2005 1:46 pm    Post subject: Re: Jcl code
Reply with quote

HI,

Quote:
can't we apply the 2nd step direcly on VSAM file


No We can not use DFSORT for VSAM.

Hope it clears your doubt.

Regards

Rupesh
Back to top
View user's profile Send private message
paulstephen

New User


Joined: 20 Oct 2005
Posts: 20
Location: Chennai

PostPosted: Thu Oct 20, 2005 4:18 pm    Post subject:
Reply with quote

DFSORT is specifically meant for flat files
Back to top
View user's profile Send private message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 54
Location: Chennai

PostPosted: Mon Oct 24, 2005 3:25 pm    Post subject:
Reply with quote

DFSORT can be used for both flat and VSAM files, in this situation we start from the second step directly there is no harm as i did like this many times .


Rupesh.Kothari , nikyojin and paulstephen please change your perception on DFSORT.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Mon Oct 24, 2005 9:41 pm    Post subject:
Reply with quote

Quote:
No We can not use DFSORT for VSAM.


Quote:
DFSORT is specifically meant for flat files


What are you basing these erroneous statements on? DFSORT certainly can process VSAM files for input and output. For more information on this, see:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/1.8.3.4?SHELF=&DT=20050222160456&CASE=
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 Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm


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