IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Delete a paticular record in KSDS by using JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 463

PostPosted: Thu Oct 20, 2005 12:10 pm
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
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
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: 463

PostPosted: Thu Oct 20, 2005 1:46 pm
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
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: 62
Location: Basildon

PostPosted: Mon Oct 24, 2005 3:25 pm
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 Developer


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

PostPosted: Mon Oct 24, 2005 9:41 pm
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:

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts DELETE SPUFI DB2 1
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top