View previous topic :: View next topic
|
Author |
Message |
ISPFHerc
New User
Joined: 10 Dec 2017 Posts: 3 Location: bahamas
|
|
|
|
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 |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
TBVCLEAR |
|
Back to top |
|
|
ISPFHerc
New User
Joined: 10 Dec 2017 Posts: 3 Location: bahamas
|
|
|
|
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 |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 735 Location: Denmark
|
|
|
|
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 |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 735 Location: Denmark
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Oh gosh, there seems to be an echo in here |
|
Back to top |
|
|
ISPFHerc
New User
Joined: 10 Dec 2017 Posts: 3 Location: bahamas
|
|
|
|
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 |
|
|
|