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

Moderator


Joined: 14 Mar 2007
Posts: 10475
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: 8666
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

Moderator


Joined: 14 Mar 2007
Posts: 10475
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: 2108
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 Extracting DDL for all list of intere... Ashishpanpaliya DB2 5 Mon May 21, 2018 4:08 pm
No new posts Splitting one row into multiple Rows ... Rajan Moorthy DFSORT/ICETOOL 9 Mon May 14, 2018 10:58 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts help to replace columns by rows Vikas Maharnawar DFSORT/ICETOOL 8 Tue Mar 06, 2018 3:27 pm

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