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
 
TBSARG - Deleting the search criteria after a TBSCAN/TBDISPL

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

New User


Joined: 10 Dec 2017
Posts: 3
Location: bahamas

PostPosted: Thu Dec 14, 2017 8:18 am    Post subject: TBSARG - Deleting the search criteria after a TBSCAN/TBDISPL
Reply with quote

If an application issues a TBSARG to establish a search criteria, how does this search criteria ever get removed? Does the next issuance of TBSCAN or TBDISPL remove it, or does the application have to do something - and if so - what?

Thank you,

Wally
Back to top
View user's profile Send private message

dneufarth

Active User


Joined: 27 Apr 2005
Posts: 282
Location: Cincinnati OH USA

PostPosted: Thu Dec 14, 2017 10:50 am    Post subject:
Reply with quote

TBVCLEAR
Back to top
View user's profile Send private message
ISPFHerc

New User


Joined: 10 Dec 2017
Posts: 3
Location: bahamas

PostPosted: Fri Dec 15, 2017 8:47 am    Post subject: Reply to: TBSARG - Deleting the search criteria after a TBSCAN/TBDISPL
Reply with quote

The description of TBVCLEAR in the manual does not make any reference to clearing the data from a previously issued TBSARG. It simply states - " All dialog variables that correspond to columns in the table, specified when the table was created, are cleared." To me, this implies all the KEY and NAME table dialog variables, but not the EXTENSION variables.

If an application issues -
.
.
TBVCLEAR table1

TBSARG table1 ARGLIST(extvar1,extvar2)

TBSCAN table1

TBVCLEAR table1
.
.

I think the ARGLIST search criteria will still be in effect after the last TBVCLEAR is issued, unless TBVCLEAR also clears the TBSARG search criteria, but this was never documented.

Any comments would be most appreciated.

Thank you,

Wally
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 230
Location: Denmark

PostPosted: Fri Dec 15, 2017 12:26 pm    Post subject:
Reply with quote

While not specifically stated, I would assume that TBSARG without ARGLIST will remove extenson variables from the search. TBVCLEAR does not reset the search criteria, you must do a TBSARG immediately after the TBVCLEAR, as a value of null for one of the dialog variables means that the corresponding table variable is not to be examined during the search.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 230
Location: Denmark

PostPosted: Fri Dec 15, 2017 12:26 pm    Post subject:
Reply with quote

While not specifically stated, I would assume that TBSARG without ARGLIST will remove extenson variables from the search. TBVCLEAR does not reset the search criteria, you must do a TBSARG immediately after the TBVCLEAR, as a value of null for one of the dialog variables means that the corresponding table variable is not to be examined during the search.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8731
Location: Welsh Wales

PostPosted: Fri Dec 15, 2017 12:57 pm    Post subject:
Reply with quote

Oh gosh, there seems to be an echo in here icon_razz.gif
Back to top
View user's profile Send private message
ISPFHerc

New User


Joined: 10 Dec 2017
Posts: 3
Location: bahamas

PostPosted: Mon Dec 18, 2017 4:58 am    Post subject:
Reply with quote

I agree with you that a "TBSARG table1" with no arguments may clear the search criteria, but its not like IBM to not provide and document a mechanism to do this.

All comments are welcome.

Thank you,

wally
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 IBM website search issues starting 06... harisukumaran General Talk & Fun Stuff 3 Thu Jun 14, 2018 7:48 pm
No new posts Utility for search operation Gopalakrishna551 TSO/ISPF 11 Wed Jan 03, 2018 11:07 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm

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