Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us