Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10350
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: 10350
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: 2088
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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us