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 all the rows from a table before load it .

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Prosenjit001

New User


Joined: 02 Nov 2011
Posts: 14
Location: India

PostPosted: Wed Nov 16, 2011 12:58 pm    Post subject: Delete all the rows from a table before load it .
Reply with quote

I have one ISPF table , I want to delete all the rows from the table each time before i load the table .. I have tried with TBVCLEAR , but it not working ...
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10257
Location: italy

PostPosted: Wed Nov 16, 2011 1:14 pm    Post subject: Reply to: Delete all the rows from a table before load it .
Reply with quote

TBVCLEAR will clear the variables, not the TABLE
TBERASE will do it

from Your edit session enter in the command line MODEL, and then follow the flow ...
Back to top
View user's profile Send private message
Prosenjit001

New User


Joined: 02 Nov 2011
Posts: 14
Location: India

PostPosted: Wed Nov 16, 2011 2:56 pm    Post subject:
Reply with quote

TBERASE deleting the the table itself ... I want to delete all rows from the table , not the table ...
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Nov 16, 2011 2:59 pm    Post subject:
Reply with quote

Why would that be, a quick TBDEFINE and your table is back and empty
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10257
Location: italy

PostPosted: Wed Nov 16, 2011 3:00 pm    Post subject: Reply to: Delete all the rows from a table before load it .
Reply with quote

You will have to delete them one by one.. good luck!
Back to top
View user's profile Send private message
Prosenjit001

New User


Joined: 02 Nov 2011
Posts: 14
Location: India

PostPosted: Wed Nov 16, 2011 4:08 pm    Post subject:
Reply with quote

expat wrote:
Why would that be, a quick TBDEFINE and your table is back and empty


Good idea ... let me follow this approach :-) thank you
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2038
Location: Silicon Valley

PostPosted: Wed Nov 16, 2011 7:27 pm    Post subject: Reply to: Delete all the rows from a table before load it .
Reply with quote

Quote:
a quick TBDEFINE and your table is back and empty


If that does not work, try TBCREATE.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm


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