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

how to delete record in a flat file using EZT only


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jgantena

New User


Joined: 13 Aug 2008
Posts: 8
Location: Hyderabad

PostPosted: Fri May 21, 2010 2:22 pm
Reply with quote

Hi

Could someone help me on this.

I tried to delete a record in flat file using Easytrieve. But could not succeed.

The syntax i used was

"WRITE filename DELETE"

but i believe this works for VSAM file only.

Experts please help on this.

Regards,
Jayadev
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri May 21, 2010 2:26 pm
Reply with quote

True, thats for VSAM datasets.
The only way to do it in EZT is :
read the file
skip the offending record
write the file.

For code see the users/reference guide.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri May 21, 2010 2:50 pm
Reply with quote

if You use easytrieve why post in the cobol forum ??
moved where it belongs
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts DELETE SPUFI DB2 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top