View previous topic :: View next topic
|
Author |
Message |
sreekusr Warnings : 1 New User
Joined: 28 Aug 2006 Posts: 54 Location: Madrid
|
|
|
|
Hi all,
Can any one provide me JCL that deletes records from Dataset.
Thanks,
Sree |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Sree,
You can use sort for this
Code: |
//STEP010 EXEC PGM=SORT
//SORTIN DD DSN=TBH2.KMPF52T1.AISR2.DATA,DISP=SHR
//SORTOUT DD DSN=TBH2.KMPF52T1.AISR2.DATA,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OMIT COND=ALL
/* |
Hope it will helpful |
|
Back to top |
|
|
sreekusr Warnings : 1 New User
Joined: 28 Aug 2006 Posts: 54 Location: Madrid
|
|
|
|
Hi,
Thanks for the response.
It worked for the Sequential Data set but for VSAM it is not working.
Thanks,
Sree |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Try IDCAMS delete/define. |
|
Back to top |
|
|
sreekusr Warnings : 1 New User
Joined: 28 Aug 2006 Posts: 54 Location: Madrid
|
|
|
|
Hi all,
Thanks a lot for the response.
It really helped.
Regards,
Sree |
|
Back to top |
|
|
|