View previous topic :: View next topic |
Author |
Message |
Vinodch Beginner
Joined: 23 Dec 2002 Posts: 80 Topics: 32 Location: Chennai, India
|
Posted: Mon Jun 19, 2006 5:14 pm Post subject: Delete a record using a key from VSAM. |
|
|
Hi
I need a record to be deleted from the VSAM file using IDCAMS based on the primary key, is this possible.
Please help ! _________________ Thanks,
Vinod. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Vinodch Beginner
Joined: 23 Dec 2002 Posts: 80 Topics: 32 Location: Chennai, India
|
Posted: Tue Jun 20, 2006 8:20 am Post subject: |
|
|
Hi Kolusu
Thanks for the information. Any possibility thru EZT ? _________________ Thanks,
Vinod. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Jun 20, 2006 8:29 am Post subject: |
|
|
Quote: |
Thanks for the information. Any possibility thru EZT ?
|
Vinodch,
Here is an example straight from the Easytrieve reference guide (chapter 11)
Code: |
FILE KSDS VS (UPDATE)
FILE DELFILE
DEL-KEY 1 05 N
JOB INPUT DELFILE
READ KSDS KEY DEL-KEY STATUS
IF FILE-STATUS NE 0
DISPLAY 'READ FAILED...KEY= ' DEL-KEY
STOP
END-IF
WRITE KSDS DELETE STATUS
IF FILE-STATUS NE 0
DISPLAY 'DELETE FAILED'
STOP
END-IF
END
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Vinodch Beginner
Joined: 23 Dec 2002 Posts: 80 Topics: 32 Location: Chennai, India
|
Posted: Tue Jun 20, 2006 4:34 pm Post subject: |
|
|
Thanks Kolusu It's working. _________________ Thanks,
Vinod. |
|
Back to top |
|
 |
|
|