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 Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm


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