to tbsarg/tbscan or just tbscan - that is the question

21 views
Skip to first unread message

lbd...@gmail.com

unread,
Jul 12, 2024, 7:24:20 AM7/12/24
to ISPF-List, IBM Mainframe Discussion List
Cross posting to ISPF-L and IBM-Main

So, I can do

"tbsarg table namecond(var,eq)"
"tbscan table"

Or I can do

"tbscan table arglist(var)"

Both provide the same results, at least in my limited testing.

What advantages are there in using the tbsarg/tbscan compared to just using
tbscan?


Lionel B. Dyck <><
Github: https://github.com/lbdyck
System Z Enthusiasts Discord: https://discord.gg/sze

“Worry more about your character than your reputation. Character is what you
are, reputation merely what others think you are.”   - - - John Wooden


Frank Clarke

unread,
Jul 12, 2024, 8:44:26 AM7/12/24
to ISPF-List, IBM Mainframe Discussion List
It may seem obvious, but TBSARG merely sets the argument, while TBSCAN actually performs a search of the table.  Of greater importance, I think, is that you must TBVCLEAR before using either, because any table variable that has a value will be used implicitly whether specified on the call or not.

When you use TBSARG and TBSCAN as shown, the TBSARG sets an argument, and the TBSCAN immediately following overrides the TBSARG for only this one instance.

I guess the difference is that TBSARG is permanent and TBSCAN is temporary.




--
You received this message because you are subscribed to the Google Groups "ISPF discussion list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ispf-l-list...@nd.edu.
Reply all
Reply to author
Forward
0 new messages