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: 10211
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: 10211
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: 2025
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 DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts Row-Numbers of distinct rows? Auryn DB2 1 Thu Oct 20, 2016 4:38 pm


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